New opcode: view

This commit is contained in:
MDMCK10
2023-03-28 18:13:43 +02:00
parent 39c9832a72
commit 7c62a3414a
2 changed files with 39 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ export class User {
nopRecieveTimeout? : NodeJS.Timer;
username? : string;
connectedToNode : boolean;
viewMode : number;
rank : Rank;
msgsSent : number;
Config : IConfig;
@@ -25,6 +26,7 @@ export class User {
constructor(ws : WebSocket, ip : IPData, config : IConfig, username? : string, node? : string) {
this.IP = ip;
this.connectedToNode = false;
this.viewMode = -1;
this.Config = config;
this.socket = ws;
this.msgsSent = 0;