FB2SpawnerManager
Overview
- Manages character/object spawning (spawners).
Metadata
| Field | Value |
|---|---|
| Kind | system |
| Environment | B2 - Simulation |
| Category | systems |
| Extends | FB2ManagerBase |
| Require | require('Systems.B2SpawnerManager') |
Properties (4)
| Name | Type | Description |
|---|---|---|
CharacterSpawnerGroups | table<integer, any[]> | |
GatherableObjectSpawnedTime | FDateTime | |
OldSpawnerMap | table<FB1EntityId, any> | |
SpawnersByType | table<EB1SpawnerType, any[]> |
Functions (17)
| Function | Parameters | Returns | Description |
|---|---|---|---|
AddGatherableObjectSpawnerByTerritoryId | InTerritoryId: string, InSpawnerEntityId: FB1EntityId | - | Adds Gatherable Object Spawner By Territory Id. |
ClearCalendarEventObject | - | - | Clears Calendar Event Object. |
FindOldSpawner | Self: FB2SpawnerManager, EntityId: FB1EntityId | - | Finds and returns Old Spawner. |
FindSharedSiteSpawnerGroup | SiteId: string | FB2SharedSiteSpawnerGroup | Finds and returns Shared Site Spawner Group. |
Get | - | - | |
GetCharacterSpawnerGroup | Self: FB2SpawnerManager, GroupID: integer | - | Returns Character Spawner Group. |
GetSpawnersByType | Self: FB2SpawnerManager, SpawnerType: EB1SpawnerType | - | Returns Spawners By Type. |
GetType | - | EB2ManagerType | Returns Type. |
OnDayChanged | InPrevTime: FDateTime, InCurrentTime: FDateTime | - | update |
OrganizeSpawner | - | - | |
RegisterSpawner | InSpawner: FB2Spawner | - | set |
RestoreNewGame | InCityPath: string | - | init |
SetLocatedVehicleTerritory | - | - | Sets Located Vehicle Territory. |
SpawnCalendarEventObject | InObjectThemeId: string | - | Spawns Calendar Event Object. |
SpawnGatherableObject | - | - | Spawns Gatherable Object. |
SpawnGatherableObjectByTerritoryId | InTerritoryId: string | - | Spawns Gatherable Object By Territory Id. |
UnregisterSpawner | InSpawner: FB2Spawner | - | Unregisters Spawner. |
Override points (10)
Implement these in Lua as FB2SpawnerManager.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_AddGatherableObjectSpawnerByTerritoryId | InTerritoryId: string, InSpawnerEntityId: FB1EntityId | - | Adds Gatherable Object Spawner By Territory Id. |
Override_ClearCalendarEventObject | - | - | Clears Calendar Event Object. |
Override_OnDayChanged | InPrevTime: FDateTime, InCurrentTime: FDateTime | - | update |
Override_OrganizeSpawner | - | - | |
Override_RegisterSpawner | InSpawner: FB2Spawner | - | set |
Override_RestoreNewGame | InCityPath: string | - | init |
Override_SpawnCalendarEventObject | InObjectThemeId: string | - | Spawns Calendar Event Object. |
Override_SpawnGatherableObject | - | - | Spawns Gatherable Object. |
Override_SpawnGatherableObjectByTerritoryId | InTerritoryId: string | - | Spawns Gatherable Object By Territory Id. |
Override_UnregisterSpawner | InSpawner: FB2Spawner | - | Unregisters Spawner. |