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 SourceReversedLocations
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 SourceGetDoor(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. |
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. |
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. |