oecs-sharp/OECS/ChangeKind.cs

41 lines
978 B
C#

namespace OECS;
/// <summary>
/// The kind of change that occurred in the ECS world.
/// </summary>
public enum ChangeKind
{
/// <summary>
/// A new entity was created.
/// </summary>
EntityAdded,
/// <summary>
/// An entity was destroyed.
/// </summary>
EntityRemoved,
/// <summary>
/// A component was added to an entity.
/// </summary>
ComponentAdded,
/// <summary>
/// A component was removed from an entity.
/// </summary>
ComponentRemoved,
/// <summary>
/// A component's value was modified. Must be explicitly marked
/// via <see cref="World.MarkModified{T}"/>.
/// </summary>
ComponentModified,
/// <summary>
/// The source set for a relationship type on a target entity was
/// reordered. The <see cref="EntityChange.Entity"/> is the target
/// and <see cref="EntityChange.ComponentType"/> is the relationship type.
/// </summary>
RelationshipReordered
}