oecs-sharp/OECS/ChangeKind.cs

34 lines
693 B
C#
Raw Normal View History

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
}