feat: add gameTime to StateUpdate type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user