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

Function GetStatusMachine

OsiInterface/Functions/StatusFunctions.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 FunctionHandle HealEventHandle;
13
14 esv::StatusMachine * GetStatusMachine(char const * gameObjectGuid)
15 {
16 auto character = FindCharacterByNameGuid(gameObjectGuid, false);
17 if (character != nullptr) {
18 return character->StatusMachine;
19 }
20
21 auto item = FindItemByNameGuid(gameObjectGuid, false);
22 if (item != nullptr) {
23 return item->StatusMachine;
24 }
25
26 OsiError("Character or item " << gameObjectGuid << " does not exist!");
27 return nullptr;
28 }
29
30 namespace func
31 {

Callers 3

IterateStatusesFunction · 0.85
StatusGetHandleFunction · 0.85
ExecuteMethod · 0.85

Calls 2

FindCharacterByNameGuidFunction · 0.85
FindItemByNameGuidFunction · 0.85

Tested by

no test coverage detected