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
See BoundingBoxSize.
public Vector3 BoundingBoxSize
Field Value
- Vector3
InitialRespawnTime
See InitialRespawnTime.
public float InitialRespawnTime
Field Value
InitialSpawnCount
See InitialSpawnCount.
public int InitialSpawnCount
Field Value
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
See MaxSpawnCount.
public int MaxSpawnCount
Field Value
Name
The authoring GameObject's name, for logs.
public string Name
Field Value
OrConditions
See OrConditions.
[SerializeReference]
public List<RespawnCondition> OrConditions
Field Value
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
Position
World position of the spawner; the centre of its spawn area.
public Vector3 Position
Field Value
- Vector3
PrewarmHeadroom
See PrewarmHeadroom.
public int PrewarmHeadroom
Field Value
PrewarmPool
See PrewarmPool.
public bool PrewarmPool
Field Value
RandomRespawnTime
See RandomRespawnTime.
public bool RandomRespawnTime
Field Value
RandomSpawnPosition
See RandomSpawnPosition.
public bool RandomSpawnPosition
Field Value
RespawnCheckIntervalMaximum
public float RespawnCheckIntervalMaximum
Field Value
RespawnCheckIntervalMinimum
public float RespawnCheckIntervalMinimum
Field Value
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
Spawnables
See Spawnables.
[SerializeReference]
public List<SpawnableSettings> Spawnables
Field Value
SphereRadius
See SphereRadius.
public float SphereRadius
Field Value
TrueConditions
See TrueConditions.
[SerializeReference]
public List<RespawnCondition> TrueConditions
Field Value
UniqueSpawnables
See UniqueSpawnables.
public bool UniqueSpawnables
Field Value
Properties
BoundingBoxExtents
Half of BoundingBoxSize.
public Vector3 BoundingBoxExtents { get; }
Property Value
- Vector3