1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Remove all method.

This commit is contained in:
Sandu Liviu Catalin
2021-02-05 14:19:15 +02:00
parent e4d4b09f52
commit 66dca8785c
4 changed files with 90 additions and 6 deletions

@ -262,6 +262,11 @@ struct PvClass
*/
void ModifyPrivilege(StackStrF & tag, SQInteger value);
/* --------------------------------------------------------------------------------------------
* Remove all status values. Basically it reverts to the parent class privileges.
*/
void RemoveAllPrivileges();
/* --------------------------------------------------------------------------------------------
* Change the parent class.
*/
@ -347,6 +352,7 @@ struct SqPvClass
void RemovePrivilegeWithTag(StackStrF & tag) { Valid().RemovePrivilege(tag); }
void ModifyPrivilegeWithID(SQInteger id, SQInteger value) { Valid().ModifyPrivilege(id, value); }
void ModifyPrivilegeWithTag(StackStrF & tag, SQInteger value) { Valid().ModifyPrivilege(tag, value); }
void RemoveAllPrivileges() { Valid().RemoveAllPrivileges(); }
// --------------------------------------------------------------------------------------------
SQMOD_NODISCARD LightObj GetUnitWithID(SQInteger id) const { return Valid().GetUnitWithID(id); }
SQMOD_NODISCARD LightObj GetUnitWithTag(StackStrF & tag) const { return Valid().GetUnitWithTag(tag); }