Skip to main content

FB2Inventory

Overview

  • No description available.

Metadata

FieldValue
Kindstruct
EnvironmentB2 - Simulation
Categorystructs
ExtendsFB2Entity

Properties (10)

NameTypeDescription
CachedInventorySlotKeystable<FB1EntityId, FB1InventorySlotKey>
ContextFB2ScriptContext
InventoryDtIdstring
LastRefreshTicksinteger
OwnedEntityIdsFB1EntityId[]
OwnerEntityIdFB1EntityId
OwnerEntityTypeEB2EntityType
PrepareSaleForEntityIdsFB1EntityId[]
PutDownEntityIdFB1EntityId
RefreshTimeTaskIdFB1TimeTaskId

Functions (52)

FunctionParametersReturnsDescription
AddCachedInventorySlotKeyInSelectedRepresentative: FB1EntityId, InInventorySlotKey: FB1InventorySlotKey-Adds Cached Inventory Slot Key.
CanAddGameObjectInEntityId: FB1EntityIdbooleanReturns whether it can Add Game Object.
ChangeObjectOwnershipInNewOwnerId: FB1EntityId-
ContainsInEntityId: FB1EntityIdboolean
ExecuteSaleForObject--
FindAllEndityIdsByObjectIdObjectId: string, OutEntityIds: FB1EntityId[]-Finds and returns All Endity Ids By Object Id.
FindEntityIdByObjectIdObjectId: stringFB1EntityIdFinds and returns Entity Id By Object Id.
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetContainingAmountObjectId: stringintegerReturns Containing Amount.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetInventoryEntitiesOutEntities: FB1InventoryEntityInfo[]-Returns Inventory Entities.
GetInventoryEntitiesByCachedSlotKeyOutEntities: FB1InventoryEntityInfo[], InEntityId: FB1EntityId-Returns Inventory Entities By Cached Slot Key.
GetInventoryEntitiesByObjectIdsOutEntities: FB1InventoryEntityInfo[], InObjectIds: string[]-Returns Inventory Entities By Object Ids.
GetInventoryEntitiesBySlotKeyOutEntities: FB1InventoryEntityInfo[], InFilterKey: FB1InventorySlotKey-Returns Inventory Entities By Slot Key.
GetInventoryInfoOutParam: FB1InventoryInfo-Returns Inventory Info.
GetInventoryType-EB1InventoryTypeReturns Inventory Type.
GetLastRefreshTicks-integerReturns Last Refresh Ticks.
GetMaxInventoryEntityCount-integerReturns Max Inventory Entity Count.
GetOwnedEntityCount-integerReturns Owned Entity Count.
GetOwnedEntitySpawnInfoOutInfos: table<FB1EntityId, FB1GameObjectSpawnInfo>-Returns Owned Entity Spawn Info.
GetOwnerEntityId-FB1EntityIdReturns Owner Entity Id.
GetOwnerEntityType-EB2EntityTypeReturns Owner Entity Type.
GetPutDownEntityId-FB1EntityIdReturns Put Down Entity Id.
GetRemainInventoryCount-integerReturns Remain Inventory Count.
HasToolObjectInGatheringType: EB1GatheringType, InToolLevel: integerbooleanReturns whether it has Tool Object.
IsInventoryEmpty-booleanReturns whether Inventory Empty.
IsInventoryFullInCount: integer, InUseRecommendedMaxCount: booleanbooleanReturns whether Inventory Full.
IsPrepareSaleInEntityId: FB1EntityIdbooleanReturns whether Prepare Sale.
OnChangePossessIdInCurrEntityId: FB1EntityId-Callback invoked on Change Possess Id.
OnChildObjectStateChangedInChildObjectEntityId: FB1EntityId-Callback invoked on Child Object State Changed.
OnOwnerObjectStateChanged--Callback invoked on Owner Object State Changed.
OpenObjectInventoryInRequesterId: FB1EntityId, InExecuteInteractionBagId: string-
PrepareObjectForSaleInEntityIds: FB1EntityId[], InUndo: boolean-
PrepareSaleCompleted--
ProcessOnCountChangeScriptsInPrevCount: integer, InCurrCount: integer, InScriptReason: EB1ScriptReason-
PutInGameObjectInEntityId: FB1EntityIdboolean
PutOutGameObjectByEntityIdInEntityId: FB1EntityId, bInSendPacket: booleanboolean
PutOutGameObjectByObjectIdObjectId: string, bInSendPacket: booleanboolean
RefreshInventoryObjectbInNeedReserveTask: boolean-
RemoveAllGameObjectsInReason: EB2EntityDestroyReason-Removes All Game Objects.
RequestAddChildEntityInEntityId: FB1EntityId, InAttachRule: EB1EntityAttachRule, InExtraRelativeTransform: FTransformbooleanRequests Add Child Entity.
RequestRemoveChildEntityInEntityId: FB1EntityIdbooleanRequests Remove Child Entity.
RequestUpdateInventoryOnModeChange--Requests Update Inventory On Mode Change.
SellAllGameObjectsOutSellCurrencyValue: integer-
SendGameObjectUpdateInGameObject: FB2GameObject-Sends Game Object Update.
SendInventoryStateToastMessageInToastMessageId: string-Sends Inventory State Toast Message.
SendSelectHandOverObjectInTargetEntityId: FB1EntityId, InHandOverType: EB1InventoryHandOverType, InTinyShopOwnerId: FB1EntityId-Sends Select Hand Over Object.
SendSelectMarketStallPlaceObjectInTargetEntityId: FB1EntityId-Sends Select Market Stall Place Object.
SetInventoryDtIdInInventoryDtId: string-Sets Inventory Dt Id.
SetOwnerEntityInEntityId: FB1EntityId-Sets Owner Entity.
SetPutDownEntityIdInEntityId: FB1EntityId-Sets Put Down Entity Id.
ShouldDestroyItemItemId: FB1EntityIdbooleanReturns whether it should Destroy Item.