aboutsummaryrefslogtreecommitdiffstats
path: root/src/Client.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-25 07:47:29 +0300
committerRblSb <msrblsb@gmail.com>2020-02-25 07:47:29 +0300
commitd934830a64b915af0b7e8031cb5ef927534c5e86 (patch)
treee98ca9831baa6bcf749dc0b1ffdea79ec0792344 /src/Client.hx
parent70b255b99ad50f1a42791b9a39f2fcfcd98f00d8 (diff)
Improve login/exit and mob view
Diffstat (limited to 'src/Client.hx')
-rw-r--r--src/Client.hx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Client.hx b/src/Client.hx
index 4604ab7..708cbaf 100644
--- a/src/Client.hx
+++ b/src/Client.hx
@@ -26,6 +26,7 @@ class Client {
#end
public var name:String;
public var group:EnumFlags<ClientGroup>;
+ public var isUser(get, set):Bool;
public var isLeader(get, set):Bool;
public var isAdmin(get, set):Bool;
@@ -43,6 +44,14 @@ class Client {
this.group = new EnumFlags(group);
}
+ inline function get_isUser():Bool {
+ return group.has(User);
+ }
+
+ inline function set_isUser(flag:Bool):Bool {
+ return setGroupFlag(User, flag);
+ }
+
inline function get_isLeader():Bool {
return group.has(Leader);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage