Skip to content

Entity.EntityMovedEventArgs Class

Arguments for the entity moved event.

C#
public class Entity.EntityMovedEventArgs : EventArgs

Inheritance objectEventArgs

Creates a new event args for the entity movement.

C#
public EntityMovedEventArgs(Entity entity, Point oldPosition)

entity Entity
The entity associated with the event.

oldPosition SadRogue.Primitives.Point
The position the entity moved from.

The entity associated with the event.

C#
public readonly Entity Entity

The position the Entity moved from.

C#
public readonly Point FromPosition