# Interface: CommitmentStoredClassProps (/nqtr/index/interfaces/CommitmentStoredClassProps)



Defined in: [src/classes/activity/CommitmentStoredClass.ts:19](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/classes/activity/CommitmentStoredClass.ts#L19)

## Properties [#properties]

### dateScheduling? [#datescheduling]

\> `optional` **dateScheduling?**: [`DateSchedulingInterface`](/nqtr/index/interfaces/DateSchedulingInterface)

Defined in: [src/classes/activity/CommitmentStoredClass.ts:37](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/classes/activity/CommitmentStoredClass.ts#L37)

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

***

### executionType? [#executiontype]

\> `optional` **executionType?**: [`ExecutionType`](/nqtr/index/type-aliases/ExecutionType)

Defined in: [src/classes/activity/CommitmentStoredClass.ts:24](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/classes/activity/CommitmentStoredClass.ts#L24)

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? [#priority]

\> `optional` **priority?**: `number`

Defined in: [src/classes/activity/CommitmentStoredClass.ts:29](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/classes/activity/CommitmentStoredClass.ts#L29)

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? [#timeslot]

\> `optional` **timeSlot?**: [`TimeSchedulingInterface`](/nqtr/index/interfaces/TimeSchedulingInterface)

Defined in: [src/classes/activity/CommitmentStoredClass.ts:33](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/classes/activity/CommitmentStoredClass.ts#L33)

Time slot in which activity/commitment will be active.
