Implement live game clock and simulation controls; enhance API with clock update functionality and improve world summary with clock data; update UI to display simulation controls and integrate clock features into the game experience.

This commit is contained in:
Leonid Pershin
2026-08-16 19:31:12 +03:00
parent b75844d11a
commit 3b7fca1495
22 changed files with 1290 additions and 14 deletions
+3
View File
@@ -2,6 +2,7 @@ using System.IO.Compression;
using Microsoft.AspNetCore.ResponseCompression;
using TheLivingWorld.Api.Endpoints;
using TheLivingWorld.Api.Generation;
using TheLivingWorld.Api.Simulation;
using TheLivingWorld.Api.Storage;
using TheLivingWorld.Core.Contracts;
using TheLivingWorld.Core.Export;
@@ -35,6 +36,8 @@ builder.Services.PostConfigure<OsmOptions>(options =>
builder.Services.AddSingleton<WorldStore>();
builder.Services.AddSingleton<ChunkExporter>();
builder.Services.AddSingleton<WorldSimulationHost>();
builder.Services.AddHostedService(provider => provider.GetRequiredService<WorldSimulationHost>());
builder.Services.AddSingleton<WorldGenerationService>();
// Geometry payloads are highly repetitive JSON and compress by roughly an order of magnitude.