Class ChangingSpectatedPlayerEventArgs
Contains all information before a spectator changes the spectated player.
Inheritance
System.Object
ChangingSpectatedPlayerEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class ChangingSpectatedPlayerEventArgs : IPlayerEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingSpectatedPlayerEventArgs(ReferenceHub, UInt32, UInt32)
Initializes a new instance of the ChangingSpectatedPlayerEventArgs class.
Declaration
public ChangingSpectatedPlayerEventArgs(ReferenceHub player, uint oldTarget, uint newTarget)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | player | |
System.UInt32 | oldTarget | |
System.UInt32 | newTarget |
Properties
| Improve this Doc View SourceNewTarget
Gets the player who's going to be spectated.
Declaration
public Player NewTarget { get; }
Property Value
Type | Description |
---|---|
Player |
OldTarget
Gets player that was being spectated.
Declaration
public Player OldTarget { get; }
Property Value
Type | Description |
---|---|
Player |
Player
Gets player that is changing spectated player.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |