Enum SpawnOutcome
- Namespace
- FishMMO.Server.Implementation.World.SceneServer.Spawner
- Assembly
- FishMMO.Server.dll
What one attempt to spawn an object came to.
public enum SpawnOutcome
Fields
AtCapacity = 2The spawner is already at its maximum.
Failed = 6The pool produced nothing, or an exception interrupted the spawn and it was rolled back.
Misconfigured = 4The chosen entry cannot be spawned as authored — empty, no network object, a prefab the network manager does not know — or there is no network manager.
NothingEligible = 3Unique spawnables are on and every entry is already alive.
SceneNotLoaded = 5The scene instance is not loaded.
Spawned = 0An object was spawned and is tracked.
SpawnedUntracked = 1An object was spawned, but its prefab has no ISpawnable, so the spawner can neither count it nor hear of its despawn.
Remarks
Named rather than a bool because the callers need to tell "the slot is spent" from "the object is still owed": see ConsumesTimer(SpawnOutcome).