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

Method validate

src/OpenLoco/src/Objects/LandObject.cpp:21–41  ·  view source on GitHub ↗

0x00469973

Source from the content-addressed store, hash-verified

19
20 // 0x00469973
21 bool LandObject::validate() const
22 {
23 if (costIndex > 32)
24 {
25 return false;
26 }
27 if (costFactor <= 0)
28 {
29 return false;
30 }
31 if (numGrowthStages < 1)
32 {
33 return false;
34 }
35 if (numGrowthStages > 8)
36 {
37 return false;
38 }
39
40 return (numImageAngles == 1 || numImageAngles == 2 || numImageAngles == 4);
41 }
42
43 // 0x0046983C
44 void LandObject::load(const LoadedObjectHandle& handle, std::span<const std::byte> data, ObjectManager::DependentObjects* dependencies)

Callers 1

callObjectValidateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected