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

Method GetStatusByHandle

OsiInterface/DivInterface.cpp:383–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 }
382
383 esv::Status * esv::StatusMachine::GetStatusByHandle(ObjectHandle handle) const
384 {
385 auto count = Statuses.Set.Size;
386 for (uint32_t i = 0; i < count; i++) {
387 auto status = Statuses.Set.Buf[i];
388 if (status->StatusHandle == handle) {
389 return status;
390 }
391 }
392
393 return nullptr;
394 }
395
396
397 std::optional<int32_t> CDivinityStats_Character::GetStat(char const * name, bool baseStats)

Callers 1

GetStatusHelperFunction · 0.80

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected