Search Results for

    Show / Hide Table of Contents

    Class ChangingMoveStateEventArgs

    Contains all information before changing movement state.

    Inheritance
    System.Object
    ChangingMoveStateEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    IExiledEvent
    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 Source

    ChangingMoveStateEventArgs(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 Source

    IsAllowed

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    OldState

    Gets the old state.

    Declaration
    public PlayerMovementState OldState { get; }
    Property Value
    Type Description
    PlayerRoles.FirstPersonControl.PlayerMovementState
    | Improve this Doc View Source

    Player

    Gets the player who's changing the movement state.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player

    Implements

    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX