ChivalrousGames.com/Products/DungeonMaster/Documentation/BaseSpawnPoint/

BaseSpawnPoint

Class in ChivalrousGames.DungeonMaster / Inherits from: MonoBehaviour

Description

A location in a Room responsible to spawn a BaseSpawnable.

Fields

properties List A list of custom properties. Any type of property, status or information about a connector or spawn point instance can be sorted here. For example, a property ‘used’ could inform the game that this particular connector point has already been used by a character and must respawn its prefab in a ‘used’ state.

Properties

Generated bool ReadOnly
Gets or sets a value indicating whether this BaseSpawnPoint is generated. If this is true and SelectedSpawnableConfig (defined in child classes) is null, then the BaseSpawnPoint is empty but is supposed to be and should remain so.
Room Room ReadOnly
Gets the room that owns this BaseSpawnPoint

Methods

ClearSelectedConfig
public abstract void ClearSelectedConfig();
Description

Clears the selected config. Implemented in child classes.

SpawnInstantiate
public abstract void SpawnInstantiate();
Description

Spawn (instantiate) the specified baseSpawnable and applies the adjustment.

SpawnActivate
public virtual void SpawnActivate();
Description

Spawn (activates) the specified baseSpawnable.

UnspawnDestroy
public virtual void UnspawnDestroy();
Description

Unspawn (destroys) the child elements under this BaseSpawnPoint.

UnspawnDeactivate
public virtual void UnspawnDeactivate();
Description

Unspawn (deactivate) the child elements under this BaseSpawnPoint.