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

Function GetEntityWorld

OsiInterface/Functions/FunctionUtilities.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 EntityWorld * GetEntityWorld()
80 {
81 auto charFactory = gOsirisProxy->GetLibraryManager().GetCharacterFactory();
82 if (charFactory != nullptr) {
83 return charFactory->Entities;
84 }
85
86 auto itemFactory = gOsirisProxy->GetLibraryManager().GetItemFactory();
87 if (itemFactory != nullptr) {
88 return itemFactory->Entities;
89 }
90
91 OsiError("EntityWorld not available!");
92 return nullptr;
93 }
94
95 void * FindComponentByNameGuid(ComponentType componentType, std::string const & nameGuid, bool logError)
96 {

Callers 7

CharacterGetCustomStatFunction · 0.85
CharacterSyncCustomStatsFunction · 0.85
CharacterSetCustomStatFunction · 0.85
FindComponentByNameGuidFunction · 0.85
FindComponentByHandleFunction · 0.85

Calls 2

GetCharacterFactoryMethod · 0.80
GetItemFactoryMethod · 0.80

Tested by

no test coverage detected