Class in ChivalrousGames.DungeonMaster / Inherits from BaseSpawnPoint
Description
A location in a Room responsible to select, spawn and keep track of a Spawnable. The name of the SpawnPoint should be unique in a Room.Fields
allowKeySpawn | bool | FULL version only When this option is checked, it allows to spawn Keys here for ConnectorLocks. |
percentChancesToSpawn | float | The percent chances for this SpawnPoint to spawn something. |
configs | List | Each config describes a Spawnable that can spawn at this SpawnPoint. |
Properties
SelectedSpawnableConfig | SpawnPointConfig | Gets the selected SpawnPointConfig for this SpawnPoint. Unless you know exactly what you are doing, do not set this value. |
DetachedMode | bool | ReadOnly Gets a value indicating whether this SpawnPoint is spawning a detached Spawnable. |
Completed | bool | Gets or sets a value indicating whether the selected Spawnable is completed. A completed Spawnable will not spawn again. |
Methods
ClearSelectedConfig
public override void ClearSelectedConfig();
Description
Clears the selected config.SpawnInstantiate
public override void SpawnInstantiate();
Description
Randomly selects and spawns a Spawnable.SpawnActivate
public override void SpawnActivate();
Description
Spawn (activates) the specified Spawnable.UnspawnDestroy
public override void UnspawnDestroy();
Description
Unspawn (destroys) the child elements under this SpawnPoint. Will not unspawn detached Spawnables.UnspawnDetachedSpawnables
public void UnspawnDetachedSpawnables();
Description
Unspawns (destroys) the detached Spawnables.UnspawnDeactivate
public override void UnspawnDeactivate();