rename EntityId to BuildingId
This commit is contained in:
@@ -40,7 +40,7 @@ struct CombatFixture
|
||||
GameConfig cfg;
|
||||
std::mt19937 rng;
|
||||
EntityAdmin admin;
|
||||
EntityId nextBldId;
|
||||
BuildingId nextBuildingId;
|
||||
BeltSystem belts;
|
||||
ShipSystem ships;
|
||||
BuildingSystem buildings;
|
||||
@@ -49,11 +49,11 @@ struct CombatFixture
|
||||
explicit CombatFixture()
|
||||
: cfg(loadConfig())
|
||||
, rng(42)
|
||||
, nextBldId(1)
|
||||
, nextBuildingId(1)
|
||||
, belts(cfg.world.beltSpeedTilesPerSecond)
|
||||
, ships(cfg, admin)
|
||||
, buildings(cfg, belts,
|
||||
[this]() { return nextBldId++; },
|
||||
[this]() { return nextBuildingId++; },
|
||||
[](int){},
|
||||
[](const std::string&, QVector2D, const std::optional<ShipLayoutConfig>&) {},
|
||||
rng)
|
||||
|
||||
Reference in New Issue
Block a user