diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-19 20:29:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-19 23:09:35 +0300 |
commit | 72dfb51de2bb766d291d2d3134e3f34b679281c7 (patch) | |
tree | 07862ac1ef107c4dd774e6844ac6c0550d138e09 /src/enums/resources | |
parent | 105ac47764066fc05093090ac74694715dd89c50 (diff) | |
download | manaverse-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.gz manaverse-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.bz2 manaverse-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.xz manaverse-72dfb51de2bb766d291d2d3134e3f34b679281c7.zip |
Add support for loading permissions from groups.xml
Diffstat (limited to 'src/enums/resources')
-rw-r--r-- | src/enums/resources/serverpermissiontype.h | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/src/enums/resources/serverpermissiontype.h b/src/enums/resources/serverpermissiontype.h index bee1d2d37..338377624 100644 --- a/src/enums/resources/serverpermissiontype.h +++ b/src/enums/resources/serverpermissiontype.h @@ -23,44 +23,19 @@ #include "enums/simpletypes/enumdefines.h" +#define serverpermissionFirst(name) name = 0, +#define serverpermission(name) name, + enumStart(ServerPermissionType) { -// Hercules permissions - can_trade = 0, - can_party, - all_skill, - all_equipment, - skill_unconditional, - join_chat, - kick_chat, - hide_session, - who_display_aid, - hack_info, - any_warp, - view_hpmeter, - view_equipment, - use_check, - use_changemaptype, - all_commands, - receive_requests, - show_bossmobs, - disable_pvm, - disable_pvp, - disable_commands_when_dead, - hchsys_admin, - can_trade_bound, - disable_pickup, - disable_store, - disable_exp, - disable_skill_usage, - -// Evol permissions - send_gm, - show_client_version, - +#include "resources/serverpermissions.inc" Max } enumEnd(ServerPermissionType); +#undef serverpermissionFirst +#undef serverpermission + +SERVERPERMISSION_VOID #endif // ENUMS_RESOURCES_SERVERPERMISSIONTYPE_H |