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

Method CreateEntityImmediate

BG3Extender/GameDefinitions/EntitySystem.cpp:540–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540EntityHandle EntityCommandBuffer::CreateEntityImmediate()
541{
542 auto entity = HandleGenerator->Create();
543 auto change = Data.GetOrAddEntityChange(entity);
544 change->Flags |= EntityChangeFlags::Create | EntityChangeFlags::Immediate;
545 return entity;
546}
547
548bool EntityCommandBuffer::DestroyEntity(EntityHandle entity)
549{

Callers

nothing calls this directly

Calls 2

GetOrAddEntityChangeMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected