MCPcopy Create free account
hub / github.com/Norbyte/ositools / ObjectExists

Method ObjectExists

OsiInterface/DivInterface.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 bool CRPGStatsManager::ObjectExists(FixedString statsId, FixedString type)
66 {
67 auto object = objects.Find(statsId);
68 if (object == nullptr) {
69 return false;
70 }
71
72 auto typeInfo = GetTypeInfo(object);
73 if (typeInfo == nullptr) {
74 return false;
75 }
76
77 return typeInfo->Name == type;
78 }
79
80 ModifierList * CRPGStatsManager::GetTypeInfo(CRPGStats_Object * object)
81 {

Callers 1

SkillBarSetSkillFunction · 0.80

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected