Search Results for

    Show / Hide Table of Contents

    Class SpawnExtensions

    A set of extensions for SpawnLocationType.

    Inheritance
    System.Object
    SpawnExtensions
    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.API.Extensions
    Assembly: Exiled.API.dll
    Syntax
    public static class SpawnExtensions

    Fields

    | Improve this Doc View Source

    ReversedLocations

    The names of spawn locations who's positions are on the opposite side of their door, and must be corrected.

    Declaration
    public static readonly SpawnLocationType[] ReversedLocations
    Field Value
    Type Description
    SpawnLocationType[]

    Methods

    | Improve this Doc View Source

    GetDoor(SpawnLocationType)

    Tries to get the UnityEngine.Transform of the door used for a specific SpawnLocationType.

    Declaration
    public static Transform GetDoor(this SpawnLocationType location)
    Parameters
    Type Name Description
    SpawnLocationType location

    The SpawnLocationType to check.

    Returns
    Type Description
    UnityEngine.Transform

    The UnityEngine.Transform used for that spawn location. Can be null.

    | Improve this Doc View Source

    GetDoorName(SpawnLocationType)

    The names of the doors attached to each spawn location.

    Declaration
    public static string GetDoorName(this SpawnLocationType spawnLocation)
    Parameters
    Type Name Description
    SpawnLocationType spawnLocation

    The SpawnLocationType.

    Returns
    Type Description
    System.String

    Returns the door name.

    | Improve this Doc View Source

    GetPosition(SpawnLocationType)

    Tries to get the UnityEngine.Vector3 used for a specific SpawnLocationType.

    Declaration
    public static Vector3 GetPosition(this SpawnLocationType location)
    Parameters
    Type Name Description
    SpawnLocationType location

    The SpawnLocationType to check.

    Returns
    Type Description
    UnityEngine.Vector3

    The UnityEngine.Vector3 used for that spawn location. Can be UnityEngine.Vector3.zero.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX