This commit is contained in:
schmelczerandras 2020-11-04 16:01:17 +01:00
commit 99cdb62928
2 changed files with 338 additions and 431 deletions

View file

@ -0,0 +1,7 @@
export type Id = number | null;
let currentId = 0;
export const id = (): number => {
return currentId++;
};

View file

@ -0,0 +1,9 @@
export enum TransportEvents {
PlayerJoining = 'PlayerJoining',
PlayerToServer = 'PlayerToServer',
ServerToPlayer = 'ServerToPlayer',
SubscribeForServerInfoUpdates = 'SubscribeForServerInfoUpdates',
ServerInfoUpdate = 'ServerInfoUpdate',
Ping = 'Ping',
Pong = 'Pong',
}