summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-18 00:05:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-18 00:05:26 +0300
commitddd49c13d9b89e11c900657154e0504c8c8af2a9 (patch)
tree057577aa34b1cc12a9e117629b1cc9c47d6d06c8 /src/enums
parentd1b6556bd125f52744ff12b8dd2e644a1515205f (diff)
downloadplus-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.gz
plus-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.bz2
plus-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.xz
plus-ddd49c13d9b89e11c900657154e0504c8c8af2a9.zip
Add permissions and commands fields into groups.
For now not reading it from xml or using it in any way.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/resources/servercommandenable.h37
-rw-r--r--src/enums/resources/servercommandtype.h301
-rw-r--r--src/enums/resources/serverpermissiontype.h66
3 files changed, 404 insertions, 0 deletions
diff --git a/src/enums/resources/servercommandenable.h b/src/enums/resources/servercommandenable.h
new file mode 100644
index 000000000..575ebf944
--- /dev/null
+++ b/src/enums/resources/servercommandenable.h
@@ -0,0 +1,37 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2012-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef ENUMS_RESOURCES_SERVERCOMMANDENABLE_H
+#define ENUMS_RESOURCES_SERVERCOMMANDENABLE_H
+
+#include "enums/simpletypes/enumdefines.h"
+
+namespace ServerCommandEnable
+{
+ enum Type
+ {
+ No = 0,
+ Self = 1,
+ Other = 2,
+ Both = 3
+ };
+} // namespace ServerCommandEnable
+
+#endif // ENUMS_RESOURCES_SERVERCOMMANDENABLE_H
diff --git a/src/enums/resources/servercommandtype.h b/src/enums/resources/servercommandtype.h
new file mode 100644
index 000000000..81ea79bf8
--- /dev/null
+++ b/src/enums/resources/servercommandtype.h
@@ -0,0 +1,301 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2012-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef ENUMS_RESOURCES_SERVERCOMMANDTYPE_H
+#define ENUMS_RESOURCES_SERVERCOMMANDTYPE_H
+
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(ServerCommandType)
+{
+// Hercules commands
+ warp = 0,
+ where,
+ jumpto,
+ jump,
+ who,
+ who2,
+ who3,
+ whomap,
+ whomap2,
+ whomap3,
+ whogm,
+ save,
+ load,
+ speed,
+ storage,
+ guildstorage,
+ option,
+ hide,
+ jobchange,
+ kill,
+ alive,
+ kami,
+ kamib,
+ kamic,
+ lkami,
+ heal,
+ item,
+ item2,
+ itembound,
+ itembound2,
+ itemreset,
+ clearstorage,
+ cleargstorage,
+ clearcart,
+ blvl,
+ jlvl,
+ help,
+ pvpoff,
+ pvpon,
+ gvgoff,
+ gvgon,
+ model,
+ go,
+ monster,
+ monstersmall,
+ monsterbig,
+ killmonster,
+ killmonster2,
+ refine,
+ produce,
+ memo,
+ gat,
+ displaystatus,
+ stpoint,
+ skpoint,
+ zeny,
+ str,
+ agi,
+ vit,
+ int_,
+ dex,
+ luk,
+ glvl,
+ makeegg,
+ hatch,
+ petfriendly,
+ pethungry,
+ petrename,
+ recall,
+ night,
+ day,
+ doom,
+ doommap,
+ raise,
+ raisemap,
+ kick,
+ kickall,
+ allskill,
+ questskill,
+ lostskill,
+ spiritball,
+ party,
+ guild,
+ breakguild,
+ agitstart,
+ agitend,
+ mapexit,
+ idsearch,
+ broadcast,
+ localbroadcast,
+ recallall,
+ reloaditemdb,
+ reloadmobdb,
+ reloadskilldb,
+ reloadscript,
+ reloadatcommand,
+ reloadbattleconf,
+ reloadstatusdb,
+ reloadpcdb,
+ mapinfo,
+ dye,
+ hairstyle,
+ haircolor,
+ allstats,
+ block,
+ ban,
+ charban,
+ unblock,
+ charunban,
+ unban,
+ mount,
+ guildspy,
+ partyspy,
+ repairall,
+ guildrecall,
+ partyrecall,
+ nuke,
+ shownpc,
+ hidenpc,
+ loadnpc,
+ unloadnpc,
+ time,
+ jail,
+ unjail,
+ jailfor,
+ jailtime,
+ disguise,
+ undisguise,
+ email,
+ effect,
+ follow,
+ addwarp,
+ skillon,
+ skilloff,
+ killer,
+ npcmove,
+ killable,
+ dropall,
+ storeall,
+ skillid,
+ useskill,
+ displayskill,
+ snow,
+ sakura,
+ clouds,
+ clouds2,
+ fog,
+ fireworks,
+ leaves,
+ summon,
+ adjgroup,
+ trade,
+ send,
+ setbattleflag,
+ unmute,
+ clearweather,
+ uptime,
+ changesex,
+ mute,
+ refresh,
+ refreshall,
+ identify,
+ misceffect,
+ mobsearch,
+ cleanmap,
+ cleanarea,
+ npctalk,
+ pettalk,
+ users,
+ reset,
+ skilltree,
+ marry,
+ divorce,
+ sound,
+ undisguiseall,
+ disguiseall,
+ changelook,
+ autoloot,
+ alootid,
+ autoloottype,
+ mobinfo,
+ exp,
+ version,
+ mutearea,
+ rates,
+ iteminfo,
+ whodrops,
+ whereis,
+ mapflag,
+ me,
+ monsterignore,
+ fakename,
+ size,
+ showexp,
+ showzeny,
+ showdelay,
+ autotrade,
+ changegm,
+ changeleader,
+ partyoption,
+ invite,
+ duel,
+ leave,
+ accept,
+ reject,
+ clone,
+ slaveclone,
+ evilclone,
+ tonpc,
+ commands,
+ noask,
+ request,
+ homlevel,
+ homevolution,
+ hommutate,
+ makehomun,
+ homfriendly,
+ homhungry,
+ homtalk,
+ hominfo,
+ homstats,
+ homshuffle,
+ showmobs,
+ feelreset,
+ auction,
+ mail,
+ noks,
+ allowks,
+ cash,
+ points,
+ agitstart2,
+ agitend2,
+ skreset,
+ streset,
+ storagelist,
+ cartlist,
+ itemlist,
+ stats,
+ delitem,
+ charcommands,
+ font,
+ accinfo,
+ set,
+ reloadquestdb,
+ undisguiseguild,
+ disguiseguild,
+ sizeall,
+ sizeguild,
+ addperm,
+ rmvperm,
+ unloadnpcfile,
+ cart,
+ cashmount,
+ join,
+ channel,
+ fontcolor,
+ searchstore,
+ costume,
+ skdebug,
+ cddebug,
+ lang,
+ bodystyle,
+ setskill,
+
+// Evol commands
+ slide,
+ serverexit,
+
+ Max
+}
+enumEnd(ServerCommandType);
+
+#endif // ENUMS_RESOURCES_SERVERCOMMANDTYPE_H
diff --git a/src/enums/resources/serverpermissiontype.h b/src/enums/resources/serverpermissiontype.h
new file mode 100644
index 000000000..bee1d2d37
--- /dev/null
+++ b/src/enums/resources/serverpermissiontype.h
@@ -0,0 +1,66 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2012-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef ENUMS_RESOURCES_SERVERPERMISSIONTYPE_H
+#define ENUMS_RESOURCES_SERVERPERMISSIONTYPE_H
+
+#include "enums/simpletypes/enumdefines.h"
+
+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,
+
+ Max
+}
+enumEnd(ServerPermissionType);
+
+#endif // ENUMS_RESOURCES_SERVERPERMISSIONTYPE_H
+