MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / validateStep1

Function validateStep1

src/OpenLoco/src/EditorController.cpp:226–240  ·  view source on GitHub ↗

0x0043EE25

Source from the content-addressed store, hash-verified

224
225 // 0x0043EE25
226 static bool validateStep1()
227 {
228 if (!Game::hasFlags(GameStateFlags::tileManagerLoaded))
229 {
230 return true;
231 }
232
233 if (TownManager::towns().size() >= Limits::kMinTowns)
234 {
235 return true;
236 }
237
238 GameCommands::setErrorText(StringIds::at_least_one_town_be_built);
239 return false;
240 }
241
242 // 0x0043D0FA
243 void goToPreviousStep()

Callers 1

goToNextStepFunction · 0.85

Calls 4

townsFunction · 0.85
setErrorTextFunction · 0.85
hasFlagsFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected