diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-04 03:59:50 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-05 17:04:25 +0300 |
| commit | ede45cea8706eb8540e466df9861c2af8ebf9c44 (patch) | |
| tree | 74a20a6f082173378f918b48b08542881f31749a /src/Client.hx | |
| parent | 265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff) | |
Reformat
Diffstat (limited to 'src/Client.hx')
| -rw-r--r-- | src/Client.hx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Client.hx b/src/Client.hx index c7bc256..254e294 100644 --- a/src/Client.hx +++ b/src/Client.hx @@ -18,7 +18,6 @@ typedef ClientData = { } class Client { - #if nodejs public final ws:WebSocket; public final id:Int; @@ -33,17 +32,18 @@ class Client { #if nodejs public function new(?ws:WebSocket, ?req:IncomingMessage, ?id:Int, name:String, group:Int) { - #else - public function new(name:String, group:Int) { - #end - #if nodejs this.ws = ws; this.req = req; this.id = id; - #end this.name = name; this.group = new EnumFlags(group); } + #else + public function new(name:String, group:Int) { + this.name = name; + this.group = new EnumFlags(group); + } + #end inline function get_isUser():Bool { return group.has(User); @@ -85,5 +85,4 @@ class Client { public static function fromData(data:ClientData):Client { return new Client(data.name, data.group); } - } |
