MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / IsObjectCustom

Function IsObjectCustom

src/openrct2/object/ObjectRepository.cpp:613–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 }
612
613 bool IsObjectCustom(const ObjectRepositoryItem* object)
614 {
615 Guard::ArgumentNotNull(object);
616 switch (object->GetFirstSourceGame())
617 {
618 case ObjectSourceGame::rct1:
619 case ObjectSourceGame::addedAttractions:
620 case ObjectSourceGame::loopyLandscapes:
621 case ObjectSourceGame::rct2:
622 case ObjectSourceGame::wackyWorlds:
623 case ObjectSourceGame::timeTwister:
624 case ObjectSourceGame::openRCT2Official:
625 return false;
626 default:
627 return true;
628 }
629 }
630
631 std::unique_ptr<Object> ObjectRepositoryLoadObject(const RCTObjectEntry* objectEntry, bool loadImages)
632 {

Callers 1

GetPackableObjectsMethod · 0.85

Calls 2

ArgumentNotNullFunction · 0.85
GetFirstSourceGameMethod · 0.45

Tested by

no test coverage detected