Implement calibrated Modern stadium periphery preview and staged upgrades (by Codex)
This commit is contained in:
1 parent
fff2cc2f0b
commit
bfcf9a07bf
12 files changed
+470
-37
No files matched your search
@@ -4,8 +4,9 @@
|
||||
|
||||
namespace bmh::modern_ui {
|
||||
// Presentation-only construction ledger. Only state.stadium is owned here:
|
||||
// {club,budget,blocks:[{places,seats,roof,job}],facilities:[{level,job}]}.
|
||||
// All money is currency minor units. No periphery, ticket, navigation, engine,
|
||||
// {club,budget,blocks:[{places,seats,roof,job}],facilities:[{level,job}],periphery:[{level,job}]}.
|
||||
// All money is currency minor units. Includes fourteen independent periphery sites.
|
||||
// No ticket, navigation, engine,
|
||||
// random stream, world edit, legacy initialization, or completion timer.
|
||||
Json demo_stadium(const Catalog &, const std::string &club = {});
|
||||
bool valid_demo_stadium(const Json &state, const Catalog &,
|
||||
@@ -15,7 +16,8 @@ bool valid_demo_stadium(const Json &state, const Catalog &,
|
||||
bool migrate_demo_stadium(Json &state, const Catalog &,
|
||||
const std::string &club = {});
|
||||
// Only {kind:"build",request:{kind:"block",index,places,seats,roof}} or
|
||||
// {kind:"build",request:{kind:"facility",index,level}}. Recompute the quote,
|
||||
// {kind:"build",request:{kind:"facility"|"periphery",index,level}}.
|
||||
// Periphery targets must be exactly the completed level plus one. Recompute the quote,
|
||||
// atomically debit only local stadium budget and stage a pending job.
|
||||
std::string edit_demo_stadium(Json &state, const Json &action, const Catalog &,
|
||||
const std::string &club = {});
|
||||
@@ -39,4 +41,8 @@ Json demo_stadium_rules(const Catalog &);
|
||||
// Stadium identity comes from the catalogue, not its initialization policies.
|
||||
Json demo_stadium_view(const Json &state, const Catalog &, bool future = false,
|
||||
const std::string &club = {});
|
||||
// Pure calibrated sprite layout. Ignores exported simulation/editor/object state;
|
||||
// uses only runtime overview capacity and periphery jobs. Coordinates remain in
|
||||
// the 1920x1080 reference space; stable layers include full transparent canvases.
|
||||
Json demo_stadium_scene(const Json &configuration, const Json &overview, bool future);
|
||||
} // namespace bmh::modern_ui
|
||||
Reference in new issue
Block a user