Day night cycle

This commit is contained in:
2026-09-26 11:03:07 -03:00
parent 8f32a59bd6
commit 8b549162c4
16 changed files with 244 additions and 6 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ export interface ClientContext {
net: ClientNet;
player: { readonly name: string; readonly position: Readonly<Position> };
// read only, what this client sees
world: { get_block(x: number, y: number, z: number): Id | undefined };
world: {
get_block(x: number, y: number, z: number): Id | undefined;
// ticks since 06:00 of day 1, see ServerWorld.time
readonly time: number;
};
log(...args: unknown[]): void;
}