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

Method GetECS

BG3Extender/Extender/ScriptExtender.cpp:392–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392ecs::EntitySystemHelpersBase* ScriptExtender::GetECS(ecs::EntityWorld* world)
393{
394 if (world == GetStaticSymbols().GetClientEntityWorld()) {
395 return &client_.GetEntityHelpers();
396 } else if (world == GetStaticSymbols().GetServerEntityWorld()) {
397 return &server_.GetEntityHelpers();
398 } else {
399 return nullptr;
400 }
401}
402
403void ScriptExtender::OnCoreLibInit(void * self)
404{

Callers

nothing calls this directly

Calls 2

GetClientEntityWorldMethod · 0.80
GetServerEntityWorldMethod · 0.80

Tested by

no test coverage detected