Skip to main content

FB2RelationshipComponent

Overview

  • Component that manages relationships between characters.

Metadata

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

Properties (8)

NameTypeDescription
CurrentRelationshipEventtable<string, boolean>
LastDecayTimeinteger
RELATIONSHIP_DECAY_INTERVALinteger
RELATIONSHIP_DELETE_WAIT_TIMEinteger
RelationshipEventMaptable<string, FB1RelationshipEventDataList>
RelationshipFlagTotalCountstable<string, integer>
RelationshipMaptable<FB1EntityId, FB1RelationshipData>
SiteGiftSendTimeMaptable<string, integer>

Functions (36)

FunctionParametersReturnsDescription
AddRelationshipFlagInTargetEntityId: FB1EntityId, InRelationshipFlagId: string-Adds Relationship Flag.
AddUnlockHistoryInEntityId: FB1EntityId, InTypes: table<EB1RelationshipProfileType, boolean>-Adds Unlock History.
ClearAllRelationship--Clears All Relationship.
ClearTargetEntityRelationshipInEntityId: FB1EntityId-Clears Target Entity Relationship.
DoesRelationshipEventExistInTimelineId: stringbooleanReturns whether Relationship Event Exist.
FindProfileUnlockedDataInEntityId: FB1EntityIdFB1RelationshipProfileUnlockedDataFinds and returns Profile Unlocked Data.
FindRelationshipDataInEntityId: FB1EntityIdFB1RelationshipDataFinds and returns Relationship Data.
FindRelationshipRecordDataInEntityId: FB1EntityIdFB1RelationshipRecordDataFinds and returns Relationship Record Data.
FindRelationshipStatDataInEntityId: FB1EntityId, InStatName: stringFB1RelationshipStatDataFinds and returns Relationship Stat Data.
GetBonusRelationshipMultiplyValueInTargetEntityId: FB1EntityId, InIsPositive: booleannumberReturns Bonus Relationship Multiply Value.
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetRelationshipCountInRelationshipId: stringintegerReturns Relationship Count.
GetRelationshipDataCopyMap-table<FB1EntityId, FB1RelationshipData>Returns Relationship Data Copy Map.
GetRelationshipDataMap-table<FB1EntityId, FB1RelationshipData>Returns Relationship Data Map.
GetRelationshipFlagTotalCountInRelationshipFlagId: stringintegerReturns Relationship Flag Total Count.
GetStatIdByKeywordInTargetId: FB1EntityId, InKeywordName: stringstringReturns Stat Id By Keyword.
HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
IsFirstMeetingInTargetId: FB1EntityIdbooleanReturns whether First Meeting.
OnChangeGrowthStepPrevGrowthStep: EB1GrowthStep, CurrGrowthStep: EB1GrowthStep-Callback invoked on Change Growth Step.
OnDeath--Callback invoked on Death.
OnFinishTalkInteractionInTargetEntityId: FB1EntityId, bResult: boolean-Callback invoked on Finish Talk Interaction.
OnMarriageRelationishipStatInTargetId: FB1EntityId-Callback invoked on Marriage Relationiship Stat.
OnUpdateNewRelationshipCountMissionInRelationshipId: string-Callback invoked on Update New Relationship Count Mission.
RecreateRelationshipInTargetId: FB1EntityId, InIsFamily: boolean-
RefreshMainRelationshipsForRelatedCharacters--
RefreshRelationshipCountMissionInRelationshipId: string-
RemoveRelationshipEventInTimelineId: stringbooleanRemoves Relationship Event.
SendNewUnlockListInOwnerId: FB1EntityId, InTargetId: FB1EntityId, InTypes: table<EB1RelationshipProfileType, boolean>, InRefreshUI: boolean-Sends New Unlock List.
SetDefaultUnlockDataAndSendUnlockListInRelationshipData: FB1RelationshipData, InTargetId: FB1EntityId-Sets Default Unlock Data And Send Unlock List.
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
SyncRelationshipData--
TryAddRelationshipRecordDataInTargetId: FB1EntityId, InRecord: stringboolean
UnlockRelationshipProfileDataInTargetId: FB1EntityId, ProfileType: EB1RelationshipProfileType, InRefreshUI: booleanboolean
UpdateLatestInteractionTimeInEntityId: FB1EntityId-Updates Latest Interaction Time.
UpdateMainRelationshipInTargetId: FB1EntityId, InUpdateReason: EB1MainRelationshipUpdateReason-Updates Main Relationship.

Override points (24)

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

FunctionParametersReturnsDescription
Override_AddRelationshipFlagInTargetEntityId: FB1EntityId, InRelationshipFlagId: string-Adds Relationship Flag.
Override_AddUnlockHistoryInEntityId: FB1EntityId, InTypes: table<EB1RelationshipProfileType, boolean>-Adds Unlock History.
Override_ClearTargetEntityRelationshipInEntityId: FB1EntityId-Clears Target Entity Relationship.
Override_DoesRelationshipEventExistInTimelineId: stringbooleanReturns whether Relationship Event Exist.
Override_FindProfileUnlockedDataInEntityId: FB1EntityIdFB1RelationshipProfileUnlockedDataFinds and returns Profile Unlocked Data.
Override_FindRelationshipDataInEntityId: FB1EntityIdFB1RelationshipDataFinds and returns Relationship Data.
Override_FindRelationshipRecordDataInEntityId: FB1EntityIdFB1RelationshipRecordDataFinds and returns Relationship Record Data.
Override_FindRelationshipStatDataInEntityId: FB1EntityId, InStatName: stringFB1RelationshipStatDataFinds and returns Relationship Stat Data.
Override_HandleCustomPolicyCityMoveDataInCityMovedData: nil, InCityMoveDataPolicyType: EB1CityMoveDataPolicyType-
Override_OnChangeGrowthStepPrevGrowthStep: EB1GrowthStep, CurrGrowthStep: EB1GrowthStep-Callback invoked on Change Growth Step.
Override_OnDeath--Callback invoked on Death.
Override_OnFinishTalkInteractionInTargetEntityId: FB1EntityId, bResult: boolean-Callback invoked on Finish Talk Interaction.
Override_OnMarriageRelationishipStatInTargetId: FB1EntityId-Callback invoked on Marriage Relationiship Stat.
Override_OnUpdateNewRelationshipCountMissionInRelationshipId: string-Callback invoked on Update New Relationship Count Mission.
Override_RecreateRelationshipInTargetId: FB1EntityId, InIsFamily: boolean-
Override_RefreshMainRelationshipsForRelatedCharacters--
Override_RefreshRelationshipCountMissionInRelationshipId: string-
Override_RemoveRelationshipEventInTimelineId: stringbooleanRemoves Relationship Event.
Override_SendNewUnlockListInOwnerId: FB1EntityId, InTargetId: FB1EntityId, InTypes: table<EB1RelationshipProfileType, boolean>, InRefreshUI: boolean-Sends New Unlock List.
Override_SyncRelationshipData--
Override_TryAddRelationshipRecordDataInTargetId: FB1EntityId, InRecord: stringboolean
Override_UnlockRelationshipProfileDataInTargetId: FB1EntityId, ProfileType: EB1RelationshipProfileType, InRefreshUI: booleanboolean
Override_UpdateLatestInteractionTimeInEntityId: FB1EntityId-Updates Latest Interaction Time.
Override_UpdateMainRelationshipInTargetId: FB1EntityId, InUpdateReason: EB1MainRelationshipUpdateReason-Updates Main Relationship.