Files
RobustToolbox/Robust.Shared/GameObjects/EntityLifeState.cs
T
AcruidandGitHub 289f637e8a Entity Lifetime Levels (#1644)
* Added an entity lifetime levels property.
Added exception when recursively deleting an entity.

* Add a directed event 'EntityTerminatingEvent' for right before an entity is deleted.

* Added MapInit lifestage to entities.
2021-03-18 22:53:05 -07:00

36 lines
890 B
C#

namespace Robust.Shared.GameObjects
{
public enum EntityLifeStage
{
/// <summary>
/// The entity has just been created, and needs to be initialized.
/// </summary>
PreInit = 0,
/// <summary>
/// The entity is currently being initialized.
/// </summary>
Initializing,
/// <summary>
/// The entity has been initialized.
/// </summary>
Initialized,
/// <summary>
/// The map this entity is on has been initialized, so this entity has been as well.
/// </summary>
MapInitialized,
/// <summary>
/// The entity is currently removing all of it's components and is about to be deleted.
/// </summary>
Terminating,
/// <summary>
/// The entity has been deleted.
/// </summary>
Deleted,
}
}