Skip to content

EntityManagerZoned.ZoneMoveEventArgs Class

Contains event data for a Zone and Entity interaction.

C#
public class EntityManagerZoned.ZoneMoveEventArgs : EntityManagerZoned.ZoneEventArgs

Inheritance objectEntityManagerZoned.ZoneEventArgs

ZoneMoveEventArgs(IScreenSurface, Zone, Entity, Point, Point)

Section titled “ZoneMoveEventArgs(IScreenSurface, Zone, Entity, Point, Point)”

Creates a new event args for a zone movement event.

C#
public ZoneMoveEventArgs(IScreenSurface host, Zone zone, Entity entity, Point triggeredPosition, Point movedFromPosition)

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.

The position within the zone that the entity moved from.

C#
public readonly Point MovedFromPosition