Skip to main content

FB2HopeComponent

Overview

  • Component that manages hopes.

Metadata

FieldValue
Kindcomponent
EnvironmentB2 - Simulation
Categorycomponents
ExtendsFB2Component
Requirerequire('Components.B2HopeComponent')

Properties (17)

NameTypeDescription
AvailableHopestable<FB2HopeAvailableData, boolean>
CachedActiveSiteTagsstring[]Cache of the same 5-stage chain call used by autonomy (B2AutonomyComponent); recomputed via GetTPOSiteTags + CollectTPOTagsFromSiteTags and cached per CurrentTicks.
CachedActiveSiteTagsTickinteger
CachedPerferenceCRCintegerCache of frequently used data.
CachedPreferenceConsMaptable<integer, boolean>
CachedTPOTagsFB2TPOCollectedTags
CurrentPoolIndexintegerIterator used during split condition updates.
CurrentTicksinteger
DeSelectedHopestable<string, integer>
HopeDistributeContainerFB2HopeDistributeContainerStruct for split processing.
NextDistributeCheckIndexinteger
NextFilterTicksinteger
NextSelectTicksinteger
ScriptContextFB2ScriptContext
SelectedHopesFB1HopeSlotInfo[]
TempAvailableHopestable<FB2HopeAvailableData, boolean>Buffer used during lazy update.
bInLazyUpdateHopesboolean

Functions (30)

FunctionParametersReturnsDescription
DeSelectAllHopes--Cheat/test-only.
Deinitialize (static)--
FixHopeInHopeId: string, bIsFix: booleanboolean
ForceUpdateHopes-boolean
ForceUpdateHopesForCheat-boolean
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetDeSelectedHopes-table<string, integer>Returns De Selected Hopes.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetSelectedHopes-FB1HopeSlotInfo[]Returns Selected Hopes.
HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
Initialize (static)--
IsAlreadySelectedInHopeId: stringbooleanReturns whether Already Selected.
IsSelectedOrPossessedPlayer (static)EntityId: FB1EntityIdbooleanWhether the entity is being watched - selected or possessed.
LazyUpdateAvailableHopesUpdateCnt: integerboolean
MakeSyncPreferenceCRCIsChangedCRC: booleanbooleanMakes Sync Preference CRC.
OnAmbitionChanged--Event
OnChangeCharacterGroupTypeInPrevGroupType: EB1CharacterGroupType, InCurrGroupType: EB1CharacterGroupType-Callback invoked on Change Character Group Type.
OnFinishMissionInHopeId: string, InMissionId: FB1MissionIdbooleanMission.
OnHopeLifeChanged--Callback invoked on Hope Life Changed.
OnOwnerStateChanged--Callback invoked on Owner State Changed.
OnPerspectiveValueChanged--Callback invoked on Perspective Value Changed.
OnPreferenceUpdated--Callback invoked on Preference Updated.
OnTargetEntityDeathInDeadEntityId: FB1EntityId-Callback invoked on Target Entity Death.
ProcessCachedConditionCondition: FB1ConditionbooleanCahced [7/12/2024 ahnseok.kim]
RequestAddSpecificAvailableHopeSingleInHopeId: stringbooleanRequests Add Specific Available Hope Single.
ResetLazyUpdateFlag--Resets Lazy Update Flag.
SetCachedConditionCondition: FB1Condition, Result: boolean-Sets Cached Condition.
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
UpdateAvailableHopesbCheckConditions: boolean, bCheckTicks: booleanbooleanUpdates Available Hopes.
UpdateSelectedPlayer (static)InSelectedPlayerId: FB1EntityId-Updates Selected Player.

Override points (21)

Implement these in Lua as FB2HopeComponent.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_DeSelectAllHopes--Cheat/test-only.
Override_Deinitialize (static)--
Override_FixHopeInHopeId: string, bIsFix: booleanboolean
Override_ForceUpdateHopes-boolean
Override_ForceUpdateHopesForCheat-boolean
Override_HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
Override_Initialize (static)--
Override_LazyUpdateAvailableHopes-boolean
Override_OnAmbitionChanged--Event
Override_OnChangeCharacterGroupTypeInPrevGroupType: EB1CharacterGroupType, InCurrGroupType: EB1CharacterGroupType-Callback invoked on Change Character Group Type.
Override_OnFinishMissionInHopeId: string, InMissionId: FB1MissionIdbooleanMission.
Override_OnHopeLifeChanged--Callback invoked on Hope Life Changed.
Override_OnOwnerStateChanged--Callback invoked on Owner State Changed.
Override_OnPerspectiveValueChanged--Callback invoked on Perspective Value Changed.
Override_OnPreferenceUpdated--Callback invoked on Preference Updated.
Override_OnTargetEntityDeathInDeadEntityId: FB1EntityId-Callback invoked on Target Entity Death.
Override_ProcessCachedConditionCondition: FB1ConditionbooleanCahced [7/12/2024 ahnseok.kim]
Override_RequestAddSpecificAvailableHopeSingleInHopeId: stringbooleanRequests Add Specific Available Hope Single.
Override_ResetLazyUpdateFlag--Resets Lazy Update Flag.
Override_UpdateAvailableHopes-booleanUpdates Available Hopes.
Override_UpdateSelectedPlayer (static)InSelectedPlayerId: FB1EntityId-Updates Selected Player.