feat: add gameTime to StateUpdate type

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-08 03:03:23 +00:00
parent 28533a3865
commit b295ef1af7
+4 -2
View File
@@ -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 {