feat: add spawn-npc event type and MAX_NPC_COUNT constant

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 13:33:38 +00:00
parent a074683e4c
commit 4ff6f14746
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -58,3 +58,6 @@ export const PAUSING_DURATION = 15; // ticks (1.5s)
export const EMOTING_DURATION = 20; // ticks (2s)
export const SOCIAL_GLOBAL_COOLDOWN = 50; // ticks (5s)
export const SOCIAL_PAIR_COOLDOWN = 300; // ticks (30s)
// Camera mode commands
export const MAX_NPC_COUNT = 50;
+1
View File
@@ -117,4 +117,5 @@ export interface ServerEvents {
// Client -> Server events
export interface ClientEvents {
'player-input': (data: PlayerInput) => void;
'spawn-npc': (data: { x: number; y: number }) => void;
}