Class LockerSpawnPoint
Handles the spawn point inside a locker.
public class LockerSpawnPoint : SpawnPoint, IPosition
- Inheritance
-
LockerSpawnPoint
- Implements
- Inherited Members
- Extension Methods
Properties
Chance
Gets or sets the spawn chance.
public override float Chance { get; set; }
Property Value
Name
Gets or sets this spawn point name.
[YamlIgnore]
public override string Name { get; set; }
Property Value
Offset
Gets or sets the offset position within the locker where the spawn point is located, relative to the locker's origin.
public Vector3 Offset { get; set; }
Property Value
- Vector3
Position
Gets or sets this spawn point position.
[YamlIgnore]
public override Vector3 Position { get; set; }
Property Value
- Vector3
Type
Gets or sets the type of the Locker.
public LockerType Type { get; set; }
Property Value
UseChamber
Gets or sets a value indicating whether to use a random locker chamber's position for spawning. If true, Offset will be ignored.
public bool UseChamber { get; set; }
Property Value
Zone
Gets or sets the zone where the locker is located.
public ZoneType Zone { get; set; }
Property Value
Methods
GetSpawningInfo(out Locker, out Chamber, out Vector3)
Gets the spawn info.
public void GetSpawningInfo(out Locker locker, out Chamber chamber, out Vector3 position)
Parameters
lockerLockerThe locker to spawn in.
chamberChamberThe chamber to spawn in. Null when UseChamber is false.
positionVector3The position to spawn in.
Exceptions
- NullReferenceException
No locker was found.