Table of Contents

Class SpawnerDefinition

Namespace
FishMMO.Server.Implementation.World.SceneServer.Spawner
Assembly
FishMMO.Server.dll

One spawner as the server runs it: the authored values of an ObjectSpawner, plus where it stood, with no reference back to the scene.

[Serializable]
public class SpawnerDefinition
Inheritance
SpawnerDefinition
Inherited Members

Remarks

Baked from the scene into a SceneSpawnTable. Spawners are stripped from every shipped scene, so this copy is the only one a running server — or a client, which never gets it — can see. See ObjectSpawner for what each value means.

Fields

BoundingBoxSize

public Vector3 BoundingBoxSize

Field Value

Vector3

InitialRespawnTime

public float InitialRespawnTime

Field Value

float

InitialSpawnCount

public int InitialSpawnCount

Field Value

int

KeepOutCircles

Circles (x, keep-clear radius, z) nothing from this spawner may spawn inside: the towns a wildlife area reaches into, written by the cut (WildlifeSpawnerCut). Empty for every other spawner.

[Tooltip("Circles (x, radius, z) nothing spawns inside: settlements a wildlife area overlaps. Written by the cut.")]
public List<Vector3> KeepOutCircles

Field Value

List<Vector3>

MaxSpawnCount

public int MaxSpawnCount

Field Value

int

Name

The authoring GameObject's name, for logs.

public string Name

Field Value

string

OrConditions

[SerializeReference]
public List<RespawnCondition> OrConditions

Field Value

List<RespawnCondition>

Pack

See Pack. A table baked before packs existed has none, and deserializes a disabled block, so its spawners run exactly as they did.

public NPCPackSettings Pack

Field Value

NPCPackSettings

Position

World position of the spawner; the centre of its spawn area.

public Vector3 Position

Field Value

Vector3

PrewarmHeadroom

public int PrewarmHeadroom

Field Value

int

PrewarmPool

public bool PrewarmPool

Field Value

bool

RandomRespawnTime

public bool RandomRespawnTime

Field Value

bool

RandomSpawnPosition

public bool RandomSpawnPosition

Field Value

bool

RespawnCheckIntervalMaximum

public float RespawnCheckIntervalMaximum

Field Value

float

RespawnCheckIntervalMinimum

public float RespawnCheckIntervalMinimum

Field Value

float

Rotation

World rotation of the spawner; spawned objects face this way.

public Quaternion Rotation

Field Value

Quaternion

SpawnType

See SpawnType.

public ObjectSpawnType SpawnType

Field Value

ObjectSpawnType

Spawnables

[SerializeReference]
public List<SpawnableSettings> Spawnables

Field Value

List<SpawnableSettings>

SphereRadius

public float SphereRadius

Field Value

float

TrueConditions

[SerializeReference]
public List<RespawnCondition> TrueConditions

Field Value

List<RespawnCondition>

UniqueSpawnables

public bool UniqueSpawnables

Field Value

bool

Properties

BoundingBoxExtents

Half of BoundingBoxSize.

public Vector3 BoundingBoxExtents { get; }

Property Value

Vector3