EntityManagerZoned.ZoneMoveEventArgs Class
Definition
Section titled “Definition”Contains event data for a Zone and Entity interaction.
public class EntityManagerZoned.ZoneMoveEventArgs : EntityManagerZoned.ZoneEventArgsInheritance object → EntityManagerZoned.ZoneEventArgs
Constructors
Section titled “Constructors”ZoneMoveEventArgs(IScreenSurface, Zone, Entity, Point, Point)
Section titled “ZoneMoveEventArgs(IScreenSurface, Zone, Entity, Point, Point)”Creates a new event args for a zone movement event.
public ZoneMoveEventArgs(IScreenSurface host, Zone zone, Entity entity, Point triggeredPosition, Point movedFromPosition)Parameters
Section titled “Parameters”host IScreenSurface
The host that the zone and entity share.
zone Zone
The zone associated with the event.
entity Entity
The entity associated with the event.
triggeredPosition SadRogue.Primitives.Point
The new position within the zone associated with the event.
movedFromPosition SadRogue.Primitives.Point
The position within the zone that the entity moved from.
Fields
Section titled “Fields”MovedFromPosition
Section titled “MovedFromPosition”The position within the zone that the entity moved from.
public readonly Point MovedFromPosition