Class SpawnLocation
Defines the spawn location with world position and optional euler angles. Used in the Coordinated Spawns system.
public record SpawnLocation : IEquatable<SpawnLocation>
- Inheritance
-
SpawnLocation
- Implements
- Inherited Members
- Extension Methods
Constructors
SpawnLocation(SpawnLocation)
protected SpawnLocation(SpawnLocation original)
Parameters
originalSpawnLocation
SpawnLocation(Vector3, Vector3)
Defines the spawn location with world position and optional euler angles. Used in the Coordinated Spawns system.
public SpawnLocation(Vector3 Position, Vector3 EulerAngles = null)
Parameters
PositionVector3- The world position.
EulerAnglesVector3- Euler angles for the rotation the spawned object will appear with.
SpawnLocation(Vector3, Vector3, Vector3)
Defines the spawn location with world position and optional euler angles. Used in the Coordinated Spawns system.
public SpawnLocation(Vector3 Position, Vector3 EulerAngles, Vector3 Scale)
Parameters
PositionVector3- The world position.
EulerAnglesVector3- Euler angles for the rotation the spawned object will appear with.
ScaleVector3- The scale that the object is spawned at. If default (0, 0, 0) will be resolved to (1, 1, 1).
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EulerAngles
Euler angles for the rotation the spawned object will appear with.
public Vector3 EulerAngles { get; init; }
Property Value
- Vector3
Position
The world position.
public Vector3 Position { get; init; }
Property Value
- Vector3
Scale
The scale that the object is spawned at. If default (0, 0, 0) will be resolved to (1, 1, 1).
public Vector3 Scale { get; init; }
Property Value
- Vector3
Methods
Deconstruct(out Vector3, out Vector3)
public void Deconstruct(out Vector3 Position, out Vector3 EulerAngles)
Parameters
PositionVector3EulerAnglesVector3
Equals(SpawnLocation?)
public virtual bool Equals(SpawnLocation? other)
Parameters
otherSpawnLocation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SpawnLocation?, SpawnLocation?)
public static bool operator ==(SpawnLocation? left, SpawnLocation? right)
Parameters
leftSpawnLocationrightSpawnLocation
Returns
operator !=(SpawnLocation?, SpawnLocation?)
public static bool operator !=(SpawnLocation? left, SpawnLocation? right)
Parameters
leftSpawnLocationrightSpawnLocation