diff --git a/shared/src/types.ts b/shared/src/types.ts index 78cb024..a664b05 100644 --- a/shared/src/types.ts +++ b/shared/src/types.ts @@ -137,13 +137,15 @@ export interface WorldState { tileSize: number; obstacles: Position[]; pointsOfInterest: { type: 'food' | 'rest'; position: Position }[]; - terrain: number[]; // flat array [y * width + x], terrain type per tile - decorations: number[]; // flat array [y * width + x], decoration tile index (-1 = none) + terrain: number[]; // flat array [y * width + x], terrain type per tile + decorations: number[]; // flat array [y * width + x], decoration tile index (-1 = none) + trunkDecorations: number[]; // flat array [y * width + x], trunk tile index (-1 = none) } export interface StateUpdate { entities: EntityState[]; tick: number; + gameTime: number; // 0.0-1.0 normalized position in day/night cycle } export interface PlayerJoined {