@drincs/nqtr 0.2.13 → 0.3.0

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.
Files changed (449) hide show
  1. package/dist/RoomInterface-C7Sg80EF.d.mts +79 -0
  2. package/dist/RoomInterface-D7qXKwBI.d.ts +79 -0
  3. package/dist/StageInterface-DmLgfrk4.d.mts +162 -0
  4. package/dist/StageInterface-DmLgfrk4.d.ts +162 -0
  5. package/dist/classes/ActivityBaseModel.d.mts +63 -0
  6. package/dist/classes/ActivityBaseModel.d.ts +63 -0
  7. package/dist/classes/ActivityBaseModel.js +2 -0
  8. package/dist/classes/ActivityBaseModel.js.map +1 -0
  9. package/dist/classes/ActivityBaseModel.mjs +2 -0
  10. package/dist/classes/ActivityBaseModel.mjs.map +1 -0
  11. package/dist/classes/ActivityStoredClass.d.mts +27 -0
  12. package/dist/classes/ActivityStoredClass.d.ts +27 -0
  13. package/dist/classes/ActivityStoredClass.js +2 -0
  14. package/dist/classes/ActivityStoredClass.js.map +1 -0
  15. package/dist/classes/ActivityStoredClass.mjs +2 -0
  16. package/dist/classes/ActivityStoredClass.mjs.map +1 -0
  17. package/dist/classes/CommitmentBaseModel.d.mts +65 -0
  18. package/dist/classes/CommitmentBaseModel.d.ts +65 -0
  19. package/dist/classes/CommitmentBaseModel.js +2 -0
  20. package/dist/classes/CommitmentBaseModel.js.map +1 -0
  21. package/dist/classes/CommitmentBaseModel.mjs +2 -0
  22. package/dist/classes/CommitmentBaseModel.mjs.map +1 -0
  23. package/dist/classes/CommitmentStoredClass.d.mts +29 -0
  24. package/dist/classes/CommitmentStoredClass.d.ts +29 -0
  25. package/dist/classes/CommitmentStoredClass.js +2 -0
  26. package/dist/classes/CommitmentStoredClass.js.map +1 -0
  27. package/dist/classes/CommitmentStoredClass.mjs +2 -0
  28. package/dist/classes/CommitmentStoredClass.mjs.map +1 -0
  29. package/dist/classes/index.d.mts +27 -8
  30. package/dist/classes/index.d.ts +27 -8
  31. package/dist/classes/index.js +1 -1
  32. package/dist/classes/index.js.map +1 -1
  33. package/dist/classes/index.mjs +1 -1
  34. package/dist/classes/index.mjs.map +1 -1
  35. package/dist/classes/navigation/LocationBaseModel.d.mts +54 -0
  36. package/dist/classes/navigation/LocationBaseModel.d.ts +54 -0
  37. package/dist/classes/navigation/LocationBaseModel.js +2 -0
  38. package/dist/classes/navigation/LocationBaseModel.js.map +1 -0
  39. package/dist/classes/navigation/LocationBaseModel.mjs +2 -0
  40. package/dist/classes/navigation/LocationBaseModel.mjs.map +1 -0
  41. package/dist/classes/navigation/LocationStoredClass.d.mts +23 -0
  42. package/dist/classes/navigation/LocationStoredClass.d.ts +23 -0
  43. package/dist/classes/navigation/LocationStoredClass.js +2 -0
  44. package/dist/classes/navigation/LocationStoredClass.js.map +1 -0
  45. package/dist/classes/navigation/LocationStoredClass.mjs +2 -0
  46. package/dist/classes/navigation/LocationStoredClass.mjs.map +1 -0
  47. package/dist/classes/navigation/MapBaseModel.d.mts +41 -0
  48. package/dist/classes/navigation/MapBaseModel.d.ts +41 -0
  49. package/dist/classes/navigation/MapBaseModel.js +2 -0
  50. package/dist/classes/navigation/MapBaseModel.js.map +1 -0
  51. package/dist/classes/navigation/MapBaseModel.mjs +2 -0
  52. package/dist/classes/navigation/MapBaseModel.mjs.map +1 -0
  53. package/dist/classes/navigation/MapStoredClass.d.mts +14 -0
  54. package/dist/classes/navigation/MapStoredClass.d.ts +14 -0
  55. package/dist/classes/navigation/MapStoredClass.js +2 -0
  56. package/dist/classes/navigation/MapStoredClass.js.map +1 -0
  57. package/dist/classes/navigation/MapStoredClass.mjs +2 -0
  58. package/dist/classes/navigation/MapStoredClass.mjs.map +1 -0
  59. package/dist/classes/navigation/NavigationAbstractClass.d.mts +48 -0
  60. package/dist/classes/navigation/NavigationAbstractClass.d.ts +48 -0
  61. package/dist/classes/navigation/NavigationAbstractClass.js +2 -0
  62. package/dist/classes/navigation/NavigationAbstractClass.js.map +1 -0
  63. package/dist/classes/navigation/NavigationAbstractClass.mjs +2 -0
  64. package/dist/classes/navigation/NavigationAbstractClass.mjs.map +1 -0
  65. package/dist/classes/navigation/RoomBaseModel.d.mts +67 -0
  66. package/dist/classes/navigation/RoomBaseModel.d.ts +67 -0
  67. package/dist/classes/navigation/RoomBaseModel.js +2 -0
  68. package/dist/classes/navigation/RoomBaseModel.js.map +1 -0
  69. package/dist/classes/navigation/RoomBaseModel.mjs +2 -0
  70. package/dist/classes/navigation/RoomBaseModel.mjs.map +1 -0
  71. package/dist/classes/navigation/RoomStoredClass.d.mts +23 -0
  72. package/dist/classes/navigation/RoomStoredClass.d.ts +23 -0
  73. package/dist/classes/navigation/RoomStoredClass.js +2 -0
  74. package/dist/classes/navigation/RoomStoredClass.js.map +1 -0
  75. package/dist/classes/navigation/RoomStoredClass.mjs +2 -0
  76. package/dist/classes/navigation/RoomStoredClass.mjs.map +1 -0
  77. package/dist/classes/quest/QuestBaseModel.d.mts +36 -0
  78. package/dist/classes/quest/QuestBaseModel.d.ts +36 -0
  79. package/dist/classes/quest/QuestBaseModel.js +2 -0
  80. package/dist/classes/quest/QuestBaseModel.js.map +1 -0
  81. package/dist/classes/quest/QuestBaseModel.mjs +2 -0
  82. package/dist/classes/quest/QuestBaseModel.mjs.map +1 -0
  83. package/dist/classes/quest/QuestStoredClass.d.mts +37 -0
  84. package/dist/classes/quest/QuestStoredClass.d.ts +37 -0
  85. package/dist/classes/quest/QuestStoredClass.js +2 -0
  86. package/dist/classes/quest/QuestStoredClass.js.map +1 -0
  87. package/dist/classes/quest/QuestStoredClass.mjs +2 -0
  88. package/dist/classes/quest/QuestStoredClass.mjs.map +1 -0
  89. package/dist/classes/quest/StageBaseModel.d.mts +50 -0
  90. package/dist/classes/quest/StageBaseModel.d.ts +50 -0
  91. package/dist/classes/quest/StageBaseModel.js +2 -0
  92. package/dist/classes/quest/StageBaseModel.js.map +1 -0
  93. package/dist/classes/quest/StageBaseModel.mjs +2 -0
  94. package/dist/classes/quest/StageBaseModel.mjs.map +1 -0
  95. package/dist/classes/quest/StageStoredClass.d.mts +46 -0
  96. package/dist/classes/quest/StageStoredClass.d.ts +46 -0
  97. package/dist/classes/quest/StageStoredClass.js +2 -0
  98. package/dist/classes/quest/StageStoredClass.js.map +1 -0
  99. package/dist/classes/quest/StageStoredClass.mjs +2 -0
  100. package/dist/classes/quest/StageStoredClass.mjs.map +1 -0
  101. package/dist/decorators/ActivityDecorator.d.mts +5 -15
  102. package/dist/decorators/ActivityDecorator.d.ts +5 -15
  103. package/dist/decorators/ActivityDecorator.js +1 -1
  104. package/dist/decorators/ActivityDecorator.js.map +1 -1
  105. package/dist/decorators/ActivityDecorator.mjs +1 -1
  106. package/dist/decorators/ActivityDecorator.mjs.map +1 -1
  107. package/dist/decorators/CommitmentDecorator.d.mts +8 -36
  108. package/dist/decorators/CommitmentDecorator.d.ts +8 -36
  109. package/dist/decorators/CommitmentDecorator.js +1 -1
  110. package/dist/decorators/CommitmentDecorator.js.map +1 -1
  111. package/dist/decorators/CommitmentDecorator.mjs +1 -1
  112. package/dist/decorators/CommitmentDecorator.mjs.map +1 -1
  113. package/dist/decorators/QuestDecorator.d.mts +6 -16
  114. package/dist/decorators/QuestDecorator.d.ts +6 -16
  115. package/dist/decorators/QuestDecorator.js +1 -1
  116. package/dist/decorators/QuestDecorator.js.map +1 -1
  117. package/dist/decorators/QuestDecorator.mjs +1 -1
  118. package/dist/decorators/QuestDecorator.mjs.map +1 -1
  119. package/dist/decorators/RoomDecorator.d.mts +7 -31
  120. package/dist/decorators/RoomDecorator.d.ts +7 -31
  121. package/dist/decorators/RoomDecorator.js +1 -1
  122. package/dist/decorators/RoomDecorator.js.map +1 -1
  123. package/dist/decorators/RoomDecorator.mjs +1 -1
  124. package/dist/decorators/RoomDecorator.mjs.map +1 -1
  125. package/dist/decorators/index.d.mts +8 -13
  126. package/dist/decorators/index.d.ts +8 -13
  127. package/dist/decorators/index.js +1 -1
  128. package/dist/decorators/index.js.map +1 -1
  129. package/dist/decorators/index.mjs +1 -1
  130. package/dist/decorators/index.mjs.map +1 -1
  131. package/dist/functions/index.d.mts +2 -12
  132. package/dist/functions/index.d.ts +2 -12
  133. package/dist/functions/index.js +1 -1
  134. package/dist/functions/index.js.map +1 -1
  135. package/dist/functions/index.mjs +1 -1
  136. package/dist/functions/index.mjs.map +1 -1
  137. package/dist/index.d.mts +49 -47
  138. package/dist/index.d.ts +49 -47
  139. package/dist/index.js +1 -1
  140. package/dist/index.js.map +1 -1
  141. package/dist/index.mjs +1 -1
  142. package/dist/index.mjs.map +1 -1
  143. package/dist/interface/ActivityInterface.d.mts +40 -0
  144. package/dist/interface/ActivityInterface.d.ts +40 -0
  145. package/dist/interface/ActivityInterface.js +2 -0
  146. package/dist/interface/ActivityInterface.js.map +1 -0
  147. package/dist/interface/ActivityInterface.mjs +2 -0
  148. package/dist/interface/ActivityInterface.mjs.map +1 -0
  149. package/dist/interface/ActivityProps.d.mts +48 -3
  150. package/dist/interface/ActivityProps.d.ts +48 -3
  151. package/dist/interface/CommitmentInterface.d.mts +6 -0
  152. package/dist/interface/CommitmentInterface.d.ts +6 -0
  153. package/dist/interface/CommitmentInterface.js +2 -0
  154. package/dist/interface/CommitmentInterface.js.map +1 -0
  155. package/dist/interface/CommitmentInterface.mjs +2 -0
  156. package/dist/interface/CommitmentInterface.mjs.map +1 -0
  157. package/dist/interface/CommitmentProps.d.mts +77 -6
  158. package/dist/interface/CommitmentProps.d.ts +77 -6
  159. package/dist/interface/index.d.mts +12 -8
  160. package/dist/interface/index.d.ts +12 -8
  161. package/dist/interface/navigation/LocationBaseModelProps.d.mts +32 -0
  162. package/dist/interface/navigation/LocationBaseModelProps.d.ts +32 -0
  163. package/dist/interface/navigation/LocationBaseModelProps.js +2 -0
  164. package/dist/interface/navigation/LocationBaseModelProps.js.map +1 -0
  165. package/dist/interface/navigation/LocationBaseModelProps.mjs +2 -0
  166. package/dist/interface/navigation/LocationBaseModelProps.mjs.map +1 -0
  167. package/dist/interface/navigation/LocationInterface.d.mts +6 -0
  168. package/dist/interface/navigation/LocationInterface.d.ts +6 -0
  169. package/dist/interface/navigation/LocationInterface.js +2 -0
  170. package/dist/interface/navigation/{LocationProps.js.map → LocationInterface.js.map} +1 -1
  171. package/dist/interface/navigation/LocationInterface.mjs +2 -0
  172. package/dist/interface/navigation/LocationInterface.mjs.map +1 -0
  173. package/dist/interface/navigation/MapBaseModelProps.d.mts +22 -0
  174. package/dist/interface/navigation/MapBaseModelProps.d.ts +22 -0
  175. package/dist/interface/navigation/MapBaseModelProps.js +2 -0
  176. package/dist/interface/navigation/MapBaseModelProps.js.map +1 -0
  177. package/dist/interface/navigation/MapBaseModelProps.mjs +2 -0
  178. package/dist/interface/navigation/MapBaseModelProps.mjs.map +1 -0
  179. package/dist/interface/navigation/MapInterface.d.mts +6 -0
  180. package/dist/interface/navigation/MapInterface.d.ts +6 -0
  181. package/dist/interface/navigation/MapInterface.js +2 -0
  182. package/dist/interface/navigation/MapInterface.js.map +1 -0
  183. package/dist/interface/navigation/MapInterface.mjs +2 -0
  184. package/dist/interface/navigation/MapInterface.mjs.map +1 -0
  185. package/dist/interface/navigation/NavigationAbstractClass.d.mts +54 -0
  186. package/dist/interface/navigation/NavigationAbstractClass.d.ts +54 -0
  187. package/dist/interface/navigation/NavigationAbstractClass.js +2 -0
  188. package/dist/interface/navigation/NavigationAbstractClass.js.map +1 -0
  189. package/dist/interface/navigation/NavigationAbstractClass.mjs +2 -0
  190. package/dist/interface/navigation/NavigationAbstractClass.mjs.map +1 -0
  191. package/dist/interface/navigation/RoomBaseModelProps.d.mts +37 -0
  192. package/dist/interface/navigation/RoomBaseModelProps.d.ts +37 -0
  193. package/dist/interface/navigation/RoomBaseModelProps.js +2 -0
  194. package/dist/interface/navigation/RoomBaseModelProps.js.map +1 -0
  195. package/dist/interface/navigation/RoomBaseModelProps.mjs +2 -0
  196. package/dist/interface/navigation/RoomBaseModelProps.mjs.map +1 -0
  197. package/dist/interface/navigation/RoomInterface.d.mts +6 -0
  198. package/dist/interface/navigation/RoomInterface.d.ts +6 -0
  199. package/dist/interface/navigation/RoomInterface.js +2 -0
  200. package/dist/interface/navigation/RoomInterface.js.map +1 -0
  201. package/dist/interface/navigation/RoomInterface.mjs +2 -0
  202. package/dist/interface/navigation/RoomInterface.mjs.map +1 -0
  203. package/dist/interface/quest/QuestInterface.d.mts +2 -0
  204. package/dist/interface/quest/QuestInterface.d.ts +2 -0
  205. package/dist/interface/quest/QuestInterface.js +2 -0
  206. package/dist/interface/quest/QuestInterface.js.map +1 -0
  207. package/dist/interface/quest/QuestInterface.mjs +2 -0
  208. package/dist/interface/quest/QuestInterface.mjs.map +1 -0
  209. package/dist/interface/quest/QuestProps.d.mts +39 -6
  210. package/dist/interface/quest/QuestProps.d.ts +39 -6
  211. package/dist/interface/quest/StageInterface.d.mts +2 -0
  212. package/dist/interface/quest/StageInterface.d.ts +2 -0
  213. package/dist/interface/quest/StageInterface.js +2 -0
  214. package/dist/interface/quest/StageInterface.js.map +1 -0
  215. package/dist/interface/quest/StageInterface.mjs +2 -0
  216. package/dist/interface/quest/StageInterface.mjs.map +1 -0
  217. package/dist/interface/quest/StageProps.d.mts +60 -6
  218. package/dist/interface/quest/StageProps.d.ts +60 -6
  219. package/dist/managers/NavigatorManager.d.mts +22 -0
  220. package/dist/managers/NavigatorManager.d.ts +22 -0
  221. package/dist/managers/NavigatorManager.js +2 -0
  222. package/dist/managers/NavigatorManager.js.map +1 -0
  223. package/dist/managers/NavigatorManager.mjs +2 -0
  224. package/dist/managers/NavigatorManager.mjs.map +1 -0
  225. package/dist/managers/QuestManager.d.mts +17 -0
  226. package/dist/managers/QuestManager.d.ts +17 -0
  227. package/dist/managers/QuestManager.js +2 -0
  228. package/dist/managers/QuestManager.js.map +1 -0
  229. package/dist/managers/QuestManager.mjs +2 -0
  230. package/dist/managers/QuestManager.mjs.map +1 -0
  231. package/dist/managers/RoutineManager.d.mts +59 -0
  232. package/dist/managers/RoutineManager.d.ts +59 -0
  233. package/dist/managers/RoutineManager.js +2 -0
  234. package/dist/managers/RoutineManager.js.map +1 -0
  235. package/dist/managers/RoutineManager.mjs +2 -0
  236. package/dist/managers/RoutineManager.mjs.map +1 -0
  237. package/dist/managers/TimeManager.d.mts +2 -11
  238. package/dist/managers/TimeManager.d.ts +2 -11
  239. package/dist/managers/TimeManager.js +1 -1
  240. package/dist/managers/TimeManager.js.map +1 -1
  241. package/dist/managers/TimeManager.mjs +1 -1
  242. package/dist/managers/TimeManager.mjs.map +1 -1
  243. package/dist/managers/TimeManagerSettings.d.mts +13 -0
  244. package/dist/managers/TimeManagerSettings.d.ts +13 -0
  245. package/dist/managers/TimeManagerSettings.js +2 -0
  246. package/dist/managers/TimeManagerSettings.js.map +1 -0
  247. package/dist/managers/TimeManagerSettings.mjs +2 -0
  248. package/dist/managers/TimeManagerSettings.mjs.map +1 -0
  249. package/dist/managers/index.d.mts +14 -1
  250. package/dist/managers/index.d.ts +14 -1
  251. package/dist/managers/index.js +1 -1
  252. package/dist/managers/index.js.map +1 -1
  253. package/dist/managers/index.mjs +1 -1
  254. package/dist/managers/index.mjs.map +1 -1
  255. package/dist/override/ActivityInterface.d.mts +28 -0
  256. package/dist/override/ActivityInterface.d.ts +28 -0
  257. package/dist/override/ActivityInterface.js +2 -0
  258. package/dist/override/ActivityInterface.js.map +1 -0
  259. package/dist/override/ActivityInterface.mjs +2 -0
  260. package/dist/override/ActivityInterface.mjs.map +1 -0
  261. package/dist/override/CommitmentInterface.d.mts +24 -0
  262. package/dist/override/CommitmentInterface.d.ts +24 -0
  263. package/dist/override/CommitmentInterface.js +2 -0
  264. package/dist/override/CommitmentInterface.js.map +1 -0
  265. package/dist/override/CommitmentInterface.mjs +2 -0
  266. package/dist/override/CommitmentInterface.mjs.map +1 -0
  267. package/dist/override/LocationInterface.d.mts +29 -0
  268. package/dist/override/LocationInterface.d.ts +29 -0
  269. package/dist/override/LocationInterface.js +2 -0
  270. package/dist/{interface/navigation/LocationProps.mjs.map → override/LocationInterface.js.map} +1 -1
  271. package/dist/override/LocationInterface.mjs +2 -0
  272. package/dist/override/LocationInterface.mjs.map +1 -0
  273. package/dist/override/MapInterface.d.mts +12 -0
  274. package/dist/override/MapInterface.d.ts +12 -0
  275. package/dist/override/MapInterface.js +2 -0
  276. package/dist/override/MapInterface.js.map +1 -0
  277. package/dist/override/MapInterface.mjs +2 -0
  278. package/dist/override/MapInterface.mjs.map +1 -0
  279. package/dist/override/QuestInterface.d.mts +24 -0
  280. package/dist/override/QuestInterface.d.ts +24 -0
  281. package/dist/override/QuestInterface.js +2 -0
  282. package/dist/override/QuestInterface.js.map +1 -0
  283. package/dist/override/QuestInterface.mjs +2 -0
  284. package/dist/override/QuestInterface.mjs.map +1 -0
  285. package/dist/override/RoomInterface.d.mts +33 -0
  286. package/dist/override/RoomInterface.d.ts +33 -0
  287. package/dist/override/RoomInterface.js +2 -0
  288. package/dist/override/RoomInterface.js.map +1 -0
  289. package/dist/override/RoomInterface.mjs +2 -0
  290. package/dist/override/RoomInterface.mjs.map +1 -0
  291. package/dist/override/StageInterface.d.mts +34 -0
  292. package/dist/override/StageInterface.d.ts +34 -0
  293. package/dist/override/StageInterface.js +2 -0
  294. package/dist/override/StageInterface.js.map +1 -0
  295. package/dist/override/StageInterface.mjs +2 -0
  296. package/dist/override/StageInterface.mjs.map +1 -0
  297. package/dist/override/index.d.mts +8 -4
  298. package/dist/override/index.d.ts +8 -4
  299. package/dist/types/OnRunEvent.d.mts +8 -0
  300. package/dist/types/OnRunEvent.d.ts +8 -0
  301. package/dist/types/OnRunEvent.js +2 -0
  302. package/dist/types/{OnRunActivityEvent.js.map → OnRunEvent.js.map} +1 -1
  303. package/dist/types/OnRunEvent.mjs +2 -0
  304. package/dist/types/{OnRunActivityEvent.mjs.map → OnRunEvent.mjs.map} +1 -1
  305. package/dist/types/QuestsRequired.d.mts +1 -5
  306. package/dist/types/QuestsRequired.d.ts +1 -5
  307. package/dist/types/index.d.mts +1 -5
  308. package/dist/types/index.d.ts +1 -5
  309. package/package.json +3 -4
  310. package/dist/ActivityProps-LWY7Zucl.d.ts +0 -124
  311. package/dist/ActivityProps-WgXDAYbc.d.mts +0 -124
  312. package/dist/Commitment-BujJuTv8.d.mts +0 -586
  313. package/dist/Commitment-DFYAApxl.d.ts +0 -586
  314. package/dist/StageProps-CqgBUi3e.d.mts +0 -326
  315. package/dist/StageProps-DghO7WaT.d.ts +0 -326
  316. package/dist/classes/Activity.d.mts +0 -112
  317. package/dist/classes/Activity.d.ts +0 -112
  318. package/dist/classes/Activity.js +0 -2
  319. package/dist/classes/Activity.js.map +0 -1
  320. package/dist/classes/Activity.mjs +0 -2
  321. package/dist/classes/Activity.mjs.map +0 -1
  322. package/dist/classes/ActivityStoredAbstract.d.mts +0 -3
  323. package/dist/classes/ActivityStoredAbstract.d.ts +0 -3
  324. package/dist/classes/ActivityStoredAbstract.js +0 -2
  325. package/dist/classes/ActivityStoredAbstract.js.map +0 -1
  326. package/dist/classes/ActivityStoredAbstract.mjs +0 -2
  327. package/dist/classes/ActivityStoredAbstract.mjs.map +0 -1
  328. package/dist/classes/Commitment.d.mts +0 -8
  329. package/dist/classes/Commitment.d.ts +0 -8
  330. package/dist/classes/Commitment.js +0 -2
  331. package/dist/classes/Commitment.js.map +0 -1
  332. package/dist/classes/Commitment.mjs +0 -2
  333. package/dist/classes/Commitment.mjs.map +0 -1
  334. package/dist/classes/navigation/ActivityRoom.d.mts +0 -8
  335. package/dist/classes/navigation/ActivityRoom.d.ts +0 -8
  336. package/dist/classes/navigation/ActivityRoom.js +0 -2
  337. package/dist/classes/navigation/ActivityRoom.js.map +0 -1
  338. package/dist/classes/navigation/ActivityRoom.mjs +0 -2
  339. package/dist/classes/navigation/ActivityRoom.mjs.map +0 -1
  340. package/dist/classes/navigation/Location.d.mts +0 -8
  341. package/dist/classes/navigation/Location.d.ts +0 -8
  342. package/dist/classes/navigation/Location.js +0 -2
  343. package/dist/classes/navigation/Location.js.map +0 -1
  344. package/dist/classes/navigation/Location.mjs +0 -2
  345. package/dist/classes/navigation/Location.mjs.map +0 -1
  346. package/dist/classes/navigation/Map.d.mts +0 -8
  347. package/dist/classes/navigation/Map.d.ts +0 -8
  348. package/dist/classes/navigation/Map.js +0 -2
  349. package/dist/classes/navigation/Map.js.map +0 -1
  350. package/dist/classes/navigation/Map.mjs +0 -2
  351. package/dist/classes/navigation/Map.mjs.map +0 -1
  352. package/dist/classes/navigation/Room.d.mts +0 -8
  353. package/dist/classes/navigation/Room.d.ts +0 -8
  354. package/dist/classes/navigation/Room.js +0 -2
  355. package/dist/classes/navigation/Room.js.map +0 -1
  356. package/dist/classes/navigation/Room.mjs +0 -2
  357. package/dist/classes/navigation/Room.mjs.map +0 -1
  358. package/dist/classes/quest/Goal.d.mts +0 -46
  359. package/dist/classes/quest/Goal.d.ts +0 -46
  360. package/dist/classes/quest/Goal.js +0 -2
  361. package/dist/classes/quest/Goal.js.map +0 -1
  362. package/dist/classes/quest/Goal.mjs +0 -2
  363. package/dist/classes/quest/Goal.mjs.map +0 -1
  364. package/dist/classes/quest/Quest.d.mts +0 -6
  365. package/dist/classes/quest/Quest.d.ts +0 -6
  366. package/dist/classes/quest/Quest.js +0 -2
  367. package/dist/classes/quest/Quest.js.map +0 -1
  368. package/dist/classes/quest/Quest.mjs +0 -2
  369. package/dist/classes/quest/Quest.mjs.map +0 -1
  370. package/dist/classes/quest/Stage.d.mts +0 -6
  371. package/dist/classes/quest/Stage.d.ts +0 -6
  372. package/dist/classes/quest/Stage.js +0 -2
  373. package/dist/classes/quest/Stage.js.map +0 -1
  374. package/dist/classes/quest/Stage.mjs +0 -2
  375. package/dist/classes/quest/Stage.mjs.map +0 -1
  376. package/dist/functions/ActivityFunctions.d.mts +0 -20
  377. package/dist/functions/ActivityFunctions.d.ts +0 -20
  378. package/dist/functions/ActivityFunctions.js +0 -2
  379. package/dist/functions/ActivityFunctions.js.map +0 -1
  380. package/dist/functions/ActivityFunctions.mjs +0 -2
  381. package/dist/functions/ActivityFunctions.mjs.map +0 -1
  382. package/dist/functions/NavigationFunctions.d.mts +0 -32
  383. package/dist/functions/NavigationFunctions.d.ts +0 -32
  384. package/dist/functions/NavigationFunctions.js +0 -2
  385. package/dist/functions/NavigationFunctions.js.map +0 -1
  386. package/dist/functions/NavigationFunctions.mjs +0 -2
  387. package/dist/functions/NavigationFunctions.mjs.map +0 -1
  388. package/dist/functions/QuestFunctions.d.mts +0 -8
  389. package/dist/functions/QuestFunctions.d.ts +0 -8
  390. package/dist/functions/QuestFunctions.js +0 -2
  391. package/dist/functions/QuestFunctions.js.map +0 -1
  392. package/dist/functions/QuestFunctions.mjs +0 -2
  393. package/dist/functions/QuestFunctions.mjs.map +0 -1
  394. package/dist/functions/RoutineFunctions.d.mts +0 -36
  395. package/dist/functions/RoutineFunctions.d.ts +0 -36
  396. package/dist/functions/RoutineFunctions.js +0 -2
  397. package/dist/functions/RoutineFunctions.js.map +0 -1
  398. package/dist/functions/RoutineFunctions.mjs +0 -2
  399. package/dist/functions/RoutineFunctions.mjs.map +0 -1
  400. package/dist/interface/RoomActivityMemory.d.mts +0 -9
  401. package/dist/interface/RoomActivityMemory.d.ts +0 -9
  402. package/dist/interface/RoomActivityMemory.js +0 -2
  403. package/dist/interface/RoomActivityMemory.js.map +0 -1
  404. package/dist/interface/RoomActivityMemory.mjs +0 -2
  405. package/dist/interface/RoomActivityMemory.mjs.map +0 -1
  406. package/dist/interface/RoomProps.d.mts +0 -8
  407. package/dist/interface/RoomProps.d.ts +0 -8
  408. package/dist/interface/RoomProps.js +0 -2
  409. package/dist/interface/RoomProps.js.map +0 -1
  410. package/dist/interface/RoomProps.mjs +0 -2
  411. package/dist/interface/RoomProps.mjs.map +0 -1
  412. package/dist/interface/navigation/LocationProps.d.mts +0 -8
  413. package/dist/interface/navigation/LocationProps.d.ts +0 -8
  414. package/dist/interface/navigation/LocationProps.js +0 -2
  415. package/dist/interface/navigation/LocationProps.mjs +0 -2
  416. package/dist/interface/navigation/MapProps.d.mts +0 -8
  417. package/dist/interface/navigation/MapProps.d.ts +0 -8
  418. package/dist/interface/navigation/MapProps.js +0 -2
  419. package/dist/interface/navigation/MapProps.js.map +0 -1
  420. package/dist/interface/navigation/MapProps.mjs +0 -2
  421. package/dist/interface/navigation/MapProps.mjs.map +0 -1
  422. package/dist/interface/quest/GoalProps.d.mts +0 -19
  423. package/dist/interface/quest/GoalProps.d.ts +0 -19
  424. package/dist/interface/quest/GoalProps.js +0 -2
  425. package/dist/interface/quest/GoalProps.js.map +0 -1
  426. package/dist/interface/quest/GoalProps.mjs +0 -2
  427. package/dist/interface/quest/GoalProps.mjs.map +0 -1
  428. package/dist/override/GraphicItemType.d.mts +0 -17
  429. package/dist/override/GraphicItemType.d.ts +0 -17
  430. package/dist/override/GraphicItemType.js +0 -2
  431. package/dist/override/GraphicItemType.js.map +0 -1
  432. package/dist/override/GraphicItemType.mjs +0 -2
  433. package/dist/override/GraphicItemType.mjs.map +0 -1
  434. package/dist/override/NeighboringMapsInterface.d.mts +0 -21
  435. package/dist/override/NeighboringMapsInterface.d.ts +0 -21
  436. package/dist/override/NeighboringMapsInterface.js +0 -2
  437. package/dist/override/NeighboringMapsInterface.js.map +0 -1
  438. package/dist/override/NeighboringMapsInterface.mjs +0 -2
  439. package/dist/override/NeighboringMapsInterface.mjs.map +0 -1
  440. package/dist/types/OnRunActivityEvent.d.mts +0 -8
  441. package/dist/types/OnRunActivityEvent.d.ts +0 -8
  442. package/dist/types/OnRunActivityEvent.js +0 -2
  443. package/dist/types/OnRunActivityEvent.mjs +0 -2
  444. package/dist/types/OnRunCommitmentEvent.d.mts +0 -8
  445. package/dist/types/OnRunCommitmentEvent.d.ts +0 -8
  446. package/dist/types/OnRunCommitmentEvent.js +0 -2
  447. package/dist/types/OnRunCommitmentEvent.js.map +0 -1
  448. package/dist/types/OnRunCommitmentEvent.mjs +0 -2
  449. 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 { CharacterInterface, StoredClassModel } from '@drincs/pixi-vn';
3
- import { a as ActivityStoredAbstract, A as ActivityProps } from './ActivityProps-LWY7Zucl.js';
4
- import { OnRunActivityEvent } from './types/OnRunActivityEvent.js';
5
- import ActivityModel from './classes/Activity.js';
6
- import ExecutionType from './types/ExecutionType.js';
7
- import { OnRunCommitmentEvent } from './types/OnRunCommitmentEvent.js';
8
-
9
- interface CommitmentProps<TCharacter extends CharacterInterface = CharacterInterface, 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 timeTracker.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 timeTracker.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 CharacterInterface = CharacterInterface, 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, type CommitmentProps as C, type LocationProps as L, type MapProps as M, type RoomProps as R, CommitmentBaseModel as a, LocationBaseModel as b, MapBaseModel as c, RoomBaseModel as d, ROOM_CATEGORY as e };