Replaced all event names with numbers for less bandwidth usage

This commit is contained in:
2025-02-11 23:12:41 +01:00
parent 8b51f6e16a
commit 9e55ac7990
57 changed files with 193 additions and 98 deletions

View File

@ -1,3 +1,4 @@
import { SocketEvent } from '#application/enums';
import type { UUID } from '#application/types'
import { BaseService } from '#application/base/baseService'
@ -27,7 +28,7 @@ class CharacterAttackService extends BaseService {
}
// Emit attack event
io.in(character.character.map.id).emit('map:character:attack', character.character.id)
io.in(character.character.map.id).emit(SocketEvent.MAP_CHARACTER_ATTACK, character.character.id)
return true
}
}