EntityLifetimeCommand class

Base classes

class UndoCommand

Public types

enum class Kind: uint8_t { Spawn, Delete }

Constructors, destructors, conversion operators

EntityLifetimeCommand(WorldBase* world, std::vector<EntityHandle> entities, Kind kind)

Public functions

void Execute() override
void Undo() override
void OnDiscarded() override

Function documentation

void EntityLifetimeCommand::OnDiscarded() override

The history dropped this command for good (past the depth cap, or a truncated redo branch): release anything it was keeping alive for undo. Not called on History::Clear.