LogoPixi’VN
indexInterfaces

Interface: CommitmentInterface

Defined in: src/interface/activity/CommitmentInterface.ts:5

Extends

  • CommitmentBaseInternalInterface

Properties

characters

> readonly characters: CharacterInterface[]

Defined in: src/interface/activity/CommitmentInterface.ts:11

The character or characters that are in the commitment and so in the room.

Inherited from

CommitmentBaseInternalInterface.characters


dateScheduling?

> readonly optional dateScheduling?: DateSchedulingInterface

Defined in: src/interface/activity/ActiveScheduling.ts:12

Used to schedule what date it will be added and removed.

Inherited from

CommitmentBaseInternalInterface.dateScheduling


executionType

> executionType: ExecutionType

Defined in: src/interface/activity/CommitmentInterface.ts:16

Execution type. If is "automatic" the onRun() runned automatically when the palayer is in the room. If is "interaction" the player must interact with the character to run the onRun() function. If you set "automatic" remember to remove the commitment when it is no longer needed, because otherwise it repeats itself every time.

Inherited from

CommitmentBaseInternalInterface.executionType


expired

> readonly expired: boolean

Defined in: src/interface/activity/ActivityInterface.ts:19

Whether the activity/commitment is a deadline, so it will then be removed or hidden.

It depends only on the date, not the time. So if you set { dateScheduling: { from: 0, to: 3 }, timeSlot { from: 10, to: 20 } } the activity/commitment hidden or deleted on date 3 at 0.

Inherited from

CommitmentBaseInternalInterface.expired


id

> readonly id: string

Defined in: src/interface/activity/ActivityInterface.ts:9

The id of the activity/commitment.

Inherited from

CommitmentBaseInternalInterface.id


priority

> priority: number

Defined in: src/interface/activity/CommitmentInterface.ts:21

The priority. The higher the number, the higher the priority. To ensure that a character is not in 2 places at the same time, if there are 2 or more valid commits at the same time and with the same character, the one with the highest priority will be chosen.

Inherited from

CommitmentBaseInternalInterface.priority


run

> readonly run: OnRunAsyncFunction

Defined in: src/interface/activity/ActivityInterface.ts:13

The function that is called when the activity/commitment is runned.

Inherited from

CommitmentBaseInternalInterface.run


timeSlot?

> readonly optional timeSlot?: TimeSchedulingInterface | TimeSchedulingInterface[]

Defined in: src/interface/activity/ActiveScheduling.ts:8

Time slot in which activity/commitment will be active.

Inherited from

CommitmentBaseInternalInterface.timeSlot

Methods

isActive()

> isActive(options?): boolean

Defined in: src/interface/activity/ActivityInterface.ts:24

Whether the activity/commitment is active, so it will be shown in the routine and can be runned.

Parameters

options?

ActiveScheduling

The options to check if the activity/commitment is active.

Returns

boolean

Inherited from

CommitmentBaseInternalInterface.isActive

On this page