summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-19 20:29:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-19 23:09:35 +0300
commit72dfb51de2bb766d291d2d3134e3f34b679281c7 (patch)
tree07862ac1ef107c4dd774e6844ac6c0550d138e09 /src/enums
parent105ac47764066fc05093090ac74694715dd89c50 (diff)
downloadmv-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.gz
mv-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.bz2
mv-72dfb51de2bb766d291d2d3134e3f34b679281c7.tar.xz
mv-72dfb51de2bb766d291d2d3134e3f34b679281c7.zip
Add support for loading permissions from groups.xml
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/resources/serverpermissiontype.h41
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