Runtime Spawner 1.2.5
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.Spawner.WaveSpawnPoint Class Reference

Spatial anchor used by waves and specials for directed spawning. Provides a position and an optional spawn radius plus semantic tags (e.g., "Flank", "Ambush") that rules can match against. More...

Inheritance diagram for MegaCrush.Spawner.WaveSpawnPoint:

Public Member Functions

float GetSpawnpointRange ()
 Gets the spawn radius associated with this anchor (in world units).
 
void SetRange (float r)
 Editor-only: sets the spawn radius (clamped to ≥ 0).
 
void SetAnchorTags (string[] tags)
 Editor-only: sets the anchor's semantic tags (null-safe).
 

Properties

string[] AnchorTags [get]
 Returns the set of semantic tags associated with this anchor.
 

Private Member Functions

RuntimeSpawnerSettings GetSettings ()
 Loads or creates editor settings for gizmo colors.
 
void OnDrawGizmos ()
 

Private Attributes

float range = 6f
 
string[] anchorTags = System.Array.Empty<string>()
 
RuntimeSpawnerSettings settings
 

Detailed Description

Spatial anchor used by waves and specials for directed spawning. Provides a position and an optional spawn radius plus semantic tags (e.g., "Flank", "Ambush") that rules can match against.

Member Function Documentation

◆ GetSettings()

RuntimeSpawnerSettings MegaCrush.Spawner.WaveSpawnPoint.GetSettings ( )
private

Loads or creates editor settings for gizmo colors.

◆ GetSpawnpointRange()

float MegaCrush.Spawner.WaveSpawnPoint.GetSpawnpointRange ( )

Gets the spawn radius associated with this anchor (in world units).

◆ OnDrawGizmos()

void MegaCrush.Spawner.WaveSpawnPoint.OnDrawGizmos ( )
private

◆ SetAnchorTags()

void MegaCrush.Spawner.WaveSpawnPoint.SetAnchorTags ( string[] tags)

Editor-only: sets the anchor's semantic tags (null-safe).

◆ SetRange()

void MegaCrush.Spawner.WaveSpawnPoint.SetRange ( float r)

Editor-only: sets the spawn radius (clamped to ≥ 0).

Member Data Documentation

◆ anchorTags

string [] MegaCrush.Spawner.WaveSpawnPoint.anchorTags = System.Array.Empty<string>()
private

◆ range

float MegaCrush.Spawner.WaveSpawnPoint.range = 6f
private

◆ settings

RuntimeSpawnerSettings MegaCrush.Spawner.WaveSpawnPoint.settings
private

Property Documentation

◆ AnchorTags

string [] MegaCrush.Spawner.WaveSpawnPoint.AnchorTags
get

Returns the set of semantic tags associated with this anchor.


The documentation for this class was generated from the following file: