Class ZoneChangedEventArgs
Contains the information when a player changes zones.
public class ZoneChangedEventArgs : IPlayerEvent, IExiledEvent
- Inheritance
-
ZoneChangedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ZoneChangedEventArgs(Player, Room, Room, ZoneType, ZoneType)
Initializes a new instance of the ZoneChangedEventArgs class.
public ZoneChangedEventArgs(Player player, Room oldRoom, Room newRoom, ZoneType oldZone, ZoneType newZone)
Parameters
playerPlayerThe player whose zone has changed.
oldRoomRoomThe previous room the player was in.
newRoomRoomThe new room the player entered.
oldZoneZoneTypeThe previous zone the player was in.
newZoneZoneTypeThe new zone the player entered.
Properties
NewRoom
Gets the new room the player entered.
public Room NewRoom { get; }
Property Value
NewZone
Gets the new zone the player entered.
public ZoneType NewZone { get; }
Property Value
OldRoom
Gets the previous room the player was in.
public Room OldRoom { get; }
Property Value
OldZone
Gets the previous zone the player was in.
public ZoneType OldZone { get; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }