Added socketManager and moved logic into it where appropiate

This commit is contained in:
2024-12-29 02:35:50 +01:00
parent cb6fcbcb8e
commit ce073a67af
6 changed files with 97 additions and 70 deletions

View File

@ -1,3 +1,19 @@
export enum SocketEvent {
CHARACTER_CONNECT = 1,
CHARACTER_MOVE = 2,
CHARACTER_MOVE_ERROR = 3,
CHARACTER_TELEPORT = 4,
ZONE_CHARACTER_LEAVE = 5,
ZONE_CHARACTER_JOIN = 6,
ZONE_CHARACTER_LIST = 7,
ZONE_CHARACTER_DELETE = 8,
ZONE_CHARACTER_CREATE = 9,
ZONE_CHARACTER_UPDATE = 10,
ZONE_CHARACTER_HAIR_UPDATE = 11,
ZONE_CHARACTER_HAIR_LIST = 12,
ZONE_CHARACTER_TELEPORT = 13
}
export enum ItemType {
WEAPON = 'WEAPON',
HELMET = 'HELMET',