Skip to main content

FB2EmotionComponent

Overview

  • Component that manages emotion state.

Metadata

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

Properties (7)

NameTypeDescription
AdmitBoostingEmotionIdstring
CurrentEmotionInfoFB1EmotionInfo
EmotionInfoMaptable<string, FB1EmotionInfo>
EmotionSpectrumTaskIdFB1TimeTaskId
EmotionUpdateTimeTaskIdFB1TimeTaskId
JoyfulBoostingEmotionIdstring
StatRemoveTaskIdFB1TimeTaskId

Functions (21)

FunctionParametersReturnsDescription
AddCheatEmotionInCheatEmotionInfo: FB1EmotionInfo-Cheat-only.
GetAdmitBoostingEmotionId-stringReturns Admit Boosting Emotion Id.
GetCurrentEmotionColorId-stringReturns Current Emotion Color Id.
GetCurrentEmotionInfo-FB1EmotionInfoReturns Current Emotion Info.
GetCurrentEmotionTendency-EB1EmotionTendencyReturns Current Emotion Tendency.
GetCurrentEmotionType-EB1EmotionTypeReturns Current Emotion Type.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetEmotionInfoInEmotionId: stringFB1EmotionInfoReturns Emotion Info.
GetEmotionInfoMap-table<string, FB1EmotionInfo>Returns Emotion Info Map.
GetJoyfulBoostingEmotionId-stringReturns Joyful Boosting Emotion Id.
HasEmotionInEmotionId: stringbooleanReturns whether it has Emotion.
IsCurrentEmotionInEmotionId: stringbooleanReturns whether Current Emotion.
IsEmotionAvailableForInteractionInInteractionBagTags: string[]booleanReturns whether Emotion Available For Interaction.
RemoveCheatEmotion--Removes Cheat Emotion.
Send_S_SyncEmotion--
Send_S_UpdateEmotion--
SetAdmitBoostingEmotionIdInAdmitBoostingEmotionId: string-Sets Admit Boosting Emotion Id.
SetCurrentEmotionInEmotion: FB1EmotionInfo-Sets Current Emotion.
SetJoyfulBoostingEmotionIdInJoyfulBoostingEmotionId: string-Sets Joyful Boosting Emotion Id.
TryGetEmotionReactionInPrevEmotionId: string, InPrevLevel: integer, OutBodyAnimId: string, OutFaceAnimId: string, OutEmotionId: string, OutLevel: integerboolean
TryUpdateCurrentEmotion--

Override points (6)

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

FunctionParametersReturnsDescription
Override_AddCheatEmotionInCheatEmotionInfo: FB1EmotionInfo-Cheat-only.
Override_HasEmotionInEmotionId: stringbooleanReturns whether it has Emotion.
Override_RemoveCheatEmotion--Removes Cheat Emotion.
Override_Send_S_SyncEmotion--
Override_Send_S_UpdateEmotion--
Override_TryUpdateCurrentEmotion--