Refactor world simulation and API to enhance world state management; introduce StoredWorldDto for internal bookkeeping, improve synchronization between simulation and API data, and implement new simulation options for idle and catch-up behavior. Update documentation to reflect changes in data structures and API endpoints.
This commit is contained in:
@@ -19,6 +19,9 @@ builder.Services.ConfigureHttpJsonOptions(options => MapJson.Apply(options.Seria
|
||||
builder.Services.Configure<WorldStorageOptions>(
|
||||
builder.Configuration.GetSection(WorldStorageOptions.SectionName));
|
||||
|
||||
builder.Services.Configure<SimulationOptions>(
|
||||
builder.Configuration.GetSection(SimulationOptions.SectionName));
|
||||
|
||||
// Relative paths in configuration are meant to sit next to the app, not next to whatever the working
|
||||
// directory happens to be when it is launched.
|
||||
builder.Services.PostConfigure<WorldStorageOptions>(options =>
|
||||
|
||||
Reference in New Issue
Block a user