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

Function ItemGetStatsIdProxy

OsiInterface/Functions/FunctionLibrary.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 {
15
16 char const * ItemGetStatsIdProxy(char const * itemGuid)
17 {
18 auto item = FindItemByNameGuid(itemGuid);
19 if (item == nullptr) {
20 OsiError("Item '" << itemGuid << "' does not exist!");
21 return nullptr;
22 }
23
24 if (!item->StatsId.Str) {
25 OsiError("Item '" << itemGuid << "' has no stats ID!");
26 return nullptr;
27 } else {
28 return item->StatsId.Str;
29 }
30 }
31
32 void OsiLuaReset(OsiArgumentDesc const & args)
33 {

Callers

nothing calls this directly

Calls 1

FindItemByNameGuidFunction · 0.85

Tested by

no test coverage detected