Class RoomChangedEventArgs
Contains the information when a player changes rooms.
public class RoomChangedEventArgs : IPlayerEvent, IExiledEvent
- Inheritance
-
RoomChangedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
RoomChangedEventArgs(ReferenceHub, RoomIdentifier, RoomIdentifier)
Initializes a new instance of the RoomChangedEventArgs class.
public RoomChangedEventArgs(ReferenceHub player, RoomIdentifier oldRoom, RoomIdentifier newRoom)
Parameters
playerReferenceHubThe player whose room has changed.
oldRoomRoomIdentifierThe room identifier before the change (Can be null on round start).
newRoomRoomIdentifierThe room identifier after the change.
Properties
NewRoom
Gets the new room the player entered.
public Room NewRoom { get; }
Property Value
OldRoom
Gets the previous room the player was in.
public Room OldRoom { get; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }