Skip to main content

FB2FoodObject

Overview

  • No description available.

Metadata

FieldValue
Kindstruct
EnvironmentB2 - Simulation
Categorystructs
ExtendsFB2CarriableObject
Requirerequire('Objects.B2FoodObject')

Properties (6)

NameTypeDescription
AccumulateEatTickTimenumber
LatestPutDownTicksinteger
LatestRemainChangedTicksintegerAvoids spending save memory; even after continuing a game, cleanup can run one hour later.
MealSessionOwnerEntityIdFB1EntityId
RemainFoodValueinteger
TotalFoodValueinteger

Functions (18)

FunctionParametersReturnsDescription
AddAccumulateEatTimeInAddTime: number, InFoodType: EB1FoodType, TimeToEat: integer-Adds Accumulate Eat Time.
GetFoodTableRow-FB1FoodTableRowReturns Food Table Row.
GetInteractionTags-string[]Returns Interaction Tags.
GetRemainCalorie-numberReturns Remain Calorie.
GetRemainQuantity-integerReturns Remain Quantity.
GetRemainRate-numberReturns Remain Rate.
GetTotalQuantity-integerReturns Total Quantity.
InitializeInTableId: string-
IsCleanUpTargetInCleanUpTarget: EB1CleanUpObjectTypebooleanReturns whether Clean Up Target.
IsDrink-booleanReturns whether Drink.
IsEdible-booleanReturns whether Edible.
IsEmptyFood-booleanReturns whether Empty Food.
IsSpoiled-booleanReturns whether Spoiled.
SendUpdateMeshPacket--Sends Update Mesh Packet.
SetOwnershipInOwnershipType: EB1OwnershipType, InOwnerId: FB1EntityIdbooleanSets Ownership.
SetPendingPutDownInPendingPutDown: boolean-Sets Pending Put Down.
SetPutDownOnFloorInPutDownOnFloor: boolean-Sets Put Down On Floor.
TakeServedFood-FB2FoodObject

Override points (4)

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

FunctionParametersReturnsDescription
Override_AddAccumulateEatTimeInAddTime: number, InFoodType: EB1FoodType, TimeToEat: integer-Adds Accumulate Eat Time.
Override_InitializeInTableId: string-
Override_SendUpdateMeshPacket--Sends Update Mesh Packet.
Override_TakeServedFood-FB2FoodObject