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

Method Create

BG3Extender/GameDefinitions/EntitySystem.cpp:238–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238EntityHandle EntityHandleGenerator::Create()
239{
240 auto tid = ThreadRegistry::RequestThreadIndex();
241 auto entry = ThreadStates[tid].Add();
242 return EntityHandle(tid, entry->Index, entry->Salt);
243}
244
245EntityHandleGenerator::ThreadState::Entry* EntityHandleGenerator::ThreadState::Add()
246{

Callers 2

CreateEntityMethod · 0.45
CreateEntityImmediateMethod · 0.45

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected