|
| virtual void | Update (float dt) |
| override void | Load (ValuesDictionary valuesDictionary) |
| override void | OnEntityAdded (Entity entity) |
| override void | OnEntityRemoved (Entity entity) |
| virtual void | InitializeCreatureTypes () |
| virtual void | SpawnRandomCreature () |
| virtual void | SpawnChunkCreatures (SpawnChunk chunk, int maxAttempts, bool constantSpawn) |
| virtual List< Entity > | SpawnCreatures (CreatureType creatureType, string templateName, Point3 point, int count) |
| virtual Entity | SpawnCreature (string templateName, Vector3 position, bool constantSpawn) |
| virtual ? Point3 | GetRandomChunkSpawnPoint (SpawnChunk chunk, SpawnLocationType spawnLocationType) |
| virtual ? Point3 | GetRandomSpawnPoint (Camera camera, SpawnLocationType spawnLocationType) |
| virtual ? Point3 | ProcessSpawnPoint (Point3 spawnPoint, SpawnLocationType spawnLocationType) |
| virtual bool | TestSpawnPoint (Point3 spawnPoint, SpawnLocationType spawnLocationType) |
| virtual float | CalculateSpawnSuitability (CreatureType creatureType, Point3 spawnPoint) |
| virtual int | CountCreatures (CreatureType creatureType) |
| virtual int | CountCreatures (bool constantSpawn) |
| virtual int | CountCreaturesInArea (Vector2 c1, Vector2 c2, bool constantSpawn) |
| virtual int | GetRandomWeightedItem (IEnumerable< float > items) |
| virtual SpawnLocationType | GetRandomSpawnLocationType () |
| virtual void | Save (ValuesDictionary valuesDictionary) |
| virtual void | Dispose () |
| virtual void | Initialize (Project project, ValuesDictionary valuesDictionary) |
◆ CalculateSpawnSuitability()
| virtual float Game.SubsystemCreatureSpawn.CalculateSpawnSuitability |
( |
CreatureType | creatureType, |
|
|
Point3 | spawnPoint ) |
|
virtual |
◆ CountCreatures() [1/2]
| virtual int Game.SubsystemCreatureSpawn.CountCreatures |
( |
bool | constantSpawn | ) |
|
|
virtual |
◆ CountCreatures() [2/2]
| virtual int Game.SubsystemCreatureSpawn.CountCreatures |
( |
CreatureType | creatureType | ) |
|
|
virtual |
◆ CountCreaturesInArea()
| virtual int Game.SubsystemCreatureSpawn.CountCreaturesInArea |
( |
Vector2 | c1, |
|
|
Vector2 | c2, |
|
|
bool | constantSpawn ) |
|
virtual |
◆ GetRandomChunkSpawnPoint()
◆ GetRandomSpawnLocationType()
◆ GetRandomSpawnPoint()
◆ GetRandomWeightedItem()
| virtual int Game.SubsystemCreatureSpawn.GetRandomWeightedItem |
( |
IEnumerable< float > | items | ) |
|
|
virtual |
◆ InitializeCreatureTypes()
| virtual void Game.SubsystemCreatureSpawn.InitializeCreatureTypes |
( |
| ) |
|
|
virtual |
◆ Load()
| override void Game.SubsystemCreatureSpawn.Load |
( |
ValuesDictionary | valuesDictionary | ) |
|
|
virtual |
◆ OnEntityAdded()
| override void Game.SubsystemCreatureSpawn.OnEntityAdded |
( |
Entity | entity | ) |
|
|
virtual |
◆ OnEntityRemoved()
| override void Game.SubsystemCreatureSpawn.OnEntityRemoved |
( |
Entity | entity | ) |
|
|
virtual |
◆ ProcessSpawnPoint()
◆ SpawnChunkCreatures()
| virtual void Game.SubsystemCreatureSpawn.SpawnChunkCreatures |
( |
SpawnChunk | chunk, |
|
|
int | maxAttempts, |
|
|
bool | constantSpawn ) |
|
virtual |
◆ SpawnCreature()
| virtual Entity Game.SubsystemCreatureSpawn.SpawnCreature |
( |
string | templateName, |
|
|
Vector3 | position, |
|
|
bool | constantSpawn ) |
|
virtual |
◆ SpawnCreatures()
| virtual List< Entity > Game.SubsystemCreatureSpawn.SpawnCreatures |
( |
CreatureType | creatureType, |
|
|
string | templateName, |
|
|
Point3 | point, |
|
|
int | count ) |
|
virtual |
◆ SpawnRandomCreature()
| virtual void Game.SubsystemCreatureSpawn.SpawnRandomCreature |
( |
| ) |
|
|
virtual |
◆ TestSpawnPoint()
◆ Update()
| virtual void Game.SubsystemCreatureSpawn.Update |
( |
float | dt | ) |
|
|
virtual |
◆ m_areaLimit
| int Game.SubsystemCreatureSpawn.m_areaLimit = 3 |
|
static |
◆ m_areaLimitConstant
| int Game.SubsystemCreatureSpawn.m_areaLimitConstant = 4 |
|
static |
◆ m_areaRadius
| int Game.SubsystemCreatureSpawn.m_areaRadius = 16 |
|
static |
◆ m_areaRadiusConstant
| int Game.SubsystemCreatureSpawn.m_areaRadiusConstant = 42 |
|
static |
◆ m_componentBodies
| DynamicArray<ComponentBody> Game.SubsystemCreatureSpawn.m_componentBodies = [] |
◆ m_creatures
◆ m_creatureTypes
| List<CreatureType> Game.SubsystemCreatureSpawn.m_creatureTypes = [] |
◆ m_newSpawnChunks
| List<SpawnChunk> Game.SubsystemCreatureSpawn.m_newSpawnChunks = [] |
◆ m_populationReductionConstant
| const float Game.SubsystemCreatureSpawn.m_populationReductionConstant = 0.25f |
|
static |
◆ m_random
| Random Game.SubsystemCreatureSpawn.m_random = new() |
◆ m_spawnChunks
| List<SpawnChunk> Game.SubsystemCreatureSpawn.m_spawnChunks = [] |
◆ m_spawnLocations
◆ m_subsystemBodies
◆ m_subsystemGameInfo
◆ m_subsystemSeasons
◆ m_subsystemSky
◆ m_subsystemSpawn
◆ m_subsystemTerrain
◆ m_subsystemTime
◆ m_subsystemViews
◆ m_totalLimit
| int Game.SubsystemCreatureSpawn.m_totalLimit = 26 |
|
static |
◆ m_totalLimitConstant
| int Game.SubsystemCreatureSpawn.m_totalLimitConstant = 6 |
|
static |
◆ m_totalLimitConstantChallenging
| int Game.SubsystemCreatureSpawn.m_totalLimitConstantChallenging = 12 |
|
static |
◆ Creatures
| Dictionary<ComponentCreature, bool>.KeyCollection Game.SubsystemCreatureSpawn.Creatures |
|
get |
◆ UpdateOrder
该类的文档由以下文件生成: