FB2ShopWorkerBehaviorComponent
Overview
- Component that manages shop-worker behavior.
Metadata
| Field | Value |
|---|---|
| Kind | component |
| Environment | B2 - Simulation |
| Category | components |
| Extends | FB2Component |
| Require | require('Components.B2ShopWorkerBehaviorComponent') |
Properties (9)
| Name | Type | Description |
|---|---|---|
CurrentState | EB1ShopWorkerState | |
DistanceLimitToLinkedObject | number | |
LinkedGameObject | any | No Save. |
LinkedObjectId | FB1EntityId | |
MoveInteractionBagId | string | |
PreferInteractionBagIds | string[] | |
ReserveTimeTaskMinutes | number | |
ReservedTimeTaskId | FB1TimeTaskId | |
SpawnerMoveInteractionBagId | string |
Functions (15)
| Function | Parameters | Returns | Description |
|---|---|---|---|
ForceLeaveWorking | - | - | |
GetCurrentState | - | EB1ShopWorkerState | Returns Current State. |
GetDefaultCityMoveDataPolicy | - | EB1CityMoveDataPolicy | Returns Default City Move Data Policy. |
GetLinkedObjectId | - | FB1EntityId | Returns Linked Object Id. |
GetShopWorkerCreateParam | - | FB1ObjectShopWorkerCreateParam | Returns Shop Worker Create Param. |
HasLinkedObject | - | boolean | Returns whether it has Linked Object. |
IsWorkingTime | - | boolean | Returns whether Working Time. |
OnAddInteractionQueueFailed | - | - | Callback invoked on Add Interaction Queue Failed. |
OnCancelCoopInteractions | - | - | Callback invoked on Cancel Coop Interactions. |
OnCanceledInteractionQueue | - | - | Callback invoked on Canceled Interaction Queue. |
OnInteractionSequenceComplete | - | - | Callback invoked on Interaction Sequence Complete. |
RepeatBehaviorAndReserveTask | - | - | |
SetLinkedObjectId | InLinkedObjectId: FB1EntityId | - | Sets Linked Object Id. |
SetPreferInteractionBagIds | InPreferInteractionBagIds: string[] | - | Sets Prefer Interaction Bag Ids. |
StartBehavior | - | - | Starts Behavior. |
Override points (2)
Implement these in Lua as FB2ShopWorkerBehaviorComponent.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_ForceLeaveWorking | - | - | |
Override_StartBehavior | - | - | Starts Behavior. |