MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetStatusByType

Method GetStatusByType

BG3Extender/GameDefinitions/GameHelpers.cpp:241–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 }
240
241 esv::Status* esv::Character::GetStatusByType(StatusType type)
242 {
243 if (StatusManager == nullptr) {
244 return nullptr;
245 }
246
247 for (auto status : StatusManager->Statuses) {
248 if (status->GetStatusId() == type) {
249 return status;
250 }
251 }
252
253 return nullptr;
254 }
255
256 char const * TempStrings::Make(STDString const & str)
257 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected