Class SpawnerSystem
- Namespace
- FishMMO.Server.Implementation.World.SceneServer.Spawner
- Assembly
- FishMMO.Server.dll
The scene server's spawner system: populates every loaded world scene from its baked SceneSpawnTable and drives respawns.
[CreateAssetMenu(fileName = "SpawnerSystem", menuName = "FishMMO/Server/Scene Server/Spawner System", order = 1)]
public class SpawnerSystem : ServerBehaviour, IServerBehaviour<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>, IServerBehaviour, IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>, IServerComponent
- Inheritance
-
ObjectScriptableObjectSpawnerSystem
- Implements
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.MemberwiseClone()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
Replaces the scene-placed spawner network objects. The tables are server-only data, so a client build never learns what spawns where.
Fields
Catalogue
Every world scene's baked spawn table.
[Tooltip("Every world scene's baked spawn table. Generated by FishMMO Dashboard → World → Spawn Tables → Rebuild Spawn Tables.")]
public SpawnTableCatalogue Catalogue
Field Value
Properties
Host
The running host, or null before initialisation.
public SpawnerHost Host { get; }
Property Value
Methods
InitializeOnce()
Called once to initialize the behaviour. Must be implemented by derived classes.
public override ServerComponentInitializationStatus InitializeOnce()
Returns
Remarks
Behaviours that need to await I/O (database registration, for example) must override InitializeOnceAsync(CancellationToken) instead of blocking in here. The Unity main thread must never block on I/O: it is the thread that drains async continuations, so blocking it can deadlock startup before the transport ever binds.
OnDeinitialize()
Called when the behaviour is being deinitialized. Must be implemented by derived classes.
public override void OnDeinitialize()
OnUpdate(float)
Override this method in derived classes that need per-frame updates. Guaranteed to run only when the behaviour is initialized and Server is non-null.
protected override void OnUpdate(float deltaTime)
Parameters
deltaTimefloatTime elapsed since last frame.
Remarks
The time comes from the scheduler's own monotonic clock, never the wall clock: a respawn deadline is a duration, and the host's clock being set must not move it.