FB2CityEditManager
Overview
- Manages city editing.
Metadata
| Field | Value |
|---|---|
| Kind | system |
| Environment | B2 - Simulation |
| Category | systems |
| Extends | FB2ManagerBase |
| Require | require('Systems.B2CityEditManager') |
Properties (12)
| Name | Type | Description |
|---|---|---|
CurrentSelectionIdList | table<string, FB1MeshReplaceSelectionList> | |
DailyLog | FB1DailyLog | |
DailyLogBuffCounter | table<FB1EntityId, table<string, boolean>> | Used to count per-day occurrences when handling DailyLog buffs. Not saved; not gameplay-critical, and it only matters that it accumulates once even after continuing a game. |
DecorationObjectSpawnList | table<string, FB1DecorationObjectList> | |
DecorationSpawnCount | table<string, FB1DecorationSpawnCountList> | worldName |
DecorationSpawnRemainTime | number | |
DecorationSpawnTickCount | integer | |
MaxSpawnCountTotalCache | table<TPair<FName, FName>,int32> | (mapName, categoryName) -> total max spawn slots cache. Comes from a data asset/table lookup so it is runtime-immutable (no explicit invalidate needed); since the key includes mapName, different entries are used automatically on level change. |
ModifierMap | table<EB1ModifierType, table<string, FB1ModifierData>> | |
PendingDecorationSpawnList | table<string, FB1DecorationSpawnInfoList> | |
WorldDecorationSpawnCountValue | table<string, FB1WorldDecorationSpawnCountDataList> | |
bCityEditMode | boolean |
Functions (33)
| Function | Parameters | Returns | Description |
|---|---|---|---|
AddWorldModifierValue | InModifierId: string, InOverrideValue: number | - | Adds World Modifier Value. |
AsyncSpawnDecoration | DeltaTime: number | - | |
CalculateModifierValue | InModifierType: EB1ModifierType, InKey: string, InValue: number | number | |
GetDecorationCountValue | InCategoryName: string | number | Returns Decoration Count Value. |
GetDecorationSpawnedCount | InCategory: string | integer | Sums the current spawned count / target count per category. |
GetDecorationTargetCount | InCategory: string | integer | Returns Decoration Target Count. |
GetMaxSpawnCount | InMapName: string, InCategoryName: string, OutMaxSpawnCountMap: table<string, integer> | - | Returns Max Spawn Count. |
GetMaxSpawnCountTotal | InMapName: string, InCategoryName: string | integer | Accumulates the sum of per-decoId quotas directly (e.g. for a debug HUD), without TMap allocation/iteration. |
GetMeshReplaceSelection | InCategory: string, OutSelectionList: FB1MeshReplaceSelectionData[] | boolean | Returns Mesh Replace Selection. |
GetModifierValue | InModifierId: string | number | Returns Modifier Value. |
GetType | - | EB2ManagerType | Returns Type. |
GetWholeMeshReplaceSelection | OutSelectionList: FB1MeshReplaceSelectionData[] | boolean | Returns Whole Mesh Replace Selection. |
HandleBirthLog (static) | - | - | |
HandleBuffLog (static) | InBuffEntityId: FB1EntityId, InId: string | - | |
HandleCarAccidentLog (static) | - | - | |
HandleDeathLog (static) | InLifeTriggerId: string | - | |
HandleDreamLog (static) | InId: string | - | |
HandleInteractionFinishLog (static) | InId: string | - | |
HandleRelationshipChangedLog (static) | InId: string | - | |
HandleStateLog (static) | InId: string | - | |
IsCityEditMode | - | boolean | Returns whether City Edit Mode. |
IsSpawnCountIsolate | InCategoryName: string, InDecoId: string | boolean | Returns whether Spawn Count Isolate. |
IsTickable | - | boolean | Returns whether Tickable. |
OnDayOfWeekChanged | InCityId: string, Before: FDateTime, After: FDateTime | - | Callback invoked on Day Of Week Changed. |
RemoveWorldModifierValue | InModifierId: string | - | Removes World Modifier Value. |
Reset | - | - | |
SetCityEditMode | bInCityEditMode: boolean | - | Sets City Edit Mode. |
SetSelection | InSelection: table<string, FB1MeshReplaceSelectionList> | - | Sets Selection. |
SetStabilitySelection | InId: string, InValue: number | - | Sets Stability Selection. |
UpdateSpawnCountRatioDecoration | InCategory: string, InValue: number | - | Updates Spawn Count Ratio Decoration. |
UpdateSpawnDecoration | InCategory: string | - | Updates Spawn Decoration. |
UpdateSpawnDecorationWhole | - | - | Updates Spawn Decoration Whole. |
UpdateZoITotalCount | - | - | Updates Zo ITotal Count. |
Override points (18)
Implement these in Lua as FB2CityEditManager.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_AddWorldModifierValue | InModifierId: string, InOverrideValue: number | - | Adds World Modifier Value. |
Override_AsyncSpawnDecoration | DeltaTime: number | - | |
Override_CalculateModifierValue | InModifierType: EB1ModifierType, InKey: string, InValue: number | number | |
Override_HandleBirthLog (static) | - | - | |
Override_HandleBuffLog (static) | InEntityId: FB1EntityId, InId: string | - | |
Override_HandleCarAccidentLog (static) | - | - | |
Override_HandleDeathLog (static) | InLifeTriggerId: string | - | |
Override_HandleDreamLog (static) | InId: string | - | |
Override_HandleInteractionFinishLog (static) | InId: string | - | |
Override_HandleRelationshipChangedLog (static) | InId: string | - | |
Override_HandleStateLog (static) | InId: string | - | |
Override_OnDayOfWeekChanged | InCityId: string, Before: FDateTime, After: FDateTime | - | Callback invoked on Day Of Week Changed. |
Override_RemoveWorldModifierValue | InModifierId: string | - | Removes World Modifier Value. |
Override_Reset | - | - | |
Override_UpdateSpawnCountRatioDecoration | InCategory: string, InValue: number | - | Updates Spawn Count Ratio Decoration. |
Override_UpdateSpawnDecoration | InCategory: string | - | Updates Spawn Decoration. |
Override_UpdateSpawnDecorationWhole | - | - | Updates Spawn Decoration Whole. |
Override_UpdateZoITotalCount | - | - | Updates Zo ITotal Count. |