@drincs/nqtr 0.3.7 → 0.4.1
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-BRA386zn.d.mts +171 -0
- package/dist/RoomInterface-Cwm08AzD.d.ts +171 -0
- package/dist/{StageInterface-DX74DUxG.d.mts → StageInterface-LDgQToad.d.mts} +28 -14
- package/dist/{StageInterface-DX74DUxG.d.ts → StageInterface-LDgQToad.d.ts} +28 -14
- package/dist/classes/index.cjs +2 -0
- package/dist/classes/index.cjs.map +1 -0
- package/dist/classes/index.d.mts +508 -31
- package/dist/classes/index.d.ts +508 -31
- package/dist/classes/index.mjs +1 -1
- package/dist/classes/index.mjs.map +1 -1
- package/dist/decorators/index.cjs +2 -0
- package/dist/decorators/index.cjs.map +1 -0
- package/dist/decorators/index.d.mts +161 -9
- package/dist/decorators/index.d.ts +161 -9
- package/dist/decorators/index.mjs +1 -1
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/index-B-x-OmU2.d.ts +186 -0
- package/dist/index-CJubtUni.d.mts +301 -0
- package/dist/index-Cq_kqDbo.d.ts +301 -0
- package/dist/index-k8ho_YWr.d.mts +186 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +16 -46
- package/dist/index.d.ts +16 -46
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interface/index.cjs +2 -0
- package/dist/{functions/index.js.map → interface/index.cjs.map} +1 -1
- package/dist/interface/index.d.mts +3 -14
- package/dist/interface/index.d.ts +3 -14
- package/dist/managers/index.cjs +2 -0
- package/dist/managers/index.cjs.map +1 -0
- package/dist/managers/index.d.mts +4 -17
- package/dist/managers/index.d.ts +4 -17
- package/dist/managers/index.mjs +1 -1
- package/dist/managers/index.mjs.map +1 -1
- package/dist/types/index.cjs +2 -0
- package/dist/{functions/index.mjs.map → types/index.cjs.map} +1 -1
- package/dist/types/index.d.mts +60 -4
- package/dist/types/index.d.ts +60 -4
- package/package.json +13 -5
- package/dist/RoomInterface-CdAM_q7P.d.ts +0 -83
- package/dist/RoomInterface-DURfkQ7u.d.mts +0 -83
- package/dist/classes/ActivityBaseModel.d.mts +0 -63
- package/dist/classes/ActivityBaseModel.d.ts +0 -63
- package/dist/classes/ActivityBaseModel.js +0 -2
- package/dist/classes/ActivityBaseModel.js.map +0 -1
- package/dist/classes/ActivityBaseModel.mjs +0 -2
- package/dist/classes/ActivityBaseModel.mjs.map +0 -1
- package/dist/classes/ActivityStoredClass.d.mts +0 -27
- package/dist/classes/ActivityStoredClass.d.ts +0 -27
- package/dist/classes/ActivityStoredClass.js +0 -2
- package/dist/classes/ActivityStoredClass.js.map +0 -1
- package/dist/classes/ActivityStoredClass.mjs +0 -2
- package/dist/classes/ActivityStoredClass.mjs.map +0 -1
- package/dist/classes/CommitmentBaseModel.d.mts +0 -65
- package/dist/classes/CommitmentBaseModel.d.ts +0 -65
- package/dist/classes/CommitmentBaseModel.js +0 -2
- package/dist/classes/CommitmentBaseModel.js.map +0 -1
- package/dist/classes/CommitmentBaseModel.mjs +0 -2
- package/dist/classes/CommitmentBaseModel.mjs.map +0 -1
- package/dist/classes/CommitmentStoredClass.d.mts +0 -31
- package/dist/classes/CommitmentStoredClass.d.ts +0 -31
- package/dist/classes/CommitmentStoredClass.js +0 -2
- package/dist/classes/CommitmentStoredClass.js.map +0 -1
- package/dist/classes/CommitmentStoredClass.mjs +0 -2
- package/dist/classes/CommitmentStoredClass.mjs.map +0 -1
- package/dist/classes/index.js +0 -2
- package/dist/classes/index.js.map +0 -1
- package/dist/classes/navigation/LocationBaseModel.d.mts +0 -54
- package/dist/classes/navigation/LocationBaseModel.d.ts +0 -54
- package/dist/classes/navigation/LocationBaseModel.js +0 -2
- package/dist/classes/navigation/LocationBaseModel.js.map +0 -1
- package/dist/classes/navigation/LocationBaseModel.mjs +0 -2
- package/dist/classes/navigation/LocationBaseModel.mjs.map +0 -1
- package/dist/classes/navigation/LocationStoredClass.d.mts +0 -23
- package/dist/classes/navigation/LocationStoredClass.d.ts +0 -23
- package/dist/classes/navigation/LocationStoredClass.js +0 -2
- package/dist/classes/navigation/LocationStoredClass.js.map +0 -1
- package/dist/classes/navigation/LocationStoredClass.mjs +0 -2
- package/dist/classes/navigation/LocationStoredClass.mjs.map +0 -1
- package/dist/classes/navigation/MapBaseModel.d.mts +0 -41
- package/dist/classes/navigation/MapBaseModel.d.ts +0 -41
- package/dist/classes/navigation/MapBaseModel.js +0 -2
- package/dist/classes/navigation/MapBaseModel.js.map +0 -1
- package/dist/classes/navigation/MapBaseModel.mjs +0 -2
- package/dist/classes/navigation/MapBaseModel.mjs.map +0 -1
- package/dist/classes/navigation/MapStoredClass.d.mts +0 -14
- package/dist/classes/navigation/MapStoredClass.d.ts +0 -14
- package/dist/classes/navigation/MapStoredClass.js +0 -2
- package/dist/classes/navigation/MapStoredClass.js.map +0 -1
- package/dist/classes/navigation/MapStoredClass.mjs +0 -2
- package/dist/classes/navigation/MapStoredClass.mjs.map +0 -1
- package/dist/classes/navigation/NavigationAbstractClass.d.mts +0 -48
- package/dist/classes/navigation/NavigationAbstractClass.d.ts +0 -48
- package/dist/classes/navigation/NavigationAbstractClass.js +0 -2
- package/dist/classes/navigation/NavigationAbstractClass.js.map +0 -1
- package/dist/classes/navigation/NavigationAbstractClass.mjs +0 -2
- package/dist/classes/navigation/NavigationAbstractClass.mjs.map +0 -1
- package/dist/classes/navigation/RoomBaseModel.d.mts +0 -67
- package/dist/classes/navigation/RoomBaseModel.d.ts +0 -67
- package/dist/classes/navigation/RoomBaseModel.js +0 -2
- package/dist/classes/navigation/RoomBaseModel.js.map +0 -1
- package/dist/classes/navigation/RoomBaseModel.mjs +0 -2
- package/dist/classes/navigation/RoomBaseModel.mjs.map +0 -1
- package/dist/classes/navigation/RoomStoredClass.d.mts +0 -24
- package/dist/classes/navigation/RoomStoredClass.d.ts +0 -24
- package/dist/classes/navigation/RoomStoredClass.js +0 -2
- package/dist/classes/navigation/RoomStoredClass.js.map +0 -1
- package/dist/classes/navigation/RoomStoredClass.mjs +0 -2
- package/dist/classes/navigation/RoomStoredClass.mjs.map +0 -1
- package/dist/classes/quest/QuestBaseModel.d.mts +0 -36
- package/dist/classes/quest/QuestBaseModel.d.ts +0 -36
- package/dist/classes/quest/QuestBaseModel.js +0 -2
- package/dist/classes/quest/QuestBaseModel.js.map +0 -1
- package/dist/classes/quest/QuestBaseModel.mjs +0 -2
- package/dist/classes/quest/QuestBaseModel.mjs.map +0 -1
- package/dist/classes/quest/QuestStoredClass.d.mts +0 -37
- package/dist/classes/quest/QuestStoredClass.d.ts +0 -37
- package/dist/classes/quest/QuestStoredClass.js +0 -2
- package/dist/classes/quest/QuestStoredClass.js.map +0 -1
- package/dist/classes/quest/QuestStoredClass.mjs +0 -2
- package/dist/classes/quest/QuestStoredClass.mjs.map +0 -1
- package/dist/classes/quest/StageBaseModel.d.mts +0 -50
- package/dist/classes/quest/StageBaseModel.d.ts +0 -50
- package/dist/classes/quest/StageBaseModel.js +0 -2
- package/dist/classes/quest/StageBaseModel.js.map +0 -1
- package/dist/classes/quest/StageBaseModel.mjs +0 -2
- package/dist/classes/quest/StageBaseModel.mjs.map +0 -1
- package/dist/classes/quest/StageStoredClass.d.mts +0 -46
- package/dist/classes/quest/StageStoredClass.d.ts +0 -46
- package/dist/classes/quest/StageStoredClass.js +0 -2
- package/dist/classes/quest/StageStoredClass.js.map +0 -1
- package/dist/classes/quest/StageStoredClass.mjs +0 -2
- package/dist/classes/quest/StageStoredClass.mjs.map +0 -1
- package/dist/constants.d.mts +0 -4
- package/dist/constants.d.ts +0 -4
- package/dist/constants.js +0 -2
- package/dist/constants.js.map +0 -1
- package/dist/constants.mjs +0 -2
- package/dist/constants.mjs.map +0 -1
- package/dist/decorators/ActivityDecorator.d.mts +0 -15
- package/dist/decorators/ActivityDecorator.d.ts +0 -15
- package/dist/decorators/ActivityDecorator.js +0 -2
- package/dist/decorators/ActivityDecorator.js.map +0 -1
- package/dist/decorators/ActivityDecorator.mjs +0 -2
- package/dist/decorators/ActivityDecorator.mjs.map +0 -1
- package/dist/decorators/CommitmentDecorator.d.mts +0 -27
- package/dist/decorators/CommitmentDecorator.d.ts +0 -27
- package/dist/decorators/CommitmentDecorator.js +0 -2
- package/dist/decorators/CommitmentDecorator.js.map +0 -1
- package/dist/decorators/CommitmentDecorator.mjs +0 -2
- package/dist/decorators/CommitmentDecorator.mjs.map +0 -1
- package/dist/decorators/QuestDecorator.d.mts +0 -22
- package/dist/decorators/QuestDecorator.d.ts +0 -22
- package/dist/decorators/QuestDecorator.js +0 -2
- package/dist/decorators/QuestDecorator.js.map +0 -1
- package/dist/decorators/QuestDecorator.mjs +0 -2
- package/dist/decorators/QuestDecorator.mjs.map +0 -1
- package/dist/decorators/RoomDecorator.d.mts +0 -28
- package/dist/decorators/RoomDecorator.d.ts +0 -28
- package/dist/decorators/RoomDecorator.js +0 -2
- package/dist/decorators/RoomDecorator.js.map +0 -1
- package/dist/decorators/RoomDecorator.mjs +0 -2
- package/dist/decorators/RoomDecorator.mjs.map +0 -1
- package/dist/decorators/index.js +0 -2
- package/dist/decorators/index.js.map +0 -1
- package/dist/functions/index.d.mts +0 -2
- package/dist/functions/index.d.ts +0 -2
- package/dist/functions/index.js +0 -2
- package/dist/functions/index.mjs +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/interface/ActivityInterface.d.mts +0 -40
- package/dist/interface/ActivityInterface.d.ts +0 -40
- package/dist/interface/ActivityInterface.js +0 -2
- package/dist/interface/ActivityInterface.js.map +0 -1
- package/dist/interface/ActivityInterface.mjs +0 -2
- package/dist/interface/ActivityInterface.mjs.map +0 -1
- package/dist/interface/ActivityProps.d.mts +0 -48
- package/dist/interface/ActivityProps.d.ts +0 -48
- package/dist/interface/ActivityProps.js +0 -2
- package/dist/interface/ActivityProps.js.map +0 -1
- package/dist/interface/ActivityProps.mjs +0 -2
- package/dist/interface/ActivityProps.mjs.map +0 -1
- package/dist/interface/CommitmentInterface.d.mts +0 -6
- package/dist/interface/CommitmentInterface.d.ts +0 -6
- package/dist/interface/CommitmentInterface.js +0 -2
- package/dist/interface/CommitmentInterface.js.map +0 -1
- package/dist/interface/CommitmentInterface.mjs +0 -2
- package/dist/interface/CommitmentInterface.mjs.map +0 -1
- package/dist/interface/CommitmentProps.d.mts +0 -79
- package/dist/interface/CommitmentProps.d.ts +0 -79
- package/dist/interface/CommitmentProps.js +0 -2
- package/dist/interface/CommitmentProps.js.map +0 -1
- package/dist/interface/CommitmentProps.mjs +0 -2
- package/dist/interface/CommitmentProps.mjs.map +0 -1
- package/dist/interface/index.js +0 -2
- package/dist/interface/index.js.map +0 -1
- package/dist/interface/navigation/LocationBaseModelProps.d.mts +0 -32
- package/dist/interface/navigation/LocationBaseModelProps.d.ts +0 -32
- package/dist/interface/navigation/LocationBaseModelProps.js +0 -2
- package/dist/interface/navigation/LocationBaseModelProps.js.map +0 -1
- package/dist/interface/navigation/LocationBaseModelProps.mjs +0 -2
- package/dist/interface/navigation/LocationBaseModelProps.mjs.map +0 -1
- package/dist/interface/navigation/LocationInterface.d.mts +0 -6
- package/dist/interface/navigation/LocationInterface.d.ts +0 -6
- package/dist/interface/navigation/LocationInterface.js +0 -2
- package/dist/interface/navigation/LocationInterface.js.map +0 -1
- package/dist/interface/navigation/LocationInterface.mjs +0 -2
- package/dist/interface/navigation/LocationInterface.mjs.map +0 -1
- package/dist/interface/navigation/MapBaseModelProps.d.mts +0 -22
- package/dist/interface/navigation/MapBaseModelProps.d.ts +0 -22
- package/dist/interface/navigation/MapBaseModelProps.js +0 -2
- package/dist/interface/navigation/MapBaseModelProps.js.map +0 -1
- package/dist/interface/navigation/MapBaseModelProps.mjs +0 -2
- package/dist/interface/navigation/MapBaseModelProps.mjs.map +0 -1
- package/dist/interface/navigation/MapInterface.d.mts +0 -6
- package/dist/interface/navigation/MapInterface.d.ts +0 -6
- package/dist/interface/navigation/MapInterface.js +0 -2
- package/dist/interface/navigation/MapInterface.js.map +0 -1
- package/dist/interface/navigation/MapInterface.mjs +0 -2
- package/dist/interface/navigation/MapInterface.mjs.map +0 -1
- package/dist/interface/navigation/NavigationAbstractClass.d.mts +0 -54
- package/dist/interface/navigation/NavigationAbstractClass.d.ts +0 -54
- package/dist/interface/navigation/NavigationAbstractClass.js +0 -2
- package/dist/interface/navigation/NavigationAbstractClass.js.map +0 -1
- package/dist/interface/navigation/NavigationAbstractClass.mjs +0 -2
- package/dist/interface/navigation/NavigationAbstractClass.mjs.map +0 -1
- package/dist/interface/navigation/RoomBaseModelProps.d.mts +0 -37
- package/dist/interface/navigation/RoomBaseModelProps.d.ts +0 -37
- package/dist/interface/navigation/RoomBaseModelProps.js +0 -2
- package/dist/interface/navigation/RoomBaseModelProps.js.map +0 -1
- package/dist/interface/navigation/RoomBaseModelProps.mjs +0 -2
- package/dist/interface/navigation/RoomBaseModelProps.mjs.map +0 -1
- package/dist/interface/navigation/RoomInterface.d.mts +0 -6
- package/dist/interface/navigation/RoomInterface.d.ts +0 -6
- package/dist/interface/navigation/RoomInterface.js +0 -2
- package/dist/interface/navigation/RoomInterface.js.map +0 -1
- package/dist/interface/navigation/RoomInterface.mjs +0 -2
- package/dist/interface/navigation/RoomInterface.mjs.map +0 -1
- package/dist/interface/quest/QuestInterface.d.mts +0 -2
- package/dist/interface/quest/QuestInterface.d.ts +0 -2
- package/dist/interface/quest/QuestInterface.js +0 -2
- package/dist/interface/quest/QuestInterface.js.map +0 -1
- package/dist/interface/quest/QuestInterface.mjs +0 -2
- package/dist/interface/quest/QuestInterface.mjs.map +0 -1
- package/dist/interface/quest/QuestProps.d.mts +0 -39
- package/dist/interface/quest/QuestProps.d.ts +0 -39
- package/dist/interface/quest/QuestProps.js +0 -2
- package/dist/interface/quest/QuestProps.js.map +0 -1
- package/dist/interface/quest/QuestProps.mjs +0 -2
- package/dist/interface/quest/QuestProps.mjs.map +0 -1
- package/dist/interface/quest/StageFlags.d.mts +0 -12
- package/dist/interface/quest/StageFlags.d.ts +0 -12
- package/dist/interface/quest/StageFlags.js +0 -2
- package/dist/interface/quest/StageFlags.js.map +0 -1
- package/dist/interface/quest/StageFlags.mjs +0 -2
- package/dist/interface/quest/StageFlags.mjs.map +0 -1
- package/dist/interface/quest/StageInterface.d.mts +0 -2
- package/dist/interface/quest/StageInterface.d.ts +0 -2
- package/dist/interface/quest/StageInterface.js +0 -2
- package/dist/interface/quest/StageInterface.js.map +0 -1
- package/dist/interface/quest/StageInterface.mjs +0 -2
- package/dist/interface/quest/StageInterface.mjs.map +0 -1
- package/dist/interface/quest/StageProps.d.mts +0 -60
- package/dist/interface/quest/StageProps.d.ts +0 -60
- package/dist/interface/quest/StageProps.js +0 -2
- package/dist/interface/quest/StageProps.js.map +0 -1
- package/dist/interface/quest/StageProps.mjs +0 -2
- package/dist/interface/quest/StageProps.mjs.map +0 -1
- package/dist/managers/NavigatorManager.d.mts +0 -22
- package/dist/managers/NavigatorManager.d.ts +0 -22
- package/dist/managers/NavigatorManager.js +0 -2
- package/dist/managers/NavigatorManager.js.map +0 -1
- package/dist/managers/NavigatorManager.mjs +0 -2
- package/dist/managers/NavigatorManager.mjs.map +0 -1
- package/dist/managers/QuestManager.d.mts +0 -17
- package/dist/managers/QuestManager.d.ts +0 -17
- package/dist/managers/QuestManager.js +0 -2
- package/dist/managers/QuestManager.js.map +0 -1
- package/dist/managers/QuestManager.mjs +0 -2
- package/dist/managers/QuestManager.mjs.map +0 -1
- package/dist/managers/RoutineManager.d.mts +0 -59
- package/dist/managers/RoutineManager.d.ts +0 -59
- package/dist/managers/RoutineManager.js +0 -2
- package/dist/managers/RoutineManager.js.map +0 -1
- package/dist/managers/RoutineManager.mjs +0 -2
- package/dist/managers/RoutineManager.mjs.map +0 -1
- package/dist/managers/TimeManager.d.mts +0 -74
- package/dist/managers/TimeManager.d.ts +0 -74
- package/dist/managers/TimeManager.js +0 -2
- package/dist/managers/TimeManager.js.map +0 -1
- package/dist/managers/TimeManager.mjs +0 -2
- package/dist/managers/TimeManager.mjs.map +0 -1
- package/dist/managers/TimeManagerSettings.d.mts +0 -13
- package/dist/managers/TimeManagerSettings.d.ts +0 -13
- package/dist/managers/TimeManagerSettings.js +0 -2
- package/dist/managers/TimeManagerSettings.js.map +0 -1
- package/dist/managers/TimeManagerSettings.mjs +0 -2
- package/dist/managers/TimeManagerSettings.mjs.map +0 -1
- package/dist/managers/index.js +0 -2
- package/dist/managers/index.js.map +0 -1
- package/dist/nqtr.d.d.mts +0 -195
- package/dist/nqtr.d.d.ts +0 -195
- package/dist/nqtr.d.js +0 -2
- package/dist/nqtr.d.js.map +0 -1
- package/dist/nqtr.d.mjs +0 -2
- package/dist/nqtr.d.mjs.map +0 -1
- package/dist/types/ExecutionType.d.mts +0 -3
- package/dist/types/ExecutionType.d.ts +0 -3
- package/dist/types/ExecutionType.js +0 -2
- package/dist/types/ExecutionType.js.map +0 -1
- package/dist/types/ExecutionType.mjs +0 -2
- package/dist/types/ExecutionType.mjs.map +0 -1
- package/dist/types/OnRunEvent.d.mts +0 -9
- package/dist/types/OnRunEvent.d.ts +0 -9
- package/dist/types/OnRunEvent.js +0 -2
- package/dist/types/OnRunEvent.js.map +0 -1
- package/dist/types/OnRunEvent.mjs +0 -2
- package/dist/types/OnRunEvent.mjs.map +0 -1
- package/dist/types/QuestsRequired.d.mts +0 -2
- package/dist/types/QuestsRequired.d.ts +0 -2
- package/dist/types/QuestsRequired.js +0 -2
- package/dist/types/QuestsRequired.js.map +0 -1
- package/dist/types/QuestsRequired.mjs +0 -2
- package/dist/types/QuestsRequired.mjs.map +0 -1
- package/dist/types/TimeDataType.d.mts +0 -6
- package/dist/types/TimeDataType.d.ts +0 -6
- package/dist/types/TimeDataType.js +0 -2
- package/dist/types/TimeDataType.js.map +0 -1
- package/dist/types/TimeDataType.mjs +0 -2
- package/dist/types/TimeDataType.mjs.map +0 -1
- package/dist/types/TimeSettings.d.mts +0 -58
- package/dist/types/TimeSettings.d.ts +0 -58
- package/dist/types/TimeSettings.js +0 -2
- package/dist/types/TimeSettings.js.map +0 -1
- package/dist/types/TimeSettings.mjs +0 -2
- package/dist/types/TimeSettings.mjs.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { StoredClassModel } from '@drincs/pixi-vn';
|
|
2
|
-
import ActivityInterface from '../ActivityInterface.mjs';
|
|
3
|
-
import '@drincs/nqtr';
|
|
4
|
-
|
|
5
|
-
interface NavigationAbstractInterface extends StoredClassModel {
|
|
6
|
-
/**
|
|
7
|
-
* Connects the activity to the class.
|
|
8
|
-
* @param activity The activity to connect to the class.
|
|
9
|
-
* @param options
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
addActivity(activity: ActivityInterface, options?: {
|
|
13
|
-
/**
|
|
14
|
-
* the activity will be associated with this class only for the specified hours.
|
|
15
|
-
* If you set from 3 and to 5, the activity will be associated with this class only for hours 3, 4 and 5. soSo at 2 or 6 it will not be associated with this class.
|
|
16
|
-
*/
|
|
17
|
-
hours?: {
|
|
18
|
-
from: number;
|
|
19
|
-
to: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* the activity will be associated with this class from the specified day.
|
|
23
|
-
* If you set 3, the activity will be associated with this class from day 3. So at day 2 it will not be associated with this class.
|
|
24
|
-
*/
|
|
25
|
-
fromDay?: number;
|
|
26
|
-
/**
|
|
27
|
-
* the activity will be associated with this class to the specified day.
|
|
28
|
-
* If you set 3, the activity will be associated with this class until day 3. So at day 4 it will not be associated with this class.
|
|
29
|
-
*/
|
|
30
|
-
toDay?: number;
|
|
31
|
-
}): void;
|
|
32
|
-
/**
|
|
33
|
-
* Disconnects the activity from the class.
|
|
34
|
-
* @param activity The activity to disconnect from the class.
|
|
35
|
-
* @param options
|
|
36
|
-
*/
|
|
37
|
-
removeActivity(activity: ActivityInterface, options?: {
|
|
38
|
-
/**
|
|
39
|
-
* The activity will be excluded from this class only for the specified days.
|
|
40
|
-
* If to 3, the activity will be excluded from this class only for days 1, 2 and 3. So at day 4 it will be associated with this class.
|
|
41
|
-
*/
|
|
42
|
-
toDay?: number;
|
|
43
|
-
}): void;
|
|
44
|
-
/**
|
|
45
|
-
* Removes the useless activities.
|
|
46
|
-
*/
|
|
47
|
-
clearExpiredActivities(): void;
|
|
48
|
-
/**
|
|
49
|
-
* The activities associated with this class.
|
|
50
|
-
*/
|
|
51
|
-
activities: ActivityInterface[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type { NavigationAbstractInterface as default };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { StoredClassModel } from '@drincs/pixi-vn';
|
|
2
|
-
import ActivityInterface from '../ActivityInterface.js';
|
|
3
|
-
import '@drincs/nqtr';
|
|
4
|
-
|
|
5
|
-
interface NavigationAbstractInterface extends StoredClassModel {
|
|
6
|
-
/**
|
|
7
|
-
* Connects the activity to the class.
|
|
8
|
-
* @param activity The activity to connect to the class.
|
|
9
|
-
* @param options
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
addActivity(activity: ActivityInterface, options?: {
|
|
13
|
-
/**
|
|
14
|
-
* the activity will be associated with this class only for the specified hours.
|
|
15
|
-
* If you set from 3 and to 5, the activity will be associated with this class only for hours 3, 4 and 5. soSo at 2 or 6 it will not be associated with this class.
|
|
16
|
-
*/
|
|
17
|
-
hours?: {
|
|
18
|
-
from: number;
|
|
19
|
-
to: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* the activity will be associated with this class from the specified day.
|
|
23
|
-
* If you set 3, the activity will be associated with this class from day 3. So at day 2 it will not be associated with this class.
|
|
24
|
-
*/
|
|
25
|
-
fromDay?: number;
|
|
26
|
-
/**
|
|
27
|
-
* the activity will be associated with this class to the specified day.
|
|
28
|
-
* If you set 3, the activity will be associated with this class until day 3. So at day 4 it will not be associated with this class.
|
|
29
|
-
*/
|
|
30
|
-
toDay?: number;
|
|
31
|
-
}): void;
|
|
32
|
-
/**
|
|
33
|
-
* Disconnects the activity from the class.
|
|
34
|
-
* @param activity The activity to disconnect from the class.
|
|
35
|
-
* @param options
|
|
36
|
-
*/
|
|
37
|
-
removeActivity(activity: ActivityInterface, options?: {
|
|
38
|
-
/**
|
|
39
|
-
* The activity will be excluded from this class only for the specified days.
|
|
40
|
-
* If to 3, the activity will be excluded from this class only for days 1, 2 and 3. So at day 4 it will be associated with this class.
|
|
41
|
-
*/
|
|
42
|
-
toDay?: number;
|
|
43
|
-
}): void;
|
|
44
|
-
/**
|
|
45
|
-
* Removes the useless activities.
|
|
46
|
-
*/
|
|
47
|
-
clearExpiredActivities(): void;
|
|
48
|
-
/**
|
|
49
|
-
* The activities associated with this class.
|
|
50
|
-
*/
|
|
51
|
-
activities: ActivityInterface[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type { NavigationAbstractInterface as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"NavigationAbstractClass.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"NavigationAbstractClass.mjs"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import ActivityInterface from '../ActivityInterface.mjs';
|
|
2
|
-
import '@drincs/nqtr';
|
|
3
|
-
|
|
4
|
-
interface RoomBaseModelProps {
|
|
5
|
-
/**
|
|
6
|
-
* The name
|
|
7
|
-
* @default ""
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The image of the room.
|
|
12
|
-
* @default undefined
|
|
13
|
-
*/
|
|
14
|
-
image?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The activities that are available in this room.
|
|
17
|
-
* @default []
|
|
18
|
-
*/
|
|
19
|
-
activities?: ActivityInterface[];
|
|
20
|
-
/**
|
|
21
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean | string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
hidden?: boolean | string;
|
|
30
|
-
/**
|
|
31
|
-
* The icon of the room.
|
|
32
|
-
* @default undefined
|
|
33
|
-
*/
|
|
34
|
-
icon?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type { RoomBaseModelProps as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import ActivityInterface from '../ActivityInterface.js';
|
|
2
|
-
import '@drincs/nqtr';
|
|
3
|
-
|
|
4
|
-
interface RoomBaseModelProps {
|
|
5
|
-
/**
|
|
6
|
-
* The name
|
|
7
|
-
* @default ""
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The image of the room.
|
|
12
|
-
* @default undefined
|
|
13
|
-
*/
|
|
14
|
-
image?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The activities that are available in this room.
|
|
17
|
-
* @default []
|
|
18
|
-
*/
|
|
19
|
-
activities?: ActivityInterface[];
|
|
20
|
-
/**
|
|
21
|
-
* Whether is disabled. You can also pass a Pixi'VN flag name.
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean | string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether is hidden. You can also pass a Pixi'VN flag name.
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
hidden?: boolean | string;
|
|
30
|
-
/**
|
|
31
|
-
* The icon of the room.
|
|
32
|
-
* @default undefined
|
|
33
|
-
*/
|
|
34
|
-
icon?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type { RoomBaseModelProps as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"RoomBaseModelProps.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"RoomBaseModelProps.mjs"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '@drincs/nqtr';
|
|
2
|
-
import '@drincs/pixi-vn';
|
|
3
|
-
export { d as RoomBaseInternalInterface, R as default } from '../../RoomInterface-DURfkQ7u.mjs';
|
|
4
|
-
import './NavigationAbstractClass.mjs';
|
|
5
|
-
import '../ActivityInterface.mjs';
|
|
6
|
-
import '../../types/ExecutionType.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"RoomInterface.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"RoomInterface.mjs"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"QuestInterface.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"QuestInterface.mjs"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OnRunProps } from '@drincs/nqtr';
|
|
2
|
-
import { Q as QuestInterface } from '../../StageInterface-DX74DUxG.mjs';
|
|
3
|
-
|
|
4
|
-
interface QuestProps {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the quest.
|
|
7
|
-
* @default ""
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The description of the quest.
|
|
12
|
-
* @default ""
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The icon of the quest.
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
19
|
-
icon?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The image of the quest.
|
|
22
|
-
*/
|
|
23
|
-
image?: string;
|
|
24
|
-
/**
|
|
25
|
-
* If the quest is in development.
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
inDevelopment?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The function that will be executed when the quest starts.
|
|
31
|
-
*/
|
|
32
|
-
onStart?: (quest: QuestInterface, props: OnRunProps) => void;
|
|
33
|
-
/**
|
|
34
|
-
* The function that will be executed when a stage end in the quest.
|
|
35
|
-
*/
|
|
36
|
-
onNextStage?: (quest: QuestInterface, props: OnRunProps) => void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type { QuestProps as default };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OnRunProps } from '@drincs/nqtr';
|
|
2
|
-
import { Q as QuestInterface } from '../../StageInterface-DX74DUxG.js';
|
|
3
|
-
|
|
4
|
-
interface QuestProps {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the quest.
|
|
7
|
-
* @default ""
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The description of the quest.
|
|
12
|
-
* @default ""
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The icon of the quest.
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
19
|
-
icon?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The image of the quest.
|
|
22
|
-
*/
|
|
23
|
-
image?: string;
|
|
24
|
-
/**
|
|
25
|
-
* If the quest is in development.
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
inDevelopment?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The function that will be executed when the quest starts.
|
|
31
|
-
*/
|
|
32
|
-
onStart?: (quest: QuestInterface, props: OnRunProps) => void;
|
|
33
|
-
/**
|
|
34
|
-
* The function that will be executed when a stage end in the quest.
|
|
35
|
-
*/
|
|
36
|
-
onNextStage?: (quest: QuestInterface, props: OnRunProps) => void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type { QuestProps as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"QuestProps.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"QuestProps.mjs"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageFlags.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageFlags.mjs"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageInterface.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageInterface.mjs"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { OnRunProps } from '@drincs/nqtr';
|
|
2
|
-
import { a as QuestsRequiredType, S as StageInterface } from '../../StageInterface-DX74DUxG.mjs';
|
|
3
|
-
import StageFlags from './StageFlags.mjs';
|
|
4
|
-
|
|
5
|
-
interface StageProps {
|
|
6
|
-
/**
|
|
7
|
-
* The flags of the stage.
|
|
8
|
-
* @default []
|
|
9
|
-
*/
|
|
10
|
-
flags?: StageFlags[];
|
|
11
|
-
/**
|
|
12
|
-
* The name of the stage.
|
|
13
|
-
* @default ""
|
|
14
|
-
*/
|
|
15
|
-
name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The description of the stage.
|
|
18
|
-
* @default ""
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The advice description of the stage.
|
|
23
|
-
* @default ""
|
|
24
|
-
*/
|
|
25
|
-
adviceDescription?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The image of the stage.
|
|
28
|
-
*/
|
|
29
|
-
image?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The day required to start the stage.
|
|
32
|
-
* @example If the value is 3, and the previous stage ends on day 1, the stage will start on day 4.
|
|
33
|
-
*/
|
|
34
|
-
daysRequiredToStart?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The flags required to start the stage.
|
|
37
|
-
* @default []
|
|
38
|
-
*/
|
|
39
|
-
flagsRequiredToStart?: StageFlags[];
|
|
40
|
-
/**
|
|
41
|
-
* The quests required to start the stage.
|
|
42
|
-
* @default []
|
|
43
|
-
*/
|
|
44
|
-
questsRequiredToStart?: QuestsRequiredType[];
|
|
45
|
-
/**
|
|
46
|
-
* The description to request to start the stage.
|
|
47
|
-
* @default ""
|
|
48
|
-
*/
|
|
49
|
-
requestDescriptionToStart?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The function that will be executed when the stage starts.
|
|
52
|
-
*/
|
|
53
|
-
onStart?: (stage: StageInterface, props: OnRunProps) => void;
|
|
54
|
-
/**
|
|
55
|
-
* The function that will be executed when the stage ends.
|
|
56
|
-
*/
|
|
57
|
-
onEnd?: (stage: StageInterface, props: OnRunProps) => void;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type { StageProps as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { OnRunProps } from '@drincs/nqtr';
|
|
2
|
-
import { a as QuestsRequiredType, S as StageInterface } from '../../StageInterface-DX74DUxG.js';
|
|
3
|
-
import StageFlags from './StageFlags.js';
|
|
4
|
-
|
|
5
|
-
interface StageProps {
|
|
6
|
-
/**
|
|
7
|
-
* The flags of the stage.
|
|
8
|
-
* @default []
|
|
9
|
-
*/
|
|
10
|
-
flags?: StageFlags[];
|
|
11
|
-
/**
|
|
12
|
-
* The name of the stage.
|
|
13
|
-
* @default ""
|
|
14
|
-
*/
|
|
15
|
-
name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The description of the stage.
|
|
18
|
-
* @default ""
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The advice description of the stage.
|
|
23
|
-
* @default ""
|
|
24
|
-
*/
|
|
25
|
-
adviceDescription?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The image of the stage.
|
|
28
|
-
*/
|
|
29
|
-
image?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The day required to start the stage.
|
|
32
|
-
* @example If the value is 3, and the previous stage ends on day 1, the stage will start on day 4.
|
|
33
|
-
*/
|
|
34
|
-
daysRequiredToStart?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The flags required to start the stage.
|
|
37
|
-
* @default []
|
|
38
|
-
*/
|
|
39
|
-
flagsRequiredToStart?: StageFlags[];
|
|
40
|
-
/**
|
|
41
|
-
* The quests required to start the stage.
|
|
42
|
-
* @default []
|
|
43
|
-
*/
|
|
44
|
-
questsRequiredToStart?: QuestsRequiredType[];
|
|
45
|
-
/**
|
|
46
|
-
* The description to request to start the stage.
|
|
47
|
-
* @default ""
|
|
48
|
-
*/
|
|
49
|
-
requestDescriptionToStart?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The function that will be executed when the stage starts.
|
|
52
|
-
*/
|
|
53
|
-
onStart?: (stage: StageInterface, props: OnRunProps) => void;
|
|
54
|
-
/**
|
|
55
|
-
* The function that will be executed when the stage ends.
|
|
56
|
-
*/
|
|
57
|
-
onEnd?: (stage: StageInterface, props: OnRunProps) => void;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type { StageProps as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageProps.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StageProps.mjs"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { R as RoomInterface, L as LocationInterface, M as MapInterface } from '../RoomInterface-DURfkQ7u.mjs';
|
|
2
|
-
import '@drincs/nqtr';
|
|
3
|
-
import '@drincs/pixi-vn';
|
|
4
|
-
import '../interface/ActivityInterface.mjs';
|
|
5
|
-
import '../types/ExecutionType.mjs';
|
|
6
|
-
import '../interface/navigation/NavigationAbstractClass.mjs';
|
|
7
|
-
|
|
8
|
-
declare class NavigatorManager {
|
|
9
|
-
get rooms(): RoomInterface[];
|
|
10
|
-
get locations(): LocationInterface[];
|
|
11
|
-
get maps(): MapInterface[];
|
|
12
|
-
get currentRoom(): RoomInterface | undefined;
|
|
13
|
-
set currentRoom(room: RoomInterface | string);
|
|
14
|
-
get currentLocation(): LocationInterface | undefined;
|
|
15
|
-
get currentMap(): MapInterface | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Clear all the expired activities.
|
|
18
|
-
*/
|
|
19
|
-
clearExpiredActivities(): void;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { NavigatorManager as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { R as RoomInterface, L as LocationInterface, M as MapInterface } from '../RoomInterface-CdAM_q7P.js';
|
|
2
|
-
import '@drincs/nqtr';
|
|
3
|
-
import '@drincs/pixi-vn';
|
|
4
|
-
import '../interface/ActivityInterface.js';
|
|
5
|
-
import '../types/ExecutionType.js';
|
|
6
|
-
import '../interface/navigation/NavigationAbstractClass.js';
|
|
7
|
-
|
|
8
|
-
declare class NavigatorManager {
|
|
9
|
-
get rooms(): RoomInterface[];
|
|
10
|
-
get locations(): LocationInterface[];
|
|
11
|
-
get maps(): MapInterface[];
|
|
12
|
-
get currentRoom(): RoomInterface | undefined;
|
|
13
|
-
set currentRoom(room: RoomInterface | string);
|
|
14
|
-
get currentLocation(): LocationInterface | undefined;
|
|
15
|
-
get currentMap(): MapInterface | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Clear all the expired activities.
|
|
18
|
-
*/
|
|
19
|
-
clearExpiredActivities(): void;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { NavigatorManager as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var pixiVn=require('@drincs/pixi-vn');var t={};function n(o){try{let e=t[o];if(!e){console.error(`[NQTR] Room ${o} not found`);return}return e}catch(e){console.error(`[NQTR] Error while getting Room ${o}`,e);return}}var a="___nqtr-current_room_memory___",i=class{get rooms(){return Object.values(t)}get locations(){let e={};return Object.values(t).forEach(r=>{e[r.location.id]=r.location;}),Object.values(e)}get maps(){let e={};return Object.values(t).forEach(r=>{e[r.location.map.id]=r.location.map;}),Object.values(e)}get currentRoom(){let e=pixiVn.storage.getVariable(a);if(!e){console.error("[NQTR] The current room has not yet been set");return}let r=n(e);if(!r){console.error(`[NQTR] Current room ${e} not found`);return}return r}set currentRoom(e){if(typeof e!="string"&&(e=e.id),!n(e)){console.error(`[NQTR] The room ${e} is not registered, so it can't be set as current room`);return}pixiVn.storage.setVariable(a,e);}get currentLocation(){return this.currentRoom?.location}get currentMap(){return this.currentRoom?.location.map}clearExpiredActivities(){Object.entries(t).forEach(([e,r])=>{r.clearExpiredActivities();});}};module.exports=i;//# sourceMappingURL=NavigatorManager.js.map
|
|
2
|
-
//# sourceMappingURL=NavigatorManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/decorators/RoomDecorator.ts","../../src/managers/NavigatorManager.ts"],"names":["registeredRooms","getRoomById","id","room","CURRENT_ROOM_MEMORY_KEY","NavigatorManager","result","roomId","storage","_"],"mappings":"mDAEO,IAAMA,CAAAA,CAAmD,EA2BzD,CAAA,SAASC,CAAYC,CAAAA,CAAAA,CAAuC,CAClE,GAAI,CACH,IAAIC,CAAAA,CAAOH,CAAgBE,CAAAA,CAAE,CAC7B,CAAA,GAAI,CAACC,CAAM,CAAA,CACV,OAAQ,CAAA,KAAA,CAAM,CAAeD,YAAAA,EAAAA,CAAE,YAAY,CAC3C,CAAA,MACD,CACA,OAAOC,CACR,CAAA,MAAS,EAAG,CACX,OAAA,CAAQ,KAAM,CAAA,CAAA,gCAAA,EAAmCD,CAAE,CAAA,CAAA,CAAI,CAAC,CACxD,CAAA,MACD,CACD,CCrCME,IAAAA,CAAAA,CAA0B,iCACXC,CAArB,CAAA,KAAsC,CAClC,IAAI,KAAQ,EAAA,CACR,OAAO,MAAO,CAAA,MAAA,CAAOL,CAAe,CACxC,CACA,IAAI,WAAY,CACZ,IAAIM,CAA8C,CAAA,EAClD,CAAA,OAAA,MAAA,CAAO,OAAON,CAAe,CAAA,CAAE,OAASG,CAAAA,CAAAA,EAAS,CAC7CG,CAAAA,CAAOH,EAAK,QAAS,CAAA,EAAE,CAAIA,CAAAA,CAAAA,CAAK,SACpC,CAAC,EACM,MAAO,CAAA,MAAA,CAAOG,CAAM,CAC/B,CACA,IAAI,MAAO,CACP,IAAIA,CAAyC,CAAA,EAC7C,CAAA,OAAA,MAAA,CAAO,OAAON,CAAe,CAAA,CAAE,OAASG,CAAAA,CAAAA,EAAS,CAC7CG,CAAAA,CAAOH,CAAK,CAAA,QAAA,CAAS,GAAI,CAAA,EAAE,CAAIA,CAAAA,CAAAA,CAAK,QAAS,CAAA,IACjD,CAAC,CACM,CAAA,MAAA,CAAO,MAAOG,CAAAA,CAAM,CAC/B,CACA,IAAI,WAAyC,EAAA,CACzC,IAAIC,CAAAA,CAASC,cAAQ,CAAA,WAAA,CAAoBJ,CAAuB,CAChE,CAAA,GAAI,CAACG,CAAAA,CAAQ,CACT,OAAA,CAAQ,MAAM,8CAA8C,CAAA,CAC5D,MACJ,CACA,IAAIJ,CAAAA,CAAOF,EAAYM,CAAM,CAAA,CAC7B,GAAI,CAACJ,CAAM,CAAA,CACP,QAAQ,KAAM,CAAA,CAAA,oBAAA,EAAuBI,CAAM,CAAA,UAAA,CAAY,CACvD,CAAA,MACJ,CACA,OAAOJ,CACX,CACA,IAAI,WAAYA,CAAAA,CAAAA,CAA8B,CAK1C,GAJI,OAAOA,CAAS,EAAA,QAAA,GAChBA,CAAOA,CAAAA,CAAAA,CAAK,IAGZ,CADkBF,CAAAA,CAAYE,CAAI,CAAA,CAChB,CAClB,OAAA,CAAQ,MAAM,CAAmBA,gBAAAA,EAAAA,CAAI,CAAwD,sDAAA,CAAA,CAAA,CAC7F,MACJ,CACAK,eAAQ,WAAYJ,CAAAA,CAAAA,CAAyBD,CAAI,EACrD,CACA,IAAI,iBAAiD,CACjD,OAAO,IAAK,CAAA,WAAA,EAAa,QAC7B,CACA,IAAI,UAAuC,EAAA,CACvC,OAAO,IAAA,CAAK,WAAa,EAAA,QAAA,CAAS,GACtC,CAIA,sBAAA,EAAyB,CACrB,MAAA,CAAO,OAAQH,CAAAA,CAAe,EAAE,OAAQ,CAAA,CAAC,CAACS,CAAAA,CAAGN,CAAI,CAAA,GAAM,CACnDA,CAAAA,CAAK,sBAAuB,GAChC,CAAC,EACL,CACJ","file":"NavigatorManager.js","sourcesContent":["import { RoomInterface } from \"../interface\";\n\nexport const registeredRooms: { [id: string]: RoomInterface } = {};\n\n/**\n * Save a room in the registered rooms. If the room already exists, it will be overwritten.\n * @param room The room to save.\n * @returns\n * @example\n * ```ts\n * saveRoom([mcRoom, aliceRoom, annRoom, bathroom, lounge, terrace, gymRoom]);\n * ```\n */\nexport function saveRoom(room: RoomInterface | RoomInterface[]) {\n\tif (Array.isArray(room)) {\n\t\troom.forEach((c) => saveRoom(c));\n\t\treturn;\n\t}\n\tif (registeredRooms[room.id]) {\n\t\tconsole.warn(`[NQTR] Room id ${room.id} already exists, it will be overwritten`);\n\t}\n\tregisteredRooms[room.id] = room;\n}\n\n/**\n * Get a room by its id.\n * @param id The id of the room.\n * @returns The room or undefined if not found.\n */\nexport function getRoomById(id: string): RoomInterface | undefined {\n\ttry {\n\t\tlet room = registeredRooms[id];\n\t\tif (!room) {\n\t\t\tconsole.error(`[NQTR] Room ${id} not found`);\n\t\t\treturn;\n\t\t}\n\t\treturn room;\n\t} catch (e) {\n\t\tconsole.error(`[NQTR] Error while getting Room ${id}`, e);\n\t\treturn;\n\t}\n}\n","import { storage } from \"@drincs/pixi-vn\";\nimport { getRoomById, registeredRooms } from \"../decorators/RoomDecorator\";\nimport { LocationInterface, MapInterface, RoomInterface } from \"../interface\";\n\nconst CURRENT_ROOM_MEMORY_KEY = \"___nqtr-current_room_memory___\";\nexport default class NavigatorManager {\n get rooms() {\n return Object.values(registeredRooms);\n }\n get locations() {\n let result: { [id: string]: LocationInterface } = {};\n Object.values(registeredRooms).forEach((room) => {\n result[room.location.id] = room.location;\n });\n return Object.values(result);\n }\n get maps() {\n let result: { [id: string]: MapInterface } = {};\n Object.values(registeredRooms).forEach((room) => {\n result[room.location.map.id] = room.location.map;\n });\n return Object.values(result);\n }\n get currentRoom(): RoomInterface | undefined {\n let roomId = storage.getVariable<string>(CURRENT_ROOM_MEMORY_KEY);\n if (!roomId) {\n console.error(`[NQTR] The current room has not yet been set`);\n return;\n }\n let room = getRoomById(roomId);\n if (!room) {\n console.error(`[NQTR] Current room ${roomId} not found`);\n return;\n }\n return room;\n }\n set currentRoom(room: RoomInterface | string) {\n if (typeof room !== \"string\") {\n room = room.id;\n }\n let roomRegistrated = getRoomById(room);\n if (!roomRegistrated) {\n console.error(`[NQTR] The room ${room} is not registered, so it can't be set as current room`);\n return;\n }\n storage.setVariable(CURRENT_ROOM_MEMORY_KEY, room);\n }\n get currentLocation(): LocationInterface | undefined {\n return this.currentRoom?.location;\n }\n get currentMap(): MapInterface | undefined {\n return this.currentRoom?.location.map;\n }\n /**\n * Clear all the expired activities.\n */\n clearExpiredActivities() {\n Object.entries(registeredRooms).forEach(([_, room]) => {\n room.clearExpiredActivities();\n });\n }\n}\n"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {storage}from'@drincs/pixi-vn';var t={};function n(o){try{let e=t[o];if(!e){console.error(`[NQTR] Room ${o} not found`);return}return e}catch(e){console.error(`[NQTR] Error while getting Room ${o}`,e);return}}var a="___nqtr-current_room_memory___",i=class{get rooms(){return Object.values(t)}get locations(){let e={};return Object.values(t).forEach(r=>{e[r.location.id]=r.location;}),Object.values(e)}get maps(){let e={};return Object.values(t).forEach(r=>{e[r.location.map.id]=r.location.map;}),Object.values(e)}get currentRoom(){let e=storage.getVariable(a);if(!e){console.error("[NQTR] The current room has not yet been set");return}let r=n(e);if(!r){console.error(`[NQTR] Current room ${e} not found`);return}return r}set currentRoom(e){if(typeof e!="string"&&(e=e.id),!n(e)){console.error(`[NQTR] The room ${e} is not registered, so it can't be set as current room`);return}storage.setVariable(a,e);}get currentLocation(){return this.currentRoom?.location}get currentMap(){return this.currentRoom?.location.map}clearExpiredActivities(){Object.entries(t).forEach(([e,r])=>{r.clearExpiredActivities();});}};export{i as default};//# sourceMappingURL=NavigatorManager.mjs.map
|
|
2
|
-
//# sourceMappingURL=NavigatorManager.mjs.map
|