Struct EntityComponentEventArgs
An event when an EntityComponent changed in an Entity.
public struct EntityComponentEventArgs
- Inherited Members
Constructors
EntityComponentEventArgs(Entity, int, EntityComponent, EntityComponent)
Initializes a new instance of the EntityComponentEventArgs struct.
public EntityComponentEventArgs(Entity entity, int index, EntityComponent previousComponent, EntityComponent newComponent)
Parameters
entity
EntityThe entity.
index
intpreviousComponent
EntityComponentThe previous component.
newComponent
EntityComponentThe new component.
Fields
Entity
The entity
public readonly Entity Entity
Field Value
Index
The index of the component in the entity
public readonly int Index
Field Value
NewComponent
The new component
public readonly EntityComponent NewComponent
Field Value
PreviousComponent
The previous component
public readonly EntityComponent PreviousComponent