SpawnPoint
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

allowKeySpawnboolFULL version only
When this option is checked, it allows to spawn Keys here for ConnectorLocks.
percentChancesToSpawnfloatThe percent chances for this SpawnPoint to spawn something.
configsListEach config describes a Spawnable that can spawn at this SpawnPoint.

Properties

SelectedSpawnableConfigSpawnPointConfigGets the selected SpawnPointConfig for this SpawnPoint. Unless you know exactly what you are doing, do not set this value.
DetachedModeboolReadOnly
Gets a value indicating whether this SpawnPoint is spawning a detached Spawnable.
CompletedboolGets 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();
Description
Unspawn (deactivate) the child elements under this SpawnPoint. Will not unspawn detached Spawnables.