@drincs/nqtr 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RoomInterface-BOE1uacE.d.mts +78 -0
- package/dist/RoomInterface-BswqipsF.d.ts +78 -0
- package/dist/StageInterface-DgeEtkqv.d.mts +162 -0
- package/dist/StageInterface-DgeEtkqv.d.ts +162 -0
- package/dist/classes/ActivityBaseModel.d.mts +63 -0
- package/dist/classes/ActivityBaseModel.d.ts +63 -0
- package/dist/classes/ActivityBaseModel.js +2 -0
- package/dist/classes/ActivityBaseModel.js.map +1 -0
- package/dist/classes/ActivityBaseModel.mjs +2 -0
- package/dist/classes/ActivityBaseModel.mjs.map +1 -0
- package/dist/classes/ActivityStoredClass.d.mts +27 -0
- package/dist/classes/ActivityStoredClass.d.ts +27 -0
- package/dist/classes/ActivityStoredClass.js +2 -0
- package/dist/classes/ActivityStoredClass.js.map +1 -0
- package/dist/classes/ActivityStoredClass.mjs +2 -0
- package/dist/classes/ActivityStoredClass.mjs.map +1 -0
- package/dist/classes/CommitmentBaseModel.d.mts +65 -0
- package/dist/classes/CommitmentBaseModel.d.ts +65 -0
- package/dist/classes/CommitmentBaseModel.js +2 -0
- package/dist/classes/CommitmentBaseModel.js.map +1 -0
- package/dist/classes/CommitmentBaseModel.mjs +2 -0
- package/dist/classes/CommitmentBaseModel.mjs.map +1 -0
- package/dist/classes/CommitmentStoredClass.d.mts +29 -0
- package/dist/classes/CommitmentStoredClass.d.ts +29 -0
- package/dist/classes/CommitmentStoredClass.js +2 -0
- package/dist/classes/CommitmentStoredClass.js.map +1 -0
- package/dist/classes/CommitmentStoredClass.mjs +2 -0
- package/dist/classes/CommitmentStoredClass.mjs.map +1 -0
- package/dist/classes/index.d.mts +27 -8
- package/dist/classes/index.d.ts +27 -8
- package/dist/classes/index.js +1 -1700
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +1 -1691
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/navigation/LocationBaseModel.d.mts +54 -0
- package/dist/classes/navigation/LocationBaseModel.d.ts +54 -0
- package/dist/classes/navigation/LocationBaseModel.js +2 -0
- package/dist/classes/navigation/LocationBaseModel.js.map +1 -0
- package/dist/classes/navigation/LocationBaseModel.mjs +2 -0
- package/dist/classes/navigation/LocationBaseModel.mjs.map +1 -0
- package/dist/classes/navigation/LocationStoredClass.d.mts +23 -0
- package/dist/classes/navigation/LocationStoredClass.d.ts +23 -0
- package/dist/classes/navigation/LocationStoredClass.js +2 -0
- package/dist/classes/navigation/LocationStoredClass.js.map +1 -0
- package/dist/classes/navigation/LocationStoredClass.mjs +2 -0
- package/dist/classes/navigation/LocationStoredClass.mjs.map +1 -0
- package/dist/classes/navigation/MapBaseModel.d.mts +41 -0
- package/dist/classes/navigation/MapBaseModel.d.ts +41 -0
- package/dist/classes/navigation/MapBaseModel.js +2 -0
- package/dist/classes/navigation/MapBaseModel.js.map +1 -0
- package/dist/classes/navigation/MapBaseModel.mjs +2 -0
- package/dist/classes/navigation/MapBaseModel.mjs.map +1 -0
- package/dist/classes/navigation/MapStoredClass.d.mts +14 -0
- package/dist/classes/navigation/MapStoredClass.d.ts +14 -0
- package/dist/classes/navigation/MapStoredClass.js +2 -0
- package/dist/classes/navigation/MapStoredClass.js.map +1 -0
- package/dist/classes/navigation/MapStoredClass.mjs +2 -0
- package/dist/classes/navigation/MapStoredClass.mjs.map +1 -0
- package/dist/classes/navigation/NavigationAbstractClass.d.mts +48 -0
- package/dist/classes/navigation/NavigationAbstractClass.d.ts +48 -0
- package/dist/classes/navigation/NavigationAbstractClass.js +2 -0
- package/dist/classes/navigation/NavigationAbstractClass.js.map +1 -0
- package/dist/classes/navigation/NavigationAbstractClass.mjs +2 -0
- package/dist/classes/navigation/NavigationAbstractClass.mjs.map +1 -0
- package/dist/classes/navigation/RoomBaseModel.d.mts +67 -0
- package/dist/classes/navigation/RoomBaseModel.d.ts +67 -0
- package/dist/classes/navigation/RoomBaseModel.js +2 -0
- package/dist/classes/navigation/RoomBaseModel.js.map +1 -0
- package/dist/classes/navigation/RoomBaseModel.mjs +2 -0
- package/dist/classes/navigation/RoomBaseModel.mjs.map +1 -0
- package/dist/classes/navigation/RoomStoredClass.d.mts +23 -0
- package/dist/classes/navigation/RoomStoredClass.d.ts +23 -0
- package/dist/classes/navigation/RoomStoredClass.js +2 -0
- package/dist/classes/navigation/RoomStoredClass.js.map +1 -0
- package/dist/classes/navigation/RoomStoredClass.mjs +2 -0
- package/dist/classes/navigation/RoomStoredClass.mjs.map +1 -0
- package/dist/classes/quest/QuestBaseModel.d.mts +36 -0
- package/dist/classes/quest/QuestBaseModel.d.ts +36 -0
- package/dist/classes/quest/QuestBaseModel.js +2 -0
- package/dist/classes/quest/QuestBaseModel.js.map +1 -0
- package/dist/classes/quest/QuestBaseModel.mjs +2 -0
- package/dist/classes/quest/QuestBaseModel.mjs.map +1 -0
- package/dist/classes/quest/QuestStoredClass.d.mts +37 -0
- package/dist/classes/quest/QuestStoredClass.d.ts +37 -0
- package/dist/classes/quest/QuestStoredClass.js +2 -0
- package/dist/classes/quest/QuestStoredClass.js.map +1 -0
- package/dist/classes/quest/QuestStoredClass.mjs +2 -0
- package/dist/classes/quest/QuestStoredClass.mjs.map +1 -0
- package/dist/classes/quest/StageBaseModel.d.mts +50 -0
- package/dist/classes/quest/StageBaseModel.d.ts +50 -0
- package/dist/classes/quest/StageBaseModel.js +2 -0
- package/dist/classes/quest/StageBaseModel.js.map +1 -0
- package/dist/classes/quest/StageBaseModel.mjs +2 -0
- package/dist/classes/quest/StageBaseModel.mjs.map +1 -0
- package/dist/classes/quest/StageStoredClass.d.mts +46 -0
- package/dist/classes/quest/StageStoredClass.d.ts +46 -0
- package/dist/classes/quest/StageStoredClass.js +2 -0
- package/dist/classes/quest/StageStoredClass.js.map +1 -0
- package/dist/classes/quest/StageStoredClass.mjs +2 -0
- package/dist/classes/quest/StageStoredClass.mjs.map +1 -0
- package/dist/constants.d.mts +4 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +2 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/decorators/ActivityDecorator.d.mts +5 -15
- package/dist/decorators/ActivityDecorator.d.ts +5 -15
- package/dist/decorators/ActivityDecorator.js +1 -407
- package/dist/decorators/ActivityDecorator.js.map +1 -1
- package/dist/decorators/ActivityDecorator.mjs +1 -403
- package/dist/decorators/ActivityDecorator.mjs.map +1 -1
- package/dist/decorators/CommitmentDecorator.d.mts +9 -37
- package/dist/decorators/CommitmentDecorator.d.ts +9 -37
- package/dist/decorators/CommitmentDecorator.js +1 -91
- package/dist/decorators/CommitmentDecorator.js.map +1 -1
- package/dist/decorators/CommitmentDecorator.mjs +1 -81
- package/dist/decorators/CommitmentDecorator.mjs.map +1 -1
- package/dist/decorators/QuestDecorator.d.mts +6 -16
- package/dist/decorators/QuestDecorator.d.ts +6 -16
- package/dist/decorators/QuestDecorator.js +1 -799
- package/dist/decorators/QuestDecorator.js.map +1 -1
- package/dist/decorators/QuestDecorator.mjs +1 -794
- package/dist/decorators/QuestDecorator.mjs.map +1 -1
- package/dist/decorators/RoomDecorator.d.mts +8 -32
- package/dist/decorators/RoomDecorator.d.ts +8 -32
- package/dist/decorators/RoomDecorator.js +1 -56
- package/dist/decorators/RoomDecorator.js.map +1 -1
- package/dist/decorators/RoomDecorator.mjs +1 -48
- package/dist/decorators/RoomDecorator.mjs.map +1 -1
- package/dist/decorators/index.d.mts +8 -13
- package/dist/decorators/index.d.ts +8 -13
- package/dist/decorators/index.js +1 -1068
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +1 -1053
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/index.d.mts +2 -12
- package/dist/functions/index.d.ts +2 -12
- package/dist/functions/index.js +1 -293
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +1 -281
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.d.mts +62 -18
- package/dist/index.d.ts +62 -18
- package/dist/index.js +1 -2058
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2023
- package/dist/index.mjs.map +1 -1
- package/dist/interface/ActivityInterface.d.mts +40 -0
- package/dist/interface/ActivityInterface.d.ts +40 -0
- package/dist/interface/ActivityInterface.js +2 -0
- package/dist/interface/ActivityInterface.js.map +1 -0
- package/dist/interface/ActivityInterface.mjs +2 -0
- package/dist/interface/ActivityInterface.mjs.map +1 -0
- package/dist/interface/ActivityProps.d.mts +48 -3
- package/dist/interface/ActivityProps.d.ts +48 -3
- package/dist/interface/ActivityProps.js +1 -3
- package/dist/interface/ActivityProps.js.map +1 -1
- package/dist/interface/ActivityProps.mjs +1 -2
- package/dist/interface/ActivityProps.mjs.map +1 -1
- package/dist/interface/CommitmentInterface.d.mts +6 -0
- package/dist/interface/CommitmentInterface.d.ts +6 -0
- package/dist/interface/CommitmentInterface.js +2 -0
- package/dist/interface/CommitmentInterface.js.map +1 -0
- package/dist/interface/CommitmentInterface.mjs +2 -0
- package/dist/interface/CommitmentInterface.mjs.map +1 -0
- package/dist/interface/CommitmentProps.d.mts +78 -7
- package/dist/interface/CommitmentProps.d.ts +78 -7
- package/dist/interface/CommitmentProps.js +1 -3
- package/dist/interface/CommitmentProps.js.map +1 -1
- package/dist/interface/CommitmentProps.mjs +1 -2
- package/dist/interface/CommitmentProps.mjs.map +1 -1
- package/dist/interface/index.d.mts +12 -8
- package/dist/interface/index.d.ts +12 -8
- package/dist/interface/index.js +1 -3
- package/dist/interface/index.js.map +1 -1
- package/dist/interface/index.mjs +1 -2
- package/dist/interface/index.mjs.map +1 -1
- package/dist/interface/navigation/LocationBaseModelProps.d.mts +32 -0
- package/dist/interface/navigation/LocationBaseModelProps.d.ts +32 -0
- package/dist/interface/navigation/LocationBaseModelProps.js +2 -0
- package/dist/interface/navigation/LocationBaseModelProps.js.map +1 -0
- package/dist/interface/navigation/LocationBaseModelProps.mjs +2 -0
- package/dist/interface/navigation/LocationBaseModelProps.mjs.map +1 -0
- package/dist/interface/navigation/LocationInterface.d.mts +6 -0
- package/dist/interface/navigation/LocationInterface.d.ts +6 -0
- package/dist/interface/navigation/LocationInterface.js +2 -0
- package/dist/interface/navigation/LocationInterface.js.map +1 -0
- package/dist/interface/navigation/LocationInterface.mjs +2 -0
- package/dist/interface/navigation/LocationInterface.mjs.map +1 -0
- package/dist/interface/navigation/MapBaseModelProps.d.mts +22 -0
- package/dist/interface/navigation/MapBaseModelProps.d.ts +22 -0
- package/dist/interface/navigation/MapBaseModelProps.js +2 -0
- package/dist/interface/navigation/MapBaseModelProps.js.map +1 -0
- package/dist/interface/navigation/MapBaseModelProps.mjs +2 -0
- package/dist/interface/navigation/MapBaseModelProps.mjs.map +1 -0
- package/dist/interface/navigation/MapInterface.d.mts +6 -0
- package/dist/interface/navigation/MapInterface.d.ts +6 -0
- package/dist/interface/navigation/MapInterface.js +2 -0
- package/dist/interface/navigation/MapInterface.js.map +1 -0
- package/dist/interface/navigation/MapInterface.mjs +2 -0
- package/dist/interface/navigation/MapInterface.mjs.map +1 -0
- package/dist/interface/navigation/NavigationAbstractClass.d.mts +54 -0
- package/dist/interface/navigation/NavigationAbstractClass.d.ts +54 -0
- package/dist/interface/navigation/NavigationAbstractClass.js +2 -0
- package/dist/interface/navigation/NavigationAbstractClass.js.map +1 -0
- package/dist/interface/navigation/NavigationAbstractClass.mjs +2 -0
- package/dist/interface/navigation/NavigationAbstractClass.mjs.map +1 -0
- package/dist/interface/navigation/RoomBaseModelProps.d.mts +37 -0
- package/dist/interface/navigation/RoomBaseModelProps.d.ts +37 -0
- package/dist/interface/navigation/RoomBaseModelProps.js +2 -0
- package/dist/interface/navigation/RoomBaseModelProps.js.map +1 -0
- package/dist/interface/navigation/RoomBaseModelProps.mjs +2 -0
- package/dist/interface/navigation/RoomBaseModelProps.mjs.map +1 -0
- package/dist/interface/navigation/RoomInterface.d.mts +6 -0
- package/dist/interface/navigation/RoomInterface.d.ts +6 -0
- package/dist/interface/navigation/RoomInterface.js +2 -0
- package/dist/interface/navigation/RoomInterface.js.map +1 -0
- package/dist/interface/navigation/RoomInterface.mjs +2 -0
- package/dist/interface/navigation/RoomInterface.mjs.map +1 -0
- package/dist/interface/quest/QuestInterface.d.mts +2 -0
- package/dist/interface/quest/QuestInterface.d.ts +2 -0
- package/dist/interface/quest/QuestInterface.js +2 -0
- package/dist/interface/quest/QuestInterface.js.map +1 -0
- package/dist/interface/quest/QuestInterface.mjs +2 -0
- package/dist/interface/quest/QuestInterface.mjs.map +1 -0
- package/dist/interface/quest/QuestProps.d.mts +39 -6
- package/dist/interface/quest/QuestProps.d.ts +39 -6
- package/dist/interface/quest/QuestProps.js +1 -3
- package/dist/interface/quest/QuestProps.js.map +1 -1
- package/dist/interface/quest/QuestProps.mjs +1 -2
- package/dist/interface/quest/QuestProps.mjs.map +1 -1
- package/dist/interface/quest/StageFlags.js +1 -3
- package/dist/interface/quest/StageFlags.js.map +1 -1
- package/dist/interface/quest/StageFlags.mjs +1 -2
- package/dist/interface/quest/StageFlags.mjs.map +1 -1
- package/dist/interface/quest/StageInterface.d.mts +2 -0
- package/dist/interface/quest/StageInterface.d.ts +2 -0
- package/dist/interface/quest/StageInterface.js +2 -0
- package/dist/interface/quest/StageInterface.js.map +1 -0
- package/dist/interface/quest/StageInterface.mjs +2 -0
- package/dist/interface/quest/StageInterface.mjs.map +1 -0
- package/dist/interface/quest/StageProps.d.mts +60 -6
- package/dist/interface/quest/StageProps.d.ts +60 -6
- package/dist/interface/quest/StageProps.js +1 -3
- package/dist/interface/quest/StageProps.js.map +1 -1
- package/dist/interface/quest/StageProps.mjs +1 -2
- package/dist/interface/quest/StageProps.mjs.map +1 -1
- package/dist/managers/NavigatorManager.d.mts +22 -0
- package/dist/managers/NavigatorManager.d.ts +22 -0
- package/dist/managers/NavigatorManager.js +2 -0
- package/dist/managers/NavigatorManager.js.map +1 -0
- package/dist/managers/NavigatorManager.mjs +2 -0
- package/dist/managers/NavigatorManager.mjs.map +1 -0
- package/dist/managers/QuestManager.d.mts +17 -0
- package/dist/managers/QuestManager.d.ts +17 -0
- package/dist/managers/QuestManager.js +2 -0
- package/dist/managers/QuestManager.js.map +1 -0
- package/dist/managers/QuestManager.mjs +2 -0
- package/dist/managers/QuestManager.mjs.map +1 -0
- package/dist/managers/RoutineManager.d.mts +59 -0
- package/dist/managers/RoutineManager.d.ts +59 -0
- package/dist/managers/RoutineManager.js +2 -0
- package/dist/managers/RoutineManager.js.map +1 -0
- package/dist/managers/RoutineManager.mjs +2 -0
- package/dist/managers/RoutineManager.mjs.map +1 -0
- package/dist/managers/TimeManager.d.mts +28 -38
- package/dist/managers/TimeManager.d.ts +28 -38
- package/dist/managers/TimeManager.js +1 -250
- package/dist/managers/TimeManager.js.map +1 -1
- package/dist/managers/TimeManager.mjs +1 -248
- package/dist/managers/TimeManager.mjs.map +1 -1
- package/dist/managers/TimeManagerSettings.d.mts +13 -0
- package/dist/managers/TimeManagerSettings.d.ts +13 -0
- package/dist/managers/TimeManagerSettings.js +2 -0
- package/dist/managers/TimeManagerSettings.js.map +1 -0
- package/dist/managers/TimeManagerSettings.mjs +2 -0
- package/dist/managers/TimeManagerSettings.mjs.map +1 -0
- package/dist/managers/index.d.mts +18 -1
- package/dist/managers/index.d.ts +18 -1
- package/dist/managers/index.js +1 -250
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +1 -248
- package/dist/managers/index.mjs.map +1 -1
- package/dist/override/ActivityInterface.d.mts +28 -0
- package/dist/override/ActivityInterface.d.ts +28 -0
- package/dist/override/ActivityInterface.js +2 -0
- package/dist/override/ActivityInterface.js.map +1 -0
- package/dist/override/ActivityInterface.mjs +2 -0
- package/dist/override/ActivityInterface.mjs.map +1 -0
- package/dist/override/CommitmentInterface.d.mts +24 -0
- package/dist/override/CommitmentInterface.d.ts +24 -0
- package/dist/override/CommitmentInterface.js +2 -0
- package/dist/override/CommitmentInterface.js.map +1 -0
- package/dist/override/CommitmentInterface.mjs +2 -0
- package/dist/override/CommitmentInterface.mjs.map +1 -0
- package/dist/override/GraphicItemInterface.js +1 -3
- package/dist/override/GraphicItemInterface.js.map +1 -1
- package/dist/override/GraphicItemInterface.mjs +1 -2
- package/dist/override/GraphicItemInterface.mjs.map +1 -1
- package/dist/override/LocationInterface.d.mts +29 -0
- package/dist/override/LocationInterface.d.ts +29 -0
- package/dist/override/LocationInterface.js +2 -0
- package/dist/override/LocationInterface.js.map +1 -0
- package/dist/override/LocationInterface.mjs +2 -0
- package/dist/override/LocationInterface.mjs.map +1 -0
- package/dist/override/MapInterface.d.mts +12 -0
- package/dist/override/MapInterface.d.ts +12 -0
- package/dist/override/MapInterface.js +2 -0
- package/dist/override/MapInterface.js.map +1 -0
- package/dist/override/MapInterface.mjs +2 -0
- package/dist/override/MapInterface.mjs.map +1 -0
- package/dist/override/OnRenderGraphicItemProps.js +1 -3
- package/dist/override/OnRenderGraphicItemProps.js.map +1 -1
- package/dist/override/OnRenderGraphicItemProps.mjs +1 -2
- package/dist/override/OnRenderGraphicItemProps.mjs.map +1 -1
- package/dist/override/OnRunProps.js +1 -3
- package/dist/override/OnRunProps.js.map +1 -1
- package/dist/override/OnRunProps.mjs +1 -2
- package/dist/override/OnRunProps.mjs.map +1 -1
- package/dist/override/OnStartEndStageQuest.js +1 -3
- package/dist/override/OnStartEndStageQuest.js.map +1 -1
- package/dist/override/OnStartEndStageQuest.mjs +1 -2
- package/dist/override/OnStartEndStageQuest.mjs.map +1 -1
- package/dist/override/QuestInterface.d.mts +24 -0
- package/dist/override/QuestInterface.d.ts +24 -0
- package/dist/override/QuestInterface.js +2 -0
- package/dist/override/QuestInterface.js.map +1 -0
- package/dist/override/QuestInterface.mjs +2 -0
- package/dist/override/QuestInterface.mjs.map +1 -0
- package/dist/override/RoomInterface.d.mts +33 -0
- package/dist/override/RoomInterface.d.ts +33 -0
- package/dist/override/RoomInterface.js +2 -0
- package/dist/override/RoomInterface.js.map +1 -0
- package/dist/override/RoomInterface.mjs +2 -0
- package/dist/override/RoomInterface.mjs.map +1 -0
- package/dist/override/StageInterface.d.mts +34 -0
- package/dist/override/StageInterface.d.ts +34 -0
- package/dist/override/StageInterface.js +2 -0
- package/dist/override/StageInterface.js.map +1 -0
- package/dist/override/StageInterface.mjs +2 -0
- package/dist/override/StageInterface.mjs.map +1 -0
- package/dist/override/index.d.mts +8 -4
- package/dist/override/index.d.ts +8 -4
- package/dist/override/index.js +1 -3
- package/dist/override/index.js.map +1 -1
- package/dist/override/index.mjs +1 -2
- package/dist/override/index.mjs.map +1 -1
- package/dist/types/ExecutionType.js +1 -3
- package/dist/types/ExecutionType.js.map +1 -1
- package/dist/types/ExecutionType.mjs +1 -2
- package/dist/types/ExecutionType.mjs.map +1 -1
- package/dist/types/OnRunEvent.d.mts +8 -0
- package/dist/types/OnRunEvent.d.ts +8 -0
- package/dist/types/OnRunEvent.js +2 -0
- package/dist/types/OnRunEvent.js.map +1 -0
- package/dist/types/OnRunEvent.mjs +2 -0
- package/dist/types/OnRunEvent.mjs.map +1 -0
- package/dist/types/QuestsRequired.d.mts +1 -5
- package/dist/types/QuestsRequired.d.ts +1 -5
- package/dist/types/QuestsRequired.js +1 -3
- package/dist/types/QuestsRequired.js.map +1 -1
- package/dist/types/QuestsRequired.mjs +1 -2
- package/dist/types/QuestsRequired.mjs.map +1 -1
- package/dist/types/TimeDataType.d.mts +6 -0
- package/dist/types/TimeDataType.d.ts +6 -0
- package/dist/types/TimeDataType.js +2 -0
- package/dist/types/TimeDataType.js.map +1 -0
- package/dist/types/TimeDataType.mjs +2 -0
- package/dist/types/TimeDataType.mjs.map +1 -0
- package/dist/types/TimeSettings.d.mts +1 -1
- package/dist/types/TimeSettings.d.ts +1 -1
- package/dist/types/TimeSettings.js +1 -3
- package/dist/types/TimeSettings.js.map +1 -1
- package/dist/types/TimeSettings.mjs +1 -2
- package/dist/types/TimeSettings.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -5
- package/dist/types/index.d.ts +1 -5
- package/dist/types/index.js +1 -3
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +1 -2
- package/dist/types/index.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/ActivityProps-BkHX8xkA.d.ts +0 -124
- package/dist/ActivityProps-D45DQdcT.d.mts +0 -124
- package/dist/Commitment-C_qBgeF9.d.ts +0 -586
- package/dist/Commitment-DJD0f8AH.d.mts +0 -586
- package/dist/StageProps-CCjGI625.d.ts +0 -326
- package/dist/StageProps-CuE_n1Wg.d.mts +0 -326
- package/dist/classes/Activity.d.mts +0 -112
- package/dist/classes/Activity.d.ts +0 -112
- package/dist/classes/Activity.js +0 -382
- package/dist/classes/Activity.js.map +0 -1
- package/dist/classes/Activity.mjs +0 -380
- package/dist/classes/Activity.mjs.map +0 -1
- package/dist/classes/ActivityStoredAbstract.d.mts +0 -3
- package/dist/classes/ActivityStoredAbstract.d.ts +0 -3
- package/dist/classes/ActivityStoredAbstract.js +0 -399
- package/dist/classes/ActivityStoredAbstract.js.map +0 -1
- package/dist/classes/ActivityStoredAbstract.mjs +0 -397
- package/dist/classes/ActivityStoredAbstract.mjs.map +0 -1
- package/dist/classes/Commitment.d.mts +0 -8
- package/dist/classes/Commitment.d.ts +0 -8
- package/dist/classes/Commitment.js +0 -439
- package/dist/classes/Commitment.js.map +0 -1
- package/dist/classes/Commitment.mjs +0 -437
- package/dist/classes/Commitment.mjs.map +0 -1
- package/dist/classes/navigation/ActivityRoom.d.mts +0 -8
- package/dist/classes/navigation/ActivityRoom.d.ts +0 -8
- package/dist/classes/navigation/ActivityRoom.js +0 -449
- package/dist/classes/navigation/ActivityRoom.js.map +0 -1
- package/dist/classes/navigation/ActivityRoom.mjs +0 -447
- package/dist/classes/navigation/ActivityRoom.mjs.map +0 -1
- package/dist/classes/navigation/Location.d.mts +0 -8
- package/dist/classes/navigation/Location.d.ts +0 -8
- package/dist/classes/navigation/Location.js +0 -119
- package/dist/classes/navigation/Location.js.map +0 -1
- package/dist/classes/navigation/Location.mjs +0 -117
- package/dist/classes/navigation/Location.mjs.map +0 -1
- package/dist/classes/navigation/Map.d.mts +0 -8
- package/dist/classes/navigation/Map.d.ts +0 -8
- package/dist/classes/navigation/Map.js +0 -115
- package/dist/classes/navigation/Map.js.map +0 -1
- package/dist/classes/navigation/Map.mjs +0 -113
- package/dist/classes/navigation/Map.mjs.map +0 -1
- package/dist/classes/navigation/Room.d.mts +0 -8
- package/dist/classes/navigation/Room.d.ts +0 -8
- package/dist/classes/navigation/Room.js +0 -779
- package/dist/classes/navigation/Room.js.map +0 -1
- package/dist/classes/navigation/Room.mjs +0 -774
- package/dist/classes/navigation/Room.mjs.map +0 -1
- package/dist/classes/quest/Goal.d.mts +0 -46
- package/dist/classes/quest/Goal.d.ts +0 -46
- package/dist/classes/quest/Goal.js +0 -86
- package/dist/classes/quest/Goal.js.map +0 -1
- package/dist/classes/quest/Goal.mjs +0 -81
- package/dist/classes/quest/Goal.mjs.map +0 -1
- package/dist/classes/quest/Quest.d.mts +0 -6
- package/dist/classes/quest/Quest.d.ts +0 -6
- package/dist/classes/quest/Quest.js +0 -770
- package/dist/classes/quest/Quest.js.map +0 -1
- package/dist/classes/quest/Quest.mjs +0 -768
- package/dist/classes/quest/Quest.mjs.map +0 -1
- package/dist/classes/quest/Stage.d.mts +0 -6
- package/dist/classes/quest/Stage.d.ts +0 -6
- package/dist/classes/quest/Stage.js +0 -537
- package/dist/classes/quest/Stage.js.map +0 -1
- package/dist/classes/quest/Stage.mjs +0 -532
- package/dist/classes/quest/Stage.mjs.map +0 -1
- package/dist/functions/ActivityFunctions.d.mts +0 -20
- package/dist/functions/ActivityFunctions.d.ts +0 -20
- package/dist/functions/ActivityFunctions.js +0 -54
- package/dist/functions/ActivityFunctions.js.map +0 -1
- package/dist/functions/ActivityFunctions.mjs +0 -51
- package/dist/functions/ActivityFunctions.mjs.map +0 -1
- package/dist/functions/NavigationFunctions.d.mts +0 -32
- package/dist/functions/NavigationFunctions.d.ts +0 -32
- package/dist/functions/NavigationFunctions.js +0 -182
- package/dist/functions/NavigationFunctions.js.map +0 -1
- package/dist/functions/NavigationFunctions.mjs +0 -177
- package/dist/functions/NavigationFunctions.mjs.map +0 -1
- package/dist/functions/QuestFunctions.d.mts +0 -8
- package/dist/functions/QuestFunctions.d.ts +0 -8
- package/dist/functions/QuestFunctions.js +0 -21
- package/dist/functions/QuestFunctions.js.map +0 -1
- package/dist/functions/QuestFunctions.mjs +0 -19
- package/dist/functions/QuestFunctions.mjs.map +0 -1
- package/dist/functions/RoutineFunctions.d.mts +0 -36
- package/dist/functions/RoutineFunctions.d.ts +0 -36
- package/dist/functions/RoutineFunctions.js +0 -127
- package/dist/functions/RoutineFunctions.js.map +0 -1
- package/dist/functions/RoutineFunctions.mjs +0 -122
- package/dist/functions/RoutineFunctions.mjs.map +0 -1
- package/dist/interface/RoomActivityMemory.d.mts +0 -9
- package/dist/interface/RoomActivityMemory.d.ts +0 -9
- package/dist/interface/RoomActivityMemory.js +0 -4
- package/dist/interface/RoomActivityMemory.js.map +0 -1
- package/dist/interface/RoomActivityMemory.mjs +0 -3
- package/dist/interface/RoomActivityMemory.mjs.map +0 -1
- package/dist/interface/RoomProps.d.mts +0 -8
- package/dist/interface/RoomProps.d.ts +0 -8
- package/dist/interface/RoomProps.js +0 -4
- package/dist/interface/RoomProps.js.map +0 -1
- package/dist/interface/RoomProps.mjs +0 -3
- package/dist/interface/RoomProps.mjs.map +0 -1
- package/dist/interface/navigation/LocationProps.d.mts +0 -8
- package/dist/interface/navigation/LocationProps.d.ts +0 -8
- package/dist/interface/navigation/LocationProps.js +0 -4
- package/dist/interface/navigation/LocationProps.js.map +0 -1
- package/dist/interface/navigation/LocationProps.mjs +0 -3
- package/dist/interface/navigation/LocationProps.mjs.map +0 -1
- package/dist/interface/navigation/MapProps.d.mts +0 -8
- package/dist/interface/navigation/MapProps.d.ts +0 -8
- package/dist/interface/navigation/MapProps.js +0 -4
- package/dist/interface/navigation/MapProps.js.map +0 -1
- package/dist/interface/navigation/MapProps.mjs +0 -3
- package/dist/interface/navigation/MapProps.mjs.map +0 -1
- package/dist/interface/quest/GoalProps.d.mts +0 -19
- package/dist/interface/quest/GoalProps.d.ts +0 -19
- package/dist/interface/quest/GoalProps.js +0 -4
- package/dist/interface/quest/GoalProps.js.map +0 -1
- package/dist/interface/quest/GoalProps.mjs +0 -3
- package/dist/interface/quest/GoalProps.mjs.map +0 -1
- package/dist/override/GraphicItemType.d.mts +0 -17
- package/dist/override/GraphicItemType.d.ts +0 -17
- package/dist/override/GraphicItemType.js +0 -4
- package/dist/override/GraphicItemType.js.map +0 -1
- package/dist/override/GraphicItemType.mjs +0 -3
- package/dist/override/GraphicItemType.mjs.map +0 -1
- package/dist/override/NeighboringMapsInterface.d.mts +0 -21
- package/dist/override/NeighboringMapsInterface.d.ts +0 -21
- package/dist/override/NeighboringMapsInterface.js +0 -4
- package/dist/override/NeighboringMapsInterface.js.map +0 -1
- package/dist/override/NeighboringMapsInterface.mjs +0 -3
- package/dist/override/NeighboringMapsInterface.mjs.map +0 -1
- package/dist/types/OnRunActivityEvent.d.mts +0 -8
- package/dist/types/OnRunActivityEvent.d.ts +0 -8
- package/dist/types/OnRunActivityEvent.js +0 -4
- package/dist/types/OnRunActivityEvent.js.map +0 -1
- package/dist/types/OnRunActivityEvent.mjs +0 -3
- package/dist/types/OnRunActivityEvent.mjs.map +0 -1
- package/dist/types/OnRunCommitmentEvent.d.mts +0 -8
- package/dist/types/OnRunCommitmentEvent.d.ts +0 -8
- package/dist/types/OnRunCommitmentEvent.js +0 -4
- package/dist/types/OnRunCommitmentEvent.js.map +0 -1
- package/dist/types/OnRunCommitmentEvent.mjs +0 -3
- package/dist/types/OnRunCommitmentEvent.mjs.map +0 -1
|
@@ -1,586 +0,0 @@
|
|
|
1
|
-
import { GraphicItemType, OnRenderGraphicItemProps, NeighboringMapsInterface, OnRunProps } from '@drincs/nqtr/dist/override';
|
|
2
|
-
import { CharacterBaseModel, StoredClassModel } from '@drincs/pixi-vn';
|
|
3
|
-
import { a as ActivityStoredAbstract, A as ActivityProps } from './ActivityProps-D45DQdcT.mjs';
|
|
4
|
-
import { OnRunActivityEvent } from './types/OnRunActivityEvent.mjs';
|
|
5
|
-
import ActivityModel from './classes/Activity.mjs';
|
|
6
|
-
import ExecutionType from './types/ExecutionType.mjs';
|
|
7
|
-
import { OnRunCommitmentEvent } from './types/OnRunCommitmentEvent.mjs';
|
|
8
|
-
|
|
9
|
-
interface CommitmentProps<TCharacter extends CharacterBaseModel = CharacterBaseModel, TRoom extends RoomBaseModel = RoomBaseModel> {
|
|
10
|
-
/**
|
|
11
|
-
* The name
|
|
12
|
-
* @default ""
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The hour when the commitment starts. If the commitment is not started yet, it will be hidden.
|
|
17
|
-
* If you set 3, the commitment will be hidden into hours 1 and 2, and will be shown from hour 3.
|
|
18
|
-
* @default TimeManager.minDayHours
|
|
19
|
-
*/
|
|
20
|
-
fromHour?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The hour when the commitment ends. If the commitment is ended yet, it will be hidden.
|
|
23
|
-
* If you set 3, the commitment will be shown into hours 1 and 2 and will be hidden from hour 3.
|
|
24
|
-
* @default TimeManager.maxDayHours + 1
|
|
25
|
-
*/
|
|
26
|
-
toHour?: number;
|
|
27
|
-
/**
|
|
28
|
-
* The day when the commitment starts. If the commitment is not started yet, it will be hidden.
|
|
29
|
-
* If you set 3, the commitment will be hidden into days 1 and 2, and will be shown from day 3.
|
|
30
|
-
* @default undefined
|
|
31
|
-
*/
|
|
32
|
-
fromDay?: number;
|
|
33
|
-
/**
|
|
34
|
-
* The day when the commitment ends. If the commitment is ended yet, it will be deleted or hidden.
|
|
35
|
-
* If you set 3, the commitment will be shown into days 1 and 2 and will be deleted or hidden from day 3.
|
|
36
|
-
* @default undefined
|
|
37
|
-
*/
|
|
38
|
-
toDay?: number;
|
|
39
|
-
/**
|
|
40
|
-
* The image. It can be a string, an Element or a Pixi'VN Canvas Item.
|
|
41
|
-
* Or an object to manage multiple image types. For example to have a image based on time.
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* {
|
|
45
|
-
* "morning": "morning-background.jpg",
|
|
46
|
-
* "afternoon": "afternoon-background.jpg",
|
|
47
|
-
* "evening": "evening-background.jpg",
|
|
48
|
-
* "night": "night-background.jpg"
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
* @default undefined
|
|
52
|
-
*/
|
|
53
|
-
renderImage?: GraphicItemType | ((commitment: CommitmentBaseModel<TCharacter, TRoom>, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
54
|
-
/**
|
|
55
|
-
* 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.
|
|
56
|
-
* If you set "automatic" remember to remove the commitment when it is no longer needed, because otherwise it repeats itself every time.
|
|
57
|
-
* @default "interaction"
|
|
58
|
-
*/
|
|
59
|
-
executionType?: ExecutionType;
|
|
60
|
-
/**
|
|
61
|
-
* Is a function that is called when the player interacts with the character.
|
|
62
|
-
* @param commitment
|
|
63
|
-
* @returns
|
|
64
|
-
* @default undefined
|
|
65
|
-
*/
|
|
66
|
-
onRun?: OnRunCommitmentEvent<CommitmentBaseModel>;
|
|
67
|
-
/**
|
|
68
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
69
|
-
* If it is disabled this commitment will not be taken into consideration. So the characters will not be in the room, but will be busy with other commitments.
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
disabled?: boolean | string;
|
|
73
|
-
/**
|
|
74
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
hidden?: boolean | string;
|
|
78
|
-
/**
|
|
79
|
-
* The icon element. Can be a string or an Element or a Pixi'VN CanvasItem
|
|
80
|
-
* @default undefined
|
|
81
|
-
*/
|
|
82
|
-
renderIcon?: GraphicItemType | ((commitment: CommitmentBaseModel, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
83
|
-
/**
|
|
84
|
-
* The priority. The higher the number, the higher the priority.
|
|
85
|
-
* 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.
|
|
86
|
-
* @default 0
|
|
87
|
-
*/
|
|
88
|
-
priority?: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface LocationProps<TMap extends MapBaseModel = MapBaseModel> {
|
|
92
|
-
/**
|
|
93
|
-
* The name
|
|
94
|
-
* @default ""
|
|
95
|
-
*/
|
|
96
|
-
name?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
disabled?: boolean | string;
|
|
102
|
-
/**
|
|
103
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
|
-
hidden?: boolean | string;
|
|
107
|
-
/**
|
|
108
|
-
* The icon element. Can be a string or an Element or a Pixi'VN CanvasItem
|
|
109
|
-
* @default undefined
|
|
110
|
-
*/
|
|
111
|
-
renderIcon?: GraphicItemType | ((location: LocationBaseModel<TMap>, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
interface MapProps {
|
|
115
|
-
/**
|
|
116
|
-
* The name
|
|
117
|
-
* @default ""
|
|
118
|
-
*/
|
|
119
|
-
name?: string;
|
|
120
|
-
/**
|
|
121
|
-
* The image. It can be a string, an Element or a Pixi'VN Canvas Item.
|
|
122
|
-
* Or an object to manage multiple image types. For example to have a image based on time.
|
|
123
|
-
* @example
|
|
124
|
-
* ```ts
|
|
125
|
-
* {
|
|
126
|
-
* "morning": "morning-background.jpg",
|
|
127
|
-
* "afternoon": "afternoon-background.jpg",
|
|
128
|
-
* "evening": "evening-background.jpg",
|
|
129
|
-
* "night": "night-background.jpg"
|
|
130
|
-
* }
|
|
131
|
-
* ```
|
|
132
|
-
* @default undefined
|
|
133
|
-
*/
|
|
134
|
-
renderImage?: GraphicItemType | ((map: MapBaseModel, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
135
|
-
/**
|
|
136
|
-
* The neighboring maps that are available in this map.
|
|
137
|
-
* @example
|
|
138
|
-
* ```ts
|
|
139
|
-
* {
|
|
140
|
-
* "north": "atlanta_map_id",
|
|
141
|
-
* "south": "miami_map_id",
|
|
142
|
-
* "east": "new_york_map_id",
|
|
143
|
-
* "west": "los_angeles_map_id"
|
|
144
|
-
* }
|
|
145
|
-
* ```
|
|
146
|
-
* @default {}
|
|
147
|
-
*/
|
|
148
|
-
neighboringMaps?: NeighboringMapsInterface;
|
|
149
|
-
/**
|
|
150
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
disabled?: boolean | string;
|
|
154
|
-
/**
|
|
155
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
hidden?: boolean | string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface RoomProps<TLocation extends LocationBaseModel = LocationBaseModel> {
|
|
162
|
-
/**
|
|
163
|
-
* The name
|
|
164
|
-
* @default ""
|
|
165
|
-
*/
|
|
166
|
-
name?: string;
|
|
167
|
-
/**
|
|
168
|
-
* The image. It can be a string, an Element or a Pixi'VN Canvas Item.
|
|
169
|
-
* Or an object to manage multiple image types. For example to have a image based on time.
|
|
170
|
-
* @example
|
|
171
|
-
* ```ts
|
|
172
|
-
* {
|
|
173
|
-
* "morning": "morning-background.jpg",
|
|
174
|
-
* "afternoon": "afternoon-background.jpg",
|
|
175
|
-
* "evening": "evening-background.jpg",
|
|
176
|
-
* "night": "night-background.jpg"
|
|
177
|
-
* }
|
|
178
|
-
* ```
|
|
179
|
-
* @default undefined
|
|
180
|
-
*/
|
|
181
|
-
renderImage?: GraphicItemType | ((room: RoomBaseModel<TLocation>, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
182
|
-
/**
|
|
183
|
-
* The activities that are available in this room.
|
|
184
|
-
* @default []
|
|
185
|
-
*/
|
|
186
|
-
defaultActivities?: ActivityModel[];
|
|
187
|
-
/**
|
|
188
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
189
|
-
* @default false
|
|
190
|
-
*/
|
|
191
|
-
disabled?: boolean | string;
|
|
192
|
-
/**
|
|
193
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
194
|
-
* @default false
|
|
195
|
-
*/
|
|
196
|
-
hidden?: boolean | string;
|
|
197
|
-
/**
|
|
198
|
-
* The icon element. Can be a string or an Element or a Pixi'VN CanvasItem
|
|
199
|
-
* @default undefined
|
|
200
|
-
*/
|
|
201
|
-
renderIcon?: GraphicItemType | ((room: RoomBaseModel<TLocation>, props: OnRenderGraphicItemProps) => GraphicItemType);
|
|
202
|
-
/**
|
|
203
|
-
* Whether is an entrance room, so when the player enters in the location, it will be the first room to be shown.
|
|
204
|
-
* @default false
|
|
205
|
-
*/
|
|
206
|
-
isEntrance?: boolean;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The activity generated by the room.
|
|
211
|
-
*/
|
|
212
|
-
declare class ActivityRoom<TRoom extends RoomBaseModel = RoomBaseModel> extends ActivityStoredAbstract {
|
|
213
|
-
constructor(id: string, room: TRoom, onRun: OnRunActivityEvent<ActivityStoredAbstract>, props: ActivityProps);
|
|
214
|
-
setStorageProperty<T>(_: string, __: T | undefined): void;
|
|
215
|
-
getStorageProperty<T>(propertyName: string): T | undefined;
|
|
216
|
-
private _id;
|
|
217
|
-
get id(): string;
|
|
218
|
-
private _room;
|
|
219
|
-
/**
|
|
220
|
-
* The room where the activity is.
|
|
221
|
-
*/
|
|
222
|
-
get room(): TRoom;
|
|
223
|
-
export(): object;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* The base model of a map. I suggest you extend this class to create your own map model.
|
|
228
|
-
* @example
|
|
229
|
-
* ```typescript
|
|
230
|
-
* export const mainMap = new MapBaseModel('main_map', {
|
|
231
|
-
* name: 'Main Map',
|
|
232
|
-
* image: "https://image.jpg",
|
|
233
|
-
* neighboringMaps: {
|
|
234
|
-
* "north": "atlanta_map_id",
|
|
235
|
-
* "south": "miami_map_id",
|
|
236
|
-
* "east": "new_york_map_id",
|
|
237
|
-
* "west": "los_angeles_map_id"
|
|
238
|
-
* }
|
|
239
|
-
* });
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
declare class MapBaseModel extends StoredClassModel {
|
|
243
|
-
/**
|
|
244
|
-
* @param id The id of the map, it must be unique.
|
|
245
|
-
* @param props The properties of the map.
|
|
246
|
-
*/
|
|
247
|
-
constructor(id: string, props?: MapProps);
|
|
248
|
-
private defaultName;
|
|
249
|
-
/**
|
|
250
|
-
* The name of the map.
|
|
251
|
-
* If you set undefined, it will return the initial value of name.
|
|
252
|
-
*/
|
|
253
|
-
get name(): string;
|
|
254
|
-
set name(value: string | undefined);
|
|
255
|
-
private _renderImage?;
|
|
256
|
-
/**
|
|
257
|
-
* The function for rendering the image of the map.
|
|
258
|
-
*/
|
|
259
|
-
get renderImage(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
260
|
-
private defaultDisabled;
|
|
261
|
-
/**
|
|
262
|
-
* Whether is disabled. If it is a string, it is a Pixi'VN flag name.
|
|
263
|
-
*/
|
|
264
|
-
get disabled(): boolean;
|
|
265
|
-
set disabled(value: boolean | string);
|
|
266
|
-
private defaultHidden;
|
|
267
|
-
/**
|
|
268
|
-
* Whether is hidden. If it is a string, it is a Pixi'VN flag name.
|
|
269
|
-
*/
|
|
270
|
-
get hidden(): boolean;
|
|
271
|
-
set hidden(value: boolean | string);
|
|
272
|
-
private _neighboringMaps?;
|
|
273
|
-
/**
|
|
274
|
-
* The neighboring maps that are available in this map.
|
|
275
|
-
* @example
|
|
276
|
-
* ```ts
|
|
277
|
-
* {
|
|
278
|
-
* "north": "atlanta_map_id",
|
|
279
|
-
* "south": "miami_map_id",
|
|
280
|
-
* "east": "new_york_map_id",
|
|
281
|
-
* "west": "los_angeles_map_id"
|
|
282
|
-
* }
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
get neighboringMaps(): NeighboringMapsInterface;
|
|
286
|
-
set neighboringMaps(value: NeighboringMapsInterface | undefined);
|
|
287
|
-
/**
|
|
288
|
-
* Get all locations in the map.
|
|
289
|
-
* @returns The locations in the map.
|
|
290
|
-
*/
|
|
291
|
-
getLocations<TLocation extends LocationBaseModel = LocationBaseModel>(): TLocation[];
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* The base model of a location. I suggest you extend this class to create your own location model.
|
|
296
|
-
* @example
|
|
297
|
-
* ```typescript
|
|
298
|
-
* export const mcHome = new LocationBaseModel('mc_home', mainMap, {
|
|
299
|
-
* name: 'MC Home',
|
|
300
|
-
* icon: "https://icon.jpg",
|
|
301
|
-
* });
|
|
302
|
-
* ```
|
|
303
|
-
*/
|
|
304
|
-
declare class LocationBaseModel<TMap extends MapBaseModel = MapBaseModel> extends StoredClassModel {
|
|
305
|
-
/**
|
|
306
|
-
* @param id The id of the location, it must be unique.
|
|
307
|
-
* @param map The map where the location is.
|
|
308
|
-
* @param props The properties of the location.
|
|
309
|
-
*/
|
|
310
|
-
constructor(id: string, map: TMap, props?: LocationProps<TMap>);
|
|
311
|
-
private defaultName;
|
|
312
|
-
/**
|
|
313
|
-
* The name of the location.
|
|
314
|
-
* If you set undefined, it will return the initial value of name.
|
|
315
|
-
*/
|
|
316
|
-
get name(): string;
|
|
317
|
-
set name(value: string | undefined);
|
|
318
|
-
private defaultDisabled;
|
|
319
|
-
/**
|
|
320
|
-
* Whether is disabled. If it is a string, it is a Pixi'VN flag name.
|
|
321
|
-
*/
|
|
322
|
-
get disabled(): boolean;
|
|
323
|
-
set disabled(value: boolean | string);
|
|
324
|
-
private defaultHidden;
|
|
325
|
-
/**
|
|
326
|
-
* Whether is hidden. If it is a string, it is a Pixi'VN flag name.
|
|
327
|
-
*/
|
|
328
|
-
get hidden(): boolean;
|
|
329
|
-
set hidden(value: boolean | string);
|
|
330
|
-
private _renderIcon?;
|
|
331
|
-
/**
|
|
332
|
-
* The function for rendering the icon of the location.
|
|
333
|
-
*/
|
|
334
|
-
get renderIcon(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
335
|
-
private _map;
|
|
336
|
-
/**
|
|
337
|
-
* The map where the location is.
|
|
338
|
-
*/
|
|
339
|
-
get map(): TMap;
|
|
340
|
-
/**
|
|
341
|
-
* Get the entrance room of the location.
|
|
342
|
-
* You can cast the room to a specific type that extends RoomBaseModel.
|
|
343
|
-
* @returns The entrance room or the first room if there is no entrance.
|
|
344
|
-
* @example
|
|
345
|
-
* ```typescript
|
|
346
|
-
* const entranceHome = new RoomBaseModel("entrance-home", home, { isEntrance: true })
|
|
347
|
-
* saveRoom(entranceHome)
|
|
348
|
-
* const home = new LocationBaseModel("home", map, { name: "Home" })
|
|
349
|
-
*
|
|
350
|
-
* const entrance = home.getEntrance() // entrance === entranceHome
|
|
351
|
-
* ```
|
|
352
|
-
*/
|
|
353
|
-
getEntrance<TRoom extends RoomBaseModel = RoomBaseModel>(): TRoom | undefined;
|
|
354
|
-
/**
|
|
355
|
-
* Get all rooms in the location.
|
|
356
|
-
* You can cast the rooms to a specific type that extends RoomBaseModel.
|
|
357
|
-
* @returns The rooms in the location.
|
|
358
|
-
*/
|
|
359
|
-
getRooms<TRoom extends RoomBaseModel = RoomBaseModel>(): TRoom[];
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
declare const ROOM_CATEGORY = "__nqtr-room__";
|
|
363
|
-
/**
|
|
364
|
-
* The base model of a room. I suggest you extend this class to create your own room model.
|
|
365
|
-
* **You must use the {@link saveRoom} function to save the room in the registered rooms.**
|
|
366
|
-
* @example
|
|
367
|
-
* ```ts
|
|
368
|
-
* export const mcRoom = new RoomBaseModel('mc_room', mcHome, {
|
|
369
|
-
* name: "MC Room",
|
|
370
|
-
* icon: "https://icon.jpg",
|
|
371
|
-
* image: "https://image.jpg",
|
|
372
|
-
* isEntrance: false,
|
|
373
|
-
* })
|
|
374
|
-
* saveRoom(mcRoom)
|
|
375
|
-
* ```
|
|
376
|
-
*/
|
|
377
|
-
declare class RoomBaseModel<TLocation extends LocationBaseModel = LocationBaseModel> extends StoredClassModel {
|
|
378
|
-
/**
|
|
379
|
-
* @param id The id of the room, it must be unique.
|
|
380
|
-
* @param location The location where the room is.
|
|
381
|
-
* @param props The properties of the room.
|
|
382
|
-
*/
|
|
383
|
-
constructor(id: string, location: TLocation, props?: RoomProps<TLocation>);
|
|
384
|
-
private _location;
|
|
385
|
-
/**
|
|
386
|
-
* The location where the room is.
|
|
387
|
-
*/
|
|
388
|
-
get location(): TLocation;
|
|
389
|
-
private _isEntrance?;
|
|
390
|
-
/**
|
|
391
|
-
* Whether is an entrance room, so when the player enters in the location, it will be the first room to be shown.
|
|
392
|
-
*/
|
|
393
|
-
get isEntrance(): boolean;
|
|
394
|
-
private defaultName;
|
|
395
|
-
/**
|
|
396
|
-
* The name.
|
|
397
|
-
* If you set undefined, it will return the initial value of name.
|
|
398
|
-
*/
|
|
399
|
-
get name(): string;
|
|
400
|
-
set name(value: string | undefined);
|
|
401
|
-
private _renderImage?;
|
|
402
|
-
/**
|
|
403
|
-
* The function for rendering the image of the room.
|
|
404
|
-
*/
|
|
405
|
-
get renderImage(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
406
|
-
private defaultActivityIds;
|
|
407
|
-
/**
|
|
408
|
-
* The activities that are available in this room.
|
|
409
|
-
*/
|
|
410
|
-
get defaultActivities(): ActivityRoom<this>[];
|
|
411
|
-
private get activityIds();
|
|
412
|
-
/**
|
|
413
|
-
* The activities that are available in this room.
|
|
414
|
-
*/
|
|
415
|
-
get activities(): ActivityRoom<this>[];
|
|
416
|
-
/**
|
|
417
|
-
* Get the memory of an activity. This function can be used into olther libraries to get the memory of the activity.
|
|
418
|
-
* @param id The id of the activity.
|
|
419
|
-
* @returns The memory of the activity.
|
|
420
|
-
*/
|
|
421
|
-
getActivityMemory(id: string): object | undefined;
|
|
422
|
-
/**
|
|
423
|
-
* Get the activity by id.
|
|
424
|
-
* @param id The id of the activity.
|
|
425
|
-
* @returns The room activity.
|
|
426
|
-
*/
|
|
427
|
-
getActivity(id: string): ActivityRoom<this> | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* Set the memory of an activity. This function can be used into olther libraries to set the memory of the activity.
|
|
430
|
-
* @param id The id of the activity.
|
|
431
|
-
* @param memory The memory of the activity.
|
|
432
|
-
*/
|
|
433
|
-
setActivity(activity: ActivityRoom): void;
|
|
434
|
-
/**
|
|
435
|
-
* Add an activity to the room.
|
|
436
|
-
* @param activity The activity to add.
|
|
437
|
-
*/
|
|
438
|
-
addActivity(activity: ActivityModel): void;
|
|
439
|
-
/**
|
|
440
|
-
* Remove an activity from the room.
|
|
441
|
-
* @param activity The activity to remove.
|
|
442
|
-
*/
|
|
443
|
-
removeActivity(activity: ActivityModel | string): void;
|
|
444
|
-
/**
|
|
445
|
-
* Clear all expired activities.
|
|
446
|
-
*/
|
|
447
|
-
clearExpiredActivities(): void;
|
|
448
|
-
private defaultDisabled;
|
|
449
|
-
/**
|
|
450
|
-
* Whether is disabled. If it is a string, it is a Pixi'VN flag name.
|
|
451
|
-
*/
|
|
452
|
-
get disabled(): boolean;
|
|
453
|
-
set disabled(value: boolean | string);
|
|
454
|
-
private defaultHidden;
|
|
455
|
-
/**
|
|
456
|
-
* Whether is hidden. If it is a string, it is a Pixi'VN flag name.
|
|
457
|
-
*/
|
|
458
|
-
get hidden(): boolean;
|
|
459
|
-
set hidden(value: boolean | string);
|
|
460
|
-
private _renderIcon?;
|
|
461
|
-
/**
|
|
462
|
-
* The function for rendering the icon of the room.
|
|
463
|
-
*/
|
|
464
|
-
get renderIcon(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
465
|
-
/**
|
|
466
|
-
* Get the character commitments of the room.
|
|
467
|
-
* @returns The character commitments of the room.
|
|
468
|
-
*/
|
|
469
|
-
getRoutine<TCommitment extends CommitmentBaseModel = CommitmentBaseModel>(): TCommitment[];
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* The base model of a commitment. I suggest you extend this class to create your own commitment model.
|
|
474
|
-
* You must use the saveRoom function to save the commitment in the registered commitments.
|
|
475
|
-
* @example
|
|
476
|
-
* ```ts
|
|
477
|
-
* export const mcRoom = new CommitmentBaseModel("test", character, room, {
|
|
478
|
-
* name: "Test",
|
|
479
|
-
* image: "https://image.jpg",
|
|
480
|
-
* executionType: ExecutionTypeEnum.INTERACTION,
|
|
481
|
-
* onRun: (commitment) => {
|
|
482
|
-
* // Do something
|
|
483
|
-
* }
|
|
484
|
-
* })
|
|
485
|
-
* saveCommitment(mcRoom)
|
|
486
|
-
* ```
|
|
487
|
-
*/
|
|
488
|
-
declare class CommitmentBaseModel<TCharacter extends CharacterBaseModel = CharacterBaseModel, TRoom extends RoomBaseModel = RoomBaseModel> extends StoredClassModel {
|
|
489
|
-
/**
|
|
490
|
-
* @param id The id of the commitment, it must be unique.
|
|
491
|
-
* @param character The character or characters that are in the commitment and so in the room.
|
|
492
|
-
* @param room The room where the commitment is.
|
|
493
|
-
* @param props The properties of the commitment.
|
|
494
|
-
*/
|
|
495
|
-
constructor(id: string, character: TCharacter | TCharacter[] | undefined, room: TRoom, props: CommitmentProps<TCharacter, TRoom>);
|
|
496
|
-
private _characters;
|
|
497
|
-
/**
|
|
498
|
-
* The character or characters that are in the commitment and so in the room.
|
|
499
|
-
*/
|
|
500
|
-
get characters(): TCharacter[];
|
|
501
|
-
private _room;
|
|
502
|
-
/**
|
|
503
|
-
* The room where the commitment is.
|
|
504
|
-
*/
|
|
505
|
-
get room(): TRoom;
|
|
506
|
-
private _name;
|
|
507
|
-
/**
|
|
508
|
-
* The name
|
|
509
|
-
*/
|
|
510
|
-
get name(): string;
|
|
511
|
-
private defaultFromHour?;
|
|
512
|
-
/**
|
|
513
|
-
* The hour when the commitment starts. If the commitment is not started yet, it will be hidden.
|
|
514
|
-
* If you set undefined, it will return the initial value of fromHour.
|
|
515
|
-
*/
|
|
516
|
-
get fromHour(): number;
|
|
517
|
-
set fromHour(value: number | undefined);
|
|
518
|
-
private defaultToHour?;
|
|
519
|
-
/**
|
|
520
|
-
* The hour when the commitment ends. If the commitment is ended yet, it will be hidden.
|
|
521
|
-
* If you set undefined, it will return the initial value of toHour.
|
|
522
|
-
*/
|
|
523
|
-
get toHour(): number;
|
|
524
|
-
set toHour(value: number | undefined);
|
|
525
|
-
private defaultFromDay?;
|
|
526
|
-
/**
|
|
527
|
-
* The day when the commitment starts. If the commitment is not started yet, it will be hidden.
|
|
528
|
-
* If you set undefined, it will return the initial value of fromDay.
|
|
529
|
-
*/
|
|
530
|
-
get fromDay(): number | undefined;
|
|
531
|
-
set fromDay(value: number | undefined);
|
|
532
|
-
private defaultToDay?;
|
|
533
|
-
/**
|
|
534
|
-
* The day when the commitment ends. If the commitment is ended yet, it will be deleted or hidden.
|
|
535
|
-
* If you set undefined, it will return the initial value of toDay.
|
|
536
|
-
*/
|
|
537
|
-
get toDay(): number | undefined;
|
|
538
|
-
set toDay(value: number | undefined);
|
|
539
|
-
private _renderImage?;
|
|
540
|
-
/**
|
|
541
|
-
* The function for rendering the image of the room.
|
|
542
|
-
*/
|
|
543
|
-
get renderImage(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
544
|
-
private _executionType;
|
|
545
|
-
/**
|
|
546
|
-
* 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.
|
|
547
|
-
* If you set "automatic" remember to remove the commitment when it is no longer needed, because otherwise it repeats itself every time.
|
|
548
|
-
*/
|
|
549
|
-
get executionType(): ExecutionType;
|
|
550
|
-
private _renderIcon?;
|
|
551
|
-
/**
|
|
552
|
-
* The function for rendering the icon of the commitment.
|
|
553
|
-
*/
|
|
554
|
-
get renderIcon(): ((props: OnRenderGraphicItemProps) => GraphicItemType) | undefined;
|
|
555
|
-
private _onRun?;
|
|
556
|
-
/**
|
|
557
|
-
* Is a function that is called when the player interacts with the character.
|
|
558
|
-
*/
|
|
559
|
-
get run(): undefined | ((props: OnRunProps) => void);
|
|
560
|
-
private defaultDisabled;
|
|
561
|
-
/**
|
|
562
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
563
|
-
*/
|
|
564
|
-
get disabled(): boolean;
|
|
565
|
-
set disabled(value: boolean | string);
|
|
566
|
-
private defaultHidden;
|
|
567
|
-
/**
|
|
568
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
569
|
-
*/
|
|
570
|
-
get hidden(): boolean;
|
|
571
|
-
set hidden(value: boolean | string);
|
|
572
|
-
private defaultPriority;
|
|
573
|
-
/**
|
|
574
|
-
* The priority. The higher the number, the higher the priority.
|
|
575
|
-
* 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.
|
|
576
|
-
*/
|
|
577
|
-
get priority(): number;
|
|
578
|
-
set priority(value: number);
|
|
579
|
-
/**
|
|
580
|
-
* Whether the commitment is expired.
|
|
581
|
-
* @returns Whether the commitment is expired.
|
|
582
|
-
*/
|
|
583
|
-
isExpired(): boolean;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
export { ActivityRoom as A, CommitmentBaseModel as C, LocationBaseModel as L, MapBaseModel as M, RoomBaseModel as R, type CommitmentProps as a, type LocationProps as b, type MapProps as c, type RoomProps as d, ROOM_CATEGORY as e };
|