Skip to main content

FB2PerspectiveComponent

Overview

  • Component that manages perspective-related data.

Metadata

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

Properties (4)

NameTypeDescription
BioComponentany
Perspectivestable<string, FB1Perspective>
bIsEnableDailyPopupboolean
bIsMainPerspectiveChangeboolean

Functions (16)

FunctionParametersReturnsDescription
AddPerspectiveCoolTimeInPerspectiveId: string, InCategoryId: string, InInteractionBagId: string, InValue: number-Adds Perspective Cool Time.
CalculateProbabilityInCategoryId: stringboolean
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetMainPerspective-stringReturns Main Perspective.
GetPerspectiveInPerspectiveId: stringnumberReturns Perspective.
GetPerspectiveMap-table<string, FB1Perspective>Returns Perspective Map.
InheritPerspectiveInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStepstring
InitPerspectiveByTraitInTraitId: string-Initializes Perspective By Trait.
IsCoolTimeReadyInPerspectiveId: string, InCategoryId: string, InInteractionBagId: stringbooleanReturns whether Cool Time Ready.
IsCoolTimeReadyAtTimeInDateTime: FDateTime, InPerspectiveId: string, InCategoryId: string, InInteractionBagId: stringbooleanReturns whether Cool Time Ready At Time.
IsMainPerspectiveChange-booleanReturns whether Main Perspective Change.
OnDayChangedBefore: FDateTime, After: FDateTime-Callback invoked on Day Changed.
ResetPerspectivebIsValue: boolean-For AutomationTest. Don't use this for GamePlay
SetMainPerspectiveChangeInMainPerspectiveChange: boolean-Sets Main Perspective Change.
UpdateCoolTimeInPerspectiveId: string, InInteractionBagId: string-Updates Cool Time.
UpdateMainPerspectiveUIInMainPerspectiveId: string-Updates Main Perspective UI.

Override points (8)

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

FunctionParametersReturnsDescription
Override_AddPerspectiveCoolTimeInPerspectiveId: string, InCategoryId: string, InInteractionBagId: string, InValue: number-Adds Perspective Cool Time.
Override_CalculateProbabilityInCategoryId: stringboolean
Override_InheritPerspectiveInPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStepstring
Override_InitPerspectiveByTraitInTraitId: string-Initializes Perspective By Trait.
Override_OnDayChangedBefore: FDateTime, After: FDateTime-Callback invoked on Day Changed.
Override_ResetPerspectivebIsValue: boolean-For AutomationTest. Don't use this for GamePlay
Override_UpdateCoolTimeInPerspectiveId: string, InInteractionBagId: string-Updates Cool Time.
Override_UpdateMainPerspectiveUIInMainPerspectiveId: string-Updates Main Perspective UI.