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

Method EntityToNetId

BG3Extender/GameDefinitions/EntitySystem.cpp:1804–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804std::optional<NetId> ServerEntitySystemHelpers::EntityToNetId(EntityHandle entity) const
1805{
1806 auto& repl = GetStaticSymbols().GetEoCServer()->GameServer->Replication;
1807 auto netId = repl.EntityToNetId.try_get(entity);
1808 return netId ? *netId : std::optional<NetId>{};
1809}
1810
1811EntityWorld* ClientEntitySystemHelpers::GetEntityWorld() const
1812{

Callers

nothing calls this directly

Calls 3

GetEoCServerMethod · 0.80
GetEoCClientMethod · 0.80
try_getMethod · 0.45

Tested by

no test coverage detected