Skip to content

EntityManagerZoned.ZoneEventArgs Class

Contains event data for a Zone and Entity interaction.

C#
public class EntityManagerZoned.ZoneEventArgs

Inheritance object

ZoneEventArgs(IScreenSurface, Zone, Entity, Point)

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

Creates a new event args for a zone interaction.

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

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.

The zone associated with the event.

C#
public readonly Zone Zone

The entity associated with the event.

C#
public readonly Entity Entity

The host that the zone and entity share.

C#
public readonly IScreenSurface Host

The position within the zone associated with the event.

C#
public readonly Point TriggeredPosition