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

Method GetOrAddEntityChange

BG3Extender/GameDefinitions/EntitySystem.cpp:521–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521ECBEntityChangeSet* ECBData::GetOrAddEntityChange(EntityHandle const& entity)
522{
523 auto changes = EntityChanges.find(entity);
524 if (changes == nullptr) {
525 changes = EntityChanges.add_uninitialized(entity);
526 new (changes) ECBEntityChangeSet(EntityChanges.allocator().Allocator);
527 }
528
529 return changes;
530}
531
532EntityHandle EntityCommandBuffer::CreateEntity()
533{

Callers 5

CreateEntityMethod · 0.80
CreateEntityImmediateMethod · 0.80
DestroyEntityMethod · 0.80
CreateComponentRawMethod · 0.80
RemoveComponentMethod · 0.80

Calls 2

findMethod · 0.45
add_uninitializedMethod · 0.45

Tested by

no test coverage detected