Class ChangingMoveStateEventArgs
Contains all information before changing movement state.
Inheritance
System.Object
ChangingMoveStateEventArgs
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 ChangingMoveStateEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingMoveStateEventArgs(Player, PlayerMovementState, PlayerMovementState, Boolean)
Initializes a new instance of the ChangingMoveStateEventArgs class.
Declaration
public ChangingMoveStateEventArgs(Player player, PlayerMovementState oldState, PlayerMovementState newState, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
PlayerRoles.FirstPersonControl.PlayerMovementState | oldState | |
PlayerRoles.FirstPersonControl.PlayerMovementState | newState | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether the player can change the movement state.
Declaration
[Obsolete("Property was removed due to desync problems.")]
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NewState
Gets or sets the new state.
Declaration
public PlayerMovementState NewState { get;
[Obsolete("Setter was removed due to desync problems.")]
set;
}
Property Value
Type | Description |
---|---|
PlayerRoles.FirstPersonControl.PlayerMovementState |
OldState
Gets the old state.
Declaration
public PlayerMovementState OldState { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.FirstPersonControl.PlayerMovementState |
Player
Gets the player who's changing the movement state.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |