LogoPixi’VN
indexInterfaces

Interface: CommitmentStoredClassProps

Defined in: src/classes/activity/CommitmentStoredClass.ts:19

Properties

dateScheduling?

> optional dateScheduling?: DateSchedulingInterface

Defined in: src/classes/activity/CommitmentStoredClass.ts:37

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


executionType?

> optional executionType?: ExecutionType

Defined in: src/classes/activity/CommitmentStoredClass.ts:24

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.


priority?

> optional priority?: number

Defined in: src/classes/activity/CommitmentStoredClass.ts:29

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.


timeSlot?

> optional timeSlot?: TimeSchedulingInterface

Defined in: src/classes/activity/CommitmentStoredClass.ts:33

Time slot in which activity/commitment will be active.

On this page