diff --git a/shared/src/constants.ts b/shared/src/constants.ts index aac4bca..ccc2a1f 100644 --- a/shared/src/constants.ts +++ b/shared/src/constants.ts @@ -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; diff --git a/shared/src/types.ts b/shared/src/types.ts index dd32417..47bb7e5 100644 --- a/shared/src/types.ts +++ b/shared/src/types.ts @@ -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; }