diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-18 00:05:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-18 00:05:26 +0300 |
commit | ddd49c13d9b89e11c900657154e0504c8c8af2a9 (patch) | |
tree | 057577aa34b1cc12a9e117629b1cc9c47d6d06c8 /src/resources | |
parent | d1b6556bd125f52744ff12b8dd2e644a1515205f (diff) | |
download | plus-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/resources')
-rw-r--r-- | src/resources/groupinfo.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/resources/groupinfo.h b/src/resources/groupinfo.h index 973249d19..924c71b2d 100644 --- a/src/resources/groupinfo.h +++ b/src/resources/groupinfo.h @@ -23,19 +23,24 @@ #include "localconsts.h" +#include "enums/resources/servercommandenable.h" +#include "enums/resources/servercommandtype.h" +#include "enums/resources/serverpermissiontype.h" + +#include "enums/simpletypes/enable.h" + +#include "utils/cast.h" + #include <string> struct GroupInfo final { - GroupInfo() : - name(), - longName(), - badge(), - showBadge(false) - { } + GroupInfo(); A_DEFAULT_COPY(GroupInfo) + ServerCommandEnable::Type mCommands[CAST_SIZE(ServerCommandType::Max)]; + Enable mPermissions[CAST_SIZE(ServerPermissionType::Max)]; std::string name; std::string longName; std::string badge; |