Search Results for

    Show / Hide Table of Contents

    Class State

    The base class which handles in-context states.

    Inheritance
    System.Object
    TypeCastObject<EObject>
    EObject
    EActor
    State
    Implements
    IEntity
    IWorldSpace
    IPosition
    IRotation
    IState
    Inherited Members
    EActor.DefaultFixedTickRate
    EActor.ComponentsInChildren
    EActor.Transform
    EActor.Position
    EActor.Rotation
    EActor.Scale
    EActor.CanEverTick
    EActor.FixedTickRate
    EActor.ComponentsInParent
    EActor.AttachTo(EActor, GameObject)
    EActor.AttachTo(EActor, EActor)
    EActor.AddComponent<T>(String)
    EActor.AddComponent(Type, String)
    EActor.AddComponent<T>(Type, String)
    EActor.GetComponent(Type)
    EActor.GetComponent<T>()
    EActor.GetComponent<T>(Type)
    EActor.TryGetComponent<T>(Type, T)
    EActor.TryGetComponent<T>(T)
    EActor.TryGetComponent(Type, EActor)
    EActor.HasComponent<T>(Boolean)
    EActor.HasComponent(Type, Boolean)
    EActor.PostInitialize()
    EActor.OnBeginPlay()
    EActor.OnEndPlay()
    EActor.SubscribeEvents()
    EActor.UnsubscribeEvents()
    EActor.OnBeginDestroy()
    EObject.RegisteredTypes
    EObject.Base
    EObject.Tag
    EObject.IsEditable
    EObject.GetObjectTypeByName(String)
    EObject.RegisterObjectType<T>(String)
    EObject.RegisterObjectType(Type, String)
    EObject.UnregisterObjectType(Type)
    EObject.UnregisterObjectType(String)
    EObject.FindObjectDefinedTypeByName(String, Boolean)
    EObject.GetObjectTypeFromRegisteredTypes<T>()
    EObject.GetObjectTypeFromRegisteredTypes<T>(String)
    EObject.GetObjectTypeFromRegisteredTypes(Type)
    EObject.GetObjectTypeFromRegisteredTypes(Type, String)
    EObject.GetObjectTypeFromRegisteredTypesByName(String)
    EObject.CreateDefaultSubobject(Type, Object[])
    EObject.CreateDefaultSubobject<T>(Type)
    EObject.CreateDefaultSubobject<T>()
    EObject.CreateDefaultSubobject<T>(Object[])
    EObject.CreateDefaultSubobject<T>(GameObject, String)
    EObject.CreateDefaultSubobject<T>(GameObject, String, Object[])
    EObject.CreateDefaultSubobject<T>(Type, GameObject, String)
    EObject.CreateDefaultSubobject<T>(Type, GameObject, String, Object[])
    EObject.CreateDefaultSubobject(Type, GameObject, String)
    EObject.CreateDefaultSubobject(Type, GameObject, String, Object[])
    EObject.DestroyAllObjects()
    EObject.DestroyAllObjectsOfType<T>()
    EObject.FindActiveObjectOfType<T>(Func<EObject, Boolean>)
    EObject.FindActiveObjectsOfType<T>(Func<EObject, Boolean>)
    EObject.FindActiveObjectsOfType<T>()
    EObject.FindActiveObjectsOfType<T>(String)
    EObject.FindActiveObjectsOfType<T>(Type)
    EObject.FindActiveObjectsOfType<T>(Type, Func<EObject, Boolean>)
    EObject.FindActiveObjectsWithTagOfType<T>(String)
    EObject.FindActiveObjectsOfType<T>(Func<Object, Boolean>)
    EObject.FindActiveObjectsOfType<T>(Func<T, Boolean>)
    EObject.DestroyActiveObjectsOfType<T>()
    EObject.DestroyActiveObject<T>(GameObject)
    EObject.DestroyActiveObject(Type, GameObject)
    EObject.FindMostAppropriateEntry<T>(String, IEnumerable<T>)
    EObject.Destroy()
    EObject.GetHashCode()
    EObject.Equals(Object)
    EObject.Destroy(Boolean)
    EObject.OnDestroyed()
    TypeCastObject<EObject>.Cast<TObject>()
    TypeCastObject<EObject>.Cast<TObject>(TObject)
    TypeCastObject<EObject>.As<TObject>()
    TypeCastObject<EObject>.Is<TObject>(TObject)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.API.Features.Core.StateMachine
    Assembly: Exiled.API.dll
    Syntax
    public abstract class State : EActor, IEntity, IWorldSpace, IPosition, IRotation, IState

    Properties

    | Improve this Doc View Source

    ActiveControllers

    Gets all the StateControllers running on this State.

    Declaration
    public IEnumerable<StateController> ActiveControllers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<StateController>
    | Improve this Doc View Source

    Controllers

    Gets all the StateControllers listening to this State.

    Declaration
    public IEnumerable<StateController> Controllers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<StateController>
    | Improve this Doc View Source

    Description

    Declaration
    public virtual string Description { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Id

    Declaration
    public abstract byte Id { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    InactiveControllers

    Gets all the StateControllers running on a State other than this.

    Declaration
    public IEnumerable<StateController> InactiveControllers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<StateController>
    | Improve this Doc View Source

    List

    Gets all registered states.

    Declaration
    public static IEnumerable<State> List { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<State>
    | Improve this Doc View Source

    Name

    Declaration
    public virtual string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Get(Byte)

    Gets the State belonging to the specified id.

    Declaration
    public static State Get(byte id)
    Parameters
    Type Name Description
    System.Byte id

    The state's id.

    Returns
    Type Description
    State

    The corresponding State, or null if not found.

    | Improve this Doc View Source

    Get(Byte, Byte)

    Gets the States belonging to the specified id between the defined range.

    Declaration
    public static IEnumerable<State> Get(byte minRange, byte maxRange)
    Parameters
    Type Name Description
    System.Byte minRange

    The minimum inclusive range.

    System.Byte maxRange

    The maximum exclusive range.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<State>

    All States belonging to the specified id between the specified range.

    | Improve this Doc View Source

    Get(Byte[])

    Gets the States belonging to the specified id between the defined ids.

    Declaration
    public static IEnumerable<State> Get(params byte[] ids)
    Parameters
    Type Name Description
    System.Byte[] ids

    The ids to look for.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<State>

    All States belonging to the specified id between the defined ids.

    | Improve this Doc View Source

    Get(String)

    Gets the State belonging to the specified name.

    Declaration
    public static State Get(string name)
    Parameters
    Type Name Description
    System.String name

    The state's name.

    Returns
    Type Description
    State

    The corresponding State, or null if not found.

    | Improve this Doc View Source

    Get(String[])

    Gets the States belonging to the specified id between the defined names.

    Declaration
    public static IEnumerable<State> Get(params string[] names)
    Parameters
    Type Name Description
    System.String[] names

    The names to look for.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<State>

    All States belonging to the specified id between the defined names.

    | Improve this Doc View Source

    Get(Type)

    Gets the State belonging to the specified System.Type.

    Declaration
    public static State Get(Type type)
    Parameters
    Type Name Description
    System.Type type

    The state's System.Type.

    Returns
    Type Description
    State

    The corresponding State, or null if not found.

    | Improve this Doc View Source

    Get(Type[])

    Gets the States belonging to the specified id between the defined types.

    Declaration
    public static IEnumerable<State> Get(params Type[] types)
    Parameters
    Type Name Description
    System.Type[] types

    The types to look for.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<State>

    All States belonging to the specified id between the defined types.

    | Improve this Doc View Source

    Get<T>()

    Gets the State belonging to the specified type T.

    Declaration
    public static T Get<T>()
    
        where T : State
    Returns
    Type Description
    T

    The corresponding State, or null if not found.

    Type Parameters
    Name Description
    T

    The type to look for.

    | Improve this Doc View Source

    InitializeStates(Boolean)

    Initializes all states defined in the executing System.Reflection.Assembly.

    Declaration
    public static void InitializeStates(bool useAttribute = true)
    Parameters
    Type Name Description
    System.Boolean useAttribute

    A value indicating whether attribute should be used.

    | Improve this Doc View Source

    OnEnter(StateController)

    Declaration
    public virtual void OnEnter(StateController stateController)
    Parameters
    Type Name Description
    StateController stateController
    | Improve this Doc View Source

    OnExit(StateController)

    Declaration
    public virtual void OnExit(StateController stateController)
    Parameters
    Type Name Description
    StateController stateController
    | Improve this Doc View Source

    Tick()

    Declaration
    protected override void Tick()
    Overrides
    EActor.Tick()
    | Improve this Doc View Source

    ToString()

    Converts the State to a human readable System.String representation.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A human readable System.String representation of the State object.

    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    TryGet(Byte, out State)

    Tries to get a State given the specified id.

    Declaration
    public static bool TryGet(byte id, out State state)
    Parameters
    Type Name Description
    System.Byte id

    The state's id.

    State state

    The corresponding State, or null if not found.

    Returns
    Type Description
    System.Boolean

    true if a State was found; otherwise, false.

    | Improve this Doc View Source

    TryGet(String, out State)

    Tries to get a State given the specified name.

    Declaration
    public static bool TryGet(string name, out State state)
    Parameters
    Type Name Description
    System.String name

    The state's name.

    State state

    The corresponding State, or null if not found.

    Returns
    Type Description
    System.Boolean

    true if a State was found; otherwise, false.

    | Improve this Doc View Source

    TryGet(Type, out State)

    Tries to get a State given the specified System.Type.

    Declaration
    public static bool TryGet(Type type, out State state)
    Parameters
    Type Name Description
    System.Type type

    The state's System.Type.

    State state

    The corresponding State, or null if not found.

    Returns
    Type Description
    System.Boolean

    true if a State was found; otherwise, false.

    | Improve this Doc View Source

    TryGet<T>(out T)

    Tries to get a State given the specified System.Type.

    Declaration
    public bool TryGet<T>(out T state)
    
        where T : State
    Parameters
    Type Name Description
    T state

    The corresponding State, or null if not found.

    Returns
    Type Description
    System.Boolean

    true if a State was found; otherwise, false.

    Type Parameters
    Name Description
    T

    The type to look for.

    Implements

    IEntity
    IWorldSpace
    IPosition
    IRotation
    IState

    Extension Methods

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