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

Method CreateEntity

BG3Extender/GameDefinitions/EntitySystem.cpp:532–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532EntityHandle EntityCommandBuffer::CreateEntity()
533{
534 auto entity = HandleGenerator->Create();
535 auto change = Data.GetOrAddEntityChange(entity);
536 change->Flags |= EntityChangeFlags::Create;
537 return entity;
538}
539
540EntityHandle EntityCommandBuffer::CreateEntityImmediate()
541{

Callers

nothing calls this directly

Calls 2

GetOrAddEntityChangeMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected