qpremake 1.5.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.
Files changed (234) hide show
  1. package/README.md +184 -0
  2. package/lib/_localizationFiles/English.d.ts +2 -0
  3. package/lib/_localizationFiles/English.js +307 -0
  4. package/lib/_mods/parserModules/addSymbol.d.ts +7 -0
  5. package/lib/_mods/parserModules/addSymbol.js +18 -0
  6. package/lib/_mods/parserModules/expression.d.ts +7 -0
  7. package/lib/_mods/parserModules/expression.js +45 -0
  8. package/lib/_mods/parserModules/expression_parser.d.ts +143 -0
  9. package/lib/_mods/parserModules/expression_parser.js +728 -0
  10. package/lib/_mods/parserModules/img.d.ts +8 -0
  11. package/lib/_mods/parserModules/img.js +42 -0
  12. package/lib/_mods/parserModules/qpOriginal.d.ts +5 -0
  13. package/lib/_mods/parserModules/qpOriginal.js +27 -0
  14. package/lib/_mods/parserModules/sectionID.d.ts +13 -0
  15. package/lib/_mods/parserModules/sectionID.js +56 -0
  16. package/lib/_mods/parserModules/tags.d.ts +9 -0
  17. package/lib/_mods/parserModules/tags.js +29 -0
  18. package/lib/_mods/parserModules/uaddminus.d.ts +9 -0
  19. package/lib/_mods/parserModules/uaddminus.js +42 -0
  20. package/lib/_mods/parserModules/variantCheck.d.ts +10 -0
  21. package/lib/_mods/parserModules/variantCheck.js +53 -0
  22. package/lib/_queenSystem/handler/actionGenrator.d.ts +994 -0
  23. package/lib/_queenSystem/handler/actionGenrator.js +646 -0
  24. package/lib/_queenSystem/handler/actionInputGenerator.d.ts +95 -0
  25. package/lib/_queenSystem/handler/actionInputGenerator.js +373 -0
  26. package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +92 -0
  27. package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +341 -0
  28. package/lib/_queenSystem/handler/cardHandler.d.ts +20 -0
  29. package/lib/_queenSystem/handler/cardHandler.js +61 -0
  30. package/lib/_queenSystem/handler/effectGenerator.d.ts +1 -0
  31. package/lib/_queenSystem/handler/effectGenerator.js +127 -0
  32. package/lib/_queenSystem/handler/localizationHandler.d.ts +28 -0
  33. package/lib/_queenSystem/handler/localizationHandler.js +166 -0
  34. package/lib/_queenSystem/handler/modHandler.d.ts +10 -0
  35. package/lib/_queenSystem/handler/modHandler.js +36 -0
  36. package/lib/_queenSystem/handler/oldDataProcessor.d.ts +9 -0
  37. package/lib/_queenSystem/handler/oldDataProcessor.js +129 -0
  38. package/lib/_queenSystem/handler/registryHandler.d.ts +36 -0
  39. package/lib/_queenSystem/handler/registryHandler.js +63 -0
  40. package/lib/_queenSystem/handler/zoneHandler.d.ts +102 -0
  41. package/lib/_queenSystem/handler/zoneHandler.js +606 -0
  42. package/lib/_queenSystem/loader/loader_card.d.ts +20 -0
  43. package/lib/_queenSystem/loader/loader_card.js +124 -0
  44. package/lib/_queenSystem/loader/loader_effect.d.ts +27 -0
  45. package/lib/_queenSystem/loader/loader_effect.js +163 -0
  46. package/lib/_queenSystem/loader/loader_handler.d.ts +11 -0
  47. package/lib/_queenSystem/loader/loader_handler.js +24 -0
  48. package/lib/_queenSystem/loader/loader_localization.d.ts +11 -0
  49. package/lib/_queenSystem/loader/loader_localization.js +73 -0
  50. package/lib/_queenSystem/loader/loader_mod.d.ts +10 -0
  51. package/lib/_queenSystem/loader/loader_mod.js +72 -0
  52. package/lib/_queenSystem/loader/loader_subtype.d.ts +9 -0
  53. package/lib/_queenSystem/loader/loader_subtype.js +39 -0
  54. package/lib/_queenSystem/loader/loader_type.d.ts +9 -0
  55. package/lib/_queenSystem/loader/loader_type.js +39 -0
  56. package/lib/_queenSystem/loader/loader_zone.d.ts +14 -0
  57. package/lib/_queenSystem/loader/loader_zone.js +35 -0
  58. package/lib/_queenSystem/queenSystem.d.ts +127 -0
  59. package/lib/_queenSystem/queenSystem.js +996 -0
  60. package/lib/_queenSystem/renderer/rendererInterface.d.ts +9 -0
  61. package/lib/_queenSystem/renderer/rendererInterface.js +2 -0
  62. package/lib/data/actionRegistry.d.ts +56 -0
  63. package/lib/data/actionRegistry.js +60 -0
  64. package/lib/data/cardRegistry.d.ts +1162 -0
  65. package/lib/data/cardRegistry.js +716 -0
  66. package/lib/data/deckRegistry.d.ts +19 -0
  67. package/lib/data/deckRegistry.js +41 -0
  68. package/lib/data/effectRegistry.d.ts +465 -0
  69. package/lib/data/effectRegistry.js +151 -0
  70. package/lib/data/effectTypeRegistry.d.ts +14 -0
  71. package/lib/data/effectTypeRegistry.js +14 -0
  72. package/lib/data/operatorRegistry.d.ts +92 -0
  73. package/lib/data/operatorRegistry.js +82 -0
  74. package/lib/data/rarityRegistry.d.ts +28 -0
  75. package/lib/data/rarityRegistry.js +63 -0
  76. package/lib/data/registryRegistry.d.ts +10 -0
  77. package/lib/data/registryRegistry.js +14 -0
  78. package/lib/data/subtypeRegistry.d.ts +15 -0
  79. package/lib/data/subtypeRegistry.js +15 -0
  80. package/lib/data/systemRegistry.d.ts +253 -0
  81. package/lib/data/systemRegistry.js +56 -0
  82. package/lib/data/zoneRegistry.d.ts +43 -0
  83. package/lib/data/zoneRegistry.js +157 -0
  84. package/lib/effectTextParser/index.d.ts +42 -0
  85. package/lib/effectTextParser/index.js +316 -0
  86. package/lib/global/index.d.ts +8 -0
  87. package/lib/global/index.js +12 -0
  88. package/lib/index.d.ts +6344 -0
  89. package/lib/index.js +213 -0
  90. package/lib/specificEffects/e_cond.d.ts +11 -0
  91. package/lib/specificEffects/e_cond.js +36 -0
  92. package/lib/specificEffects/e_fruit.d.ts +3 -0
  93. package/lib/specificEffects/e_fruit.js +187 -0
  94. package/lib/specificEffects/e_generic.d.ts +191 -0
  95. package/lib/specificEffects/e_generic.js +662 -0
  96. package/lib/specificEffects/e_generic_cardTargetting.d.ts +38 -0
  97. package/lib/specificEffects/e_generic_cardTargetting.js +82 -0
  98. package/lib/specificEffects/e_generic_noneTargetting.d.ts +10 -0
  99. package/lib/specificEffects/e_generic_noneTargetting.js +26 -0
  100. package/lib/specificEffects/e_status.d.ts +80 -0
  101. package/lib/specificEffects/e_status.js +151 -0
  102. package/lib/specificEffects/e_test.d.ts +3 -0
  103. package/lib/specificEffects/e_test.js +21 -0
  104. package/lib/types/abstract/gameComponents/API.d.ts +19 -0
  105. package/lib/types/abstract/gameComponents/API.js +2 -0
  106. package/lib/types/abstract/gameComponents/card.d.ts +108 -0
  107. package/lib/types/abstract/gameComponents/card.js +771 -0
  108. package/lib/types/abstract/gameComponents/effect.d.ts +82 -0
  109. package/lib/types/abstract/gameComponents/effect.js +331 -0
  110. package/lib/types/abstract/gameComponents/effectSubtype.d.ts +22 -0
  111. package/lib/types/abstract/gameComponents/effectSubtype.js +40 -0
  112. package/lib/types/abstract/gameComponents/effectType.d.ts +11 -0
  113. package/lib/types/abstract/gameComponents/effectType.js +8 -0
  114. package/lib/types/abstract/gameComponents/settings.d.ts +80 -0
  115. package/lib/types/abstract/gameComponents/settings.js +68 -0
  116. package/lib/types/abstract/gameComponents/zone.d.ts +113 -0
  117. package/lib/types/abstract/gameComponents/zone.js +614 -0
  118. package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +18 -0
  119. package/lib/types/abstract/gameComponents/zone_gridBased.js +58 -0
  120. package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +13 -0
  121. package/lib/types/abstract/gameComponents/zone_stackBased.js +55 -0
  122. package/lib/types/abstract/generics/node.d.ts +23 -0
  123. package/lib/types/abstract/generics/node.js +46 -0
  124. package/lib/types/abstract/generics/position.d.ts +23 -0
  125. package/lib/types/abstract/generics/position.js +91 -0
  126. package/lib/types/abstract/generics/tree.d.ts +25 -0
  127. package/lib/types/abstract/generics/tree.js +153 -0
  128. package/lib/types/abstract/generics/universalResponse.d.ts +4 -0
  129. package/lib/types/abstract/generics/universalResponse.js +2 -0
  130. package/lib/types/abstract/generics/wraper.d.ts +21 -0
  131. package/lib/types/abstract/generics/wraper.js +56 -0
  132. package/lib/types/abstract/parser/component.d.ts +88 -0
  133. package/lib/types/abstract/parser/component.js +132 -0
  134. package/lib/types/abstract/parser/index.d.ts +6 -0
  135. package/lib/types/abstract/parser/index.js +28 -0
  136. package/lib/types/abstract/parser/modPack.d.ts +21 -0
  137. package/lib/types/abstract/parser/modPack.js +48 -0
  138. package/lib/types/abstract/parser/moduleInputObject.d.ts +12 -0
  139. package/lib/types/abstract/parser/moduleInputObject.js +21 -0
  140. package/lib/types/abstract/parser/options.d.ts +31 -0
  141. package/lib/types/abstract/parser/options.js +45 -0
  142. package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +46 -0
  143. package/lib/types/abstract/serializedGameComponents/Gamestate.js +70 -0
  144. package/lib/types/abstract/serializedGameComponents/Localized.d.ts +69 -0
  145. package/lib/types/abstract/serializedGameComponents/Localized.js +84 -0
  146. package/lib/types/defaultZones/ability.d.ts +10 -0
  147. package/lib/types/defaultZones/ability.js +22 -0
  148. package/lib/types/defaultZones/deck.d.ts +25 -0
  149. package/lib/types/defaultZones/deck.js +90 -0
  150. package/lib/types/defaultZones/drop.d.ts +5 -0
  151. package/lib/types/defaultZones/drop.js +13 -0
  152. package/lib/types/defaultZones/field.d.ts +11 -0
  153. package/lib/types/defaultZones/field.js +35 -0
  154. package/lib/types/defaultZones/grave.d.ts +8 -0
  155. package/lib/types/defaultZones/grave.js +21 -0
  156. package/lib/types/defaultZones/hand.d.ts +5 -0
  157. package/lib/types/defaultZones/hand.js +14 -0
  158. package/lib/types/defaultZones/storage.d.ts +9 -0
  159. package/lib/types/defaultZones/storage.js +21 -0
  160. package/lib/types/defaultZones/system.d.ts +12 -0
  161. package/lib/types/defaultZones/system.js +35 -0
  162. package/lib/types/defaultZones/void.d.ts +4 -0
  163. package/lib/types/defaultZones/void.js +10 -0
  164. package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +10 -0
  165. package/lib/types/effects/effectSubtypes/subtype_chained.js +17 -0
  166. package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +9 -0
  167. package/lib/types/effects/effectSubtypes/subtype_delayed.js +16 -0
  168. package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +9 -0
  169. package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +21 -0
  170. package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +9 -0
  171. package/lib/types/effects/effectSubtypes/subtype_graveLock.js +21 -0
  172. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +9 -0
  173. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +21 -0
  174. package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +9 -0
  175. package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +15 -0
  176. package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +8 -0
  177. package/lib/types/effects/effectSubtypes/subtype_instant.js +20 -0
  178. package/lib/types/effects/effectSubtypes/subtype_once.d.ts +12 -0
  179. package/lib/types/effects/effectSubtypes/subtype_once.js +27 -0
  180. package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +9 -0
  181. package/lib/types/effects/effectSubtypes/subtype_unique.js +16 -0
  182. package/lib/types/effects/effectTypes/initEffect.d.ts +7 -0
  183. package/lib/types/effects/effectTypes/initEffect.js +23 -0
  184. package/lib/types/effects/effectTypes/lockEffect.d.ts +9 -0
  185. package/lib/types/effects/effectTypes/lockEffect.js +25 -0
  186. package/lib/types/effects/effectTypes/manualEffect.d.ts +9 -0
  187. package/lib/types/effects/effectTypes/manualEffect.js +18 -0
  188. package/lib/types/effects/effectTypes/passiveEffect.d.ts +9 -0
  189. package/lib/types/effects/effectTypes/passiveEffect.js +23 -0
  190. package/lib/types/effects/effectTypes/triggerEffect.d.ts +9 -0
  191. package/lib/types/effects/effectTypes/triggerEffect.js +28 -0
  192. package/lib/types/errors/cannotLoad.d.ts +5 -0
  193. package/lib/types/errors/cannotLoad.js +13 -0
  194. package/lib/types/errors/cardNotExist.d.ts +5 -0
  195. package/lib/types/errors/cardNotExist.js +13 -0
  196. package/lib/types/errors/cardNotInApplicableZone.d.ts +5 -0
  197. package/lib/types/errors/cardNotInApplicableZone.js +13 -0
  198. package/lib/types/errors/effectCondNotMet.d.ts +5 -0
  199. package/lib/types/errors/effectCondNotMet.js +13 -0
  200. package/lib/types/errors/effectNotExist.d.ts +5 -0
  201. package/lib/types/errors/effectNotExist.js +13 -0
  202. package/lib/types/errors/error.d.ts +17 -0
  203. package/lib/types/errors/error.js +42 -0
  204. package/lib/types/errors/incorrectActionType.d.ts +5 -0
  205. package/lib/types/errors/incorrectActionType.js +13 -0
  206. package/lib/types/errors/index.d.ts +16 -0
  207. package/lib/types/errors/index.js +36 -0
  208. package/lib/types/errors/invalidOrderMap.d.ts +6 -0
  209. package/lib/types/errors/invalidOrderMap.js +14 -0
  210. package/lib/types/errors/invalidPosition.d.ts +6 -0
  211. package/lib/types/errors/invalidPosition.js +13 -0
  212. package/lib/types/errors/subTypeOverrideConflict.d.ts +7 -0
  213. package/lib/types/errors/subTypeOverrideConflict.js +15 -0
  214. package/lib/types/errors/unknownError.d.ts +5 -0
  215. package/lib/types/errors/unknownError.js +13 -0
  216. package/lib/types/errors/unregisteredAction.d.ts +6 -0
  217. package/lib/types/errors/unregisteredAction.js +13 -0
  218. package/lib/types/errors/wrongEffectIdx.d.ts +5 -0
  219. package/lib/types/errors/wrongEffectIdx.js +14 -0
  220. package/lib/types/errors/zoneAttrConflict.d.ts +5 -0
  221. package/lib/types/errors/zoneAttrConflict.js +15 -0
  222. package/lib/types/errors/zoneFull.d.ts +5 -0
  223. package/lib/types/errors/zoneFull.js +13 -0
  224. package/lib/types/errors/zoneNotExist.d.ts +5 -0
  225. package/lib/types/errors/zoneNotExist.js +13 -0
  226. package/lib/types/misc.d.ts +97 -0
  227. package/lib/types/misc.js +8 -0
  228. package/lib/types/mods/effectTextParserModule.d.ts +16 -0
  229. package/lib/types/mods/effectTextParserModule.js +81 -0
  230. package/lib/types/mods/gameModule.d.ts +5 -0
  231. package/lib/types/mods/gameModule.js +8 -0
  232. package/lib/utils/index.d.ts +78 -0
  233. package/lib/utils/index.js +562 -0
  234. package/package.json +45 -0
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var effectTypeRegistry;
4
+ (function (effectTypeRegistry) {
5
+ effectTypeRegistry[effectTypeRegistry["e_t_none"] = -1] = "e_t_none";
6
+ effectTypeRegistry[effectTypeRegistry["e_t_manual"] = 0] = "e_t_manual";
7
+ effectTypeRegistry[effectTypeRegistry["e_t_passive"] = 1] = "e_t_passive";
8
+ effectTypeRegistry[effectTypeRegistry["e_t_trigger"] = 2] = "e_t_trigger";
9
+ effectTypeRegistry[effectTypeRegistry["e_t_init"] = 3] = "e_t_init";
10
+ effectTypeRegistry[effectTypeRegistry["e_t_lock"] = 4] = "e_t_lock";
11
+ effectTypeRegistry[effectTypeRegistry["e_t_counter"] = 5] = "e_t_counter";
12
+ effectTypeRegistry[effectTypeRegistry["e_t_status"] = 6] = "e_t_status";
13
+ })(effectTypeRegistry || (effectTypeRegistry = {}));
14
+ exports.default = effectTypeRegistry;
@@ -0,0 +1,92 @@
1
+ declare enum operatorRegistry {
2
+ o_null = -1,
3
+ o_aurora = 0,
4
+ o_esper = 1,
5
+ o_idol = 2,
6
+ o_leo = 3,
7
+ o_queen = 4,
8
+ o_omega = 5,
9
+ o_kaia = 6
10
+ }
11
+ type operatorData_fixxed = {
12
+ name: operatorRegistry;
13
+ realName: string;
14
+ abilityCardID: string;
15
+ desc: string;
16
+ avatarURL: string;
17
+ fullbodyURL: string;
18
+ };
19
+ type operatorData_variable = {
20
+ [key: string]: string | number | boolean;
21
+ };
22
+ type oparatorData = operatorData_fixxed | (operatorData_fixxed & operatorData_variable);
23
+ type operatorName = keyof typeof operatorRegistry;
24
+ type operatorID = operatorRegistry;
25
+ declare const operatorDataRegistry: {
26
+ o_null: {
27
+ name: string;
28
+ realName: string;
29
+ abilityCard: string;
30
+ desc: string;
31
+ avatarURL: string;
32
+ fullbodyURL: string;
33
+ };
34
+ o_aurora: {
35
+ name: string;
36
+ realName: string;
37
+ abilityCard: string;
38
+ desc: string;
39
+ avatarURL: string;
40
+ fullbodyURL: string;
41
+ };
42
+ o_esper: {
43
+ name: string;
44
+ realName: string;
45
+ abilityCard: string;
46
+ desc: string;
47
+ avatarURL: string;
48
+ fullbodyURL: string;
49
+ };
50
+ o_idol: {
51
+ name: string;
52
+ realName: string;
53
+ abilityCard: string;
54
+ desc: string;
55
+ avatarURL: string;
56
+ fullbodyURL: string;
57
+ };
58
+ o_leo: {
59
+ name: string;
60
+ realName: string;
61
+ abilityCard: string;
62
+ desc: string;
63
+ avatarURL: string;
64
+ fullbodyURL: string;
65
+ };
66
+ o_queen: {
67
+ name: string;
68
+ realName: string;
69
+ abilityCard: string;
70
+ desc: string;
71
+ avatarURL: string;
72
+ fullbodyURL: string;
73
+ };
74
+ o_omega: {
75
+ name: string;
76
+ realName: string;
77
+ abilityCard: string;
78
+ desc: string;
79
+ avatarURL: string;
80
+ fullbodyURL: string;
81
+ };
82
+ o_kaia: {
83
+ name: string;
84
+ realName: string;
85
+ abilityCard: string;
86
+ desc: string;
87
+ avatarURL: string;
88
+ fullbodyURL: string;
89
+ };
90
+ };
91
+ export default operatorDataRegistry;
92
+ export { operatorRegistry, oparatorData, operatorName, operatorID };
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operatorRegistry = void 0;
4
+ var operatorRegistry;
5
+ (function (operatorRegistry) {
6
+ operatorRegistry[operatorRegistry["o_null"] = -1] = "o_null";
7
+ operatorRegistry[operatorRegistry["o_aurora"] = 0] = "o_aurora";
8
+ operatorRegistry[operatorRegistry["o_esper"] = 1] = "o_esper";
9
+ operatorRegistry[operatorRegistry["o_idol"] = 2] = "o_idol";
10
+ operatorRegistry[operatorRegistry["o_leo"] = 3] = "o_leo";
11
+ operatorRegistry[operatorRegistry["o_queen"] = 4] = "o_queen";
12
+ operatorRegistry[operatorRegistry["o_omega"] = 5] = "o_omega";
13
+ operatorRegistry[operatorRegistry["o_kaia"] = 6] = "o_kaia";
14
+ })(operatorRegistry || (exports.operatorRegistry = operatorRegistry = {}));
15
+ const operatorDataRegistry = {
16
+ //TODO : fill the images slot
17
+ o_null: {
18
+ name: "o_null",
19
+ realName: "o_null",
20
+ abilityCard: "c_null",
21
+ desc: "o_null",
22
+ avatarURL: "",
23
+ fullbodyURL: ""
24
+ },
25
+ o_aurora: {
26
+ name: "o_aurora",
27
+ realName: "o_real_aurora",
28
+ abilityCard: "c_serenity",
29
+ desc: "o_desc_aurora",
30
+ avatarURL: "",
31
+ fullbodyURL: "",
32
+ },
33
+ o_esper: {
34
+ name: "o_esper",
35
+ realName: "o_real_esper",
36
+ abilityCard: "c_world_seed",
37
+ desc: "o_desc_esper",
38
+ avatarURL: "",
39
+ fullbodyURL: "",
40
+ },
41
+ o_idol: {
42
+ name: "o_idol",
43
+ realName: "o_real_idol",
44
+ abilityCard: "c_encore",
45
+ desc: "o_desc_idol",
46
+ avatarURL: "",
47
+ fullbodyURL: "",
48
+ },
49
+ o_leo: {
50
+ name: "o_leo",
51
+ realName: "o_real_leo",
52
+ abilityCard: "c_moutain",
53
+ desc: "o_desc_leo",
54
+ avatarURL: "",
55
+ fullbodyURL: "",
56
+ },
57
+ o_queen: {
58
+ name: "o_queen",
59
+ realName: "o_real_queen",
60
+ abilityCard: "c_checkmate",
61
+ desc: "o_desc_queen",
62
+ avatarURL: "",
63
+ fullbodyURL: "",
64
+ },
65
+ o_omega: {
66
+ name: "o_omega",
67
+ realName: "o_real_omega",
68
+ abilityCard: "c_paradox",
69
+ desc: "o_desc_omega",
70
+ avatarURL: "",
71
+ fullbodyURL: "",
72
+ },
73
+ o_kaia: {
74
+ name: "o_kaia",
75
+ realName: "o_real_kaia",
76
+ abilityCard: "c_imagination",
77
+ desc: "o_desc_kaia",
78
+ avatarURL: "",
79
+ fullbodyURL: "",
80
+ },
81
+ };
82
+ exports.default = operatorDataRegistry;
@@ -0,0 +1,28 @@
1
+ import { hexString3, hexString4, hexString6 } from "../types/misc";
2
+ declare enum rarityRegistry {
3
+ r_white = 0,
4
+ r_blue = 1,
5
+ r_green = 2,
6
+ r_red = 3,
7
+ r_ability = 4,
8
+ r_algo = 5
9
+ }
10
+ type rarityID = rarityRegistry;
11
+ type rarityName = keyof typeof rarityRegistry;
12
+ type back_url_data = {
13
+ base: string;
14
+ upgrade_1: string;
15
+ [key: string]: string;
16
+ };
17
+ type rarityData_fixxed = {
18
+ hex: hexString3 | hexString4 | hexString6;
19
+ drop_weight: number;
20
+ backURL: back_url_data;
21
+ };
22
+ type rarityData_variable = {
23
+ [key: string]: string | number | boolean;
24
+ };
25
+ type rarityData = rarityData_fixxed | (rarityData_fixxed & rarityData_variable);
26
+ declare const rarityDataRegistry: Record<rarityName, rarityData>;
27
+ export default rarityDataRegistry;
28
+ export { rarityRegistry, rarityID, rarityName, rarityData };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rarityRegistry = void 0;
4
+ var rarityRegistry;
5
+ (function (rarityRegistry) {
6
+ rarityRegistry[rarityRegistry["r_white"] = 0] = "r_white";
7
+ rarityRegistry[rarityRegistry["r_blue"] = 1] = "r_blue";
8
+ rarityRegistry[rarityRegistry["r_green"] = 2] = "r_green";
9
+ rarityRegistry[rarityRegistry["r_red"] = 3] = "r_red";
10
+ rarityRegistry[rarityRegistry["r_ability"] = 4] = "r_ability";
11
+ rarityRegistry[rarityRegistry["r_algo"] = 5] = "r_algo";
12
+ })(rarityRegistry || (exports.rarityRegistry = rarityRegistry = {}));
13
+ const rarityDataRegistry = {
14
+ r_white: {
15
+ hex: "#FFF",
16
+ drop_weight: 10,
17
+ backURL: {
18
+ base: "https://qpproject.github.io/cardbg/0/white.png",
19
+ upgrade_1: "https://qpproject.github.io/cardbg/1/white.png"
20
+ }
21
+ },
22
+ r_blue: {
23
+ hex: "#00F",
24
+ drop_weight: 7,
25
+ backURL: {
26
+ base: "https://qpproject.github.io/cardbg/0/blue.png",
27
+ upgrade_1: "https://qpproject.github.io/cardbg/1/blue.png"
28
+ }
29
+ },
30
+ r_green: {
31
+ hex: "#0F0",
32
+ drop_weight: 4,
33
+ backURL: {
34
+ base: "https://qpproject.github.io/cardbg/0/green.png",
35
+ upgrade_1: "https://qpproject.github.io/cardbg/1/green.png"
36
+ }
37
+ },
38
+ r_red: {
39
+ hex: "#F00",
40
+ drop_weight: 1,
41
+ backURL: {
42
+ base: "https://qpproject.github.io/cardbg/0/red.png",
43
+ upgrade_1: "https://qpproject.github.io/cardbg/1/red.png"
44
+ }
45
+ },
46
+ r_ability: {
47
+ hex: "#FF0",
48
+ drop_weight: -1,
49
+ backURL: {
50
+ base: "https://qpproject.github.io/cardbg/0/yellow.png",
51
+ upgrade_1: "https://qpproject.github.io/cardbg/1/yellow.png"
52
+ }
53
+ },
54
+ r_algo: {
55
+ hex: "#9F00A7",
56
+ drop_weight: -1,
57
+ backURL: {
58
+ base: "https://qpproject.github.io/cardbg/0/purple.png",
59
+ upgrade_1: "https://qpproject.github.io/cardbg/0/purple.png"
60
+ }
61
+ }
62
+ };
63
+ exports.default = rarityDataRegistry;
@@ -0,0 +1,10 @@
1
+ export declare enum registryRegistry {
2
+ card = 0,
3
+ effect = 1,
4
+ effectSubType = 2,
5
+ effectType = 3,
6
+ rarity = 4,
7
+ operator = 5,
8
+ zone = 6,
9
+ mod = 7
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registryRegistry = void 0;
4
+ var registryRegistry;
5
+ (function (registryRegistry) {
6
+ registryRegistry[registryRegistry["card"] = 0] = "card";
7
+ registryRegistry[registryRegistry["effect"] = 1] = "effect";
8
+ registryRegistry[registryRegistry["effectSubType"] = 2] = "effectSubType";
9
+ registryRegistry[registryRegistry["effectType"] = 3] = "effectType";
10
+ registryRegistry[registryRegistry["rarity"] = 4] = "rarity";
11
+ registryRegistry[registryRegistry["operator"] = 5] = "operator";
12
+ registryRegistry[registryRegistry["zone"] = 6] = "zone";
13
+ registryRegistry[registryRegistry["mod"] = 7] = "mod";
14
+ })(registryRegistry || (exports.registryRegistry = registryRegistry = {}));
@@ -0,0 +1,15 @@
1
+ declare enum subtypeRegistry {
2
+ e_st_chained = 0,
3
+ e_st_delayed = 1,
4
+ e_st_fieldLock = 2,
5
+ e_st_handOrFieldLock = 3,
6
+ e_st_graveLock = 4,
7
+ e_st_unique = 5,
8
+ e_st_hardUnique = 6,
9
+ e_st_instant = 7,
10
+ e_st_once = 8
11
+ }
12
+ type subtypeName = keyof typeof subtypeRegistry;
13
+ type subtypeID = (typeof subtypeRegistry)[subtypeName];
14
+ export default subtypeRegistry;
15
+ export type { subtypeName, subtypeID };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var subtypeRegistry;
4
+ (function (subtypeRegistry) {
5
+ subtypeRegistry[subtypeRegistry["e_st_chained"] = 0] = "e_st_chained";
6
+ subtypeRegistry[subtypeRegistry["e_st_delayed"] = 1] = "e_st_delayed";
7
+ subtypeRegistry[subtypeRegistry["e_st_fieldLock"] = 2] = "e_st_fieldLock";
8
+ subtypeRegistry[subtypeRegistry["e_st_handOrFieldLock"] = 3] = "e_st_handOrFieldLock";
9
+ subtypeRegistry[subtypeRegistry["e_st_graveLock"] = 4] = "e_st_graveLock";
10
+ subtypeRegistry[subtypeRegistry["e_st_unique"] = 5] = "e_st_unique";
11
+ subtypeRegistry[subtypeRegistry["e_st_hardUnique"] = 6] = "e_st_hardUnique";
12
+ subtypeRegistry[subtypeRegistry["e_st_instant"] = 7] = "e_st_instant";
13
+ subtypeRegistry[subtypeRegistry["e_st_once"] = 8] = "e_st_once";
14
+ })(subtypeRegistry || (subtypeRegistry = {}));
15
+ exports.default = subtypeRegistry;
@@ -0,0 +1,253 @@
1
+ import type { Action } from "../_queenSystem/handler/actionGenrator";
2
+ import type { Setting } from "../types/abstract/gameComponents/settings";
3
+ import type { operatorID } from "./operatorRegistry";
4
+ import type { actionName } from "./actionRegistry";
5
+ import type { FunctionalKeys, id_able, Player_specific } from "../types/misc";
6
+ import type Card from "../types/abstract/gameComponents/card";
7
+ import type Effect from "../types/abstract/gameComponents/effect";
8
+ import type Zone from "../types/abstract/gameComponents/zone";
9
+ import type Position from "../types/abstract/generics/position";
10
+ import type EffectType from "../types/abstract/gameComponents/effectType";
11
+ import type queenSystem from "../_queenSystem/queenSystem";
12
+ import type { Readonly_recur } from "../types/misc";
13
+ import type EffectSubtype from "../types/abstract/gameComponents/effectSubtype";
14
+ import type { playerTypeID } from "./zoneRegistry";
15
+ import type { deckRegistry } from "./deckRegistry";
16
+ type universalOmit = "originalData" | "setting" | "toDry" | "arr" | "zoneArr" | "actionTree" | "cardHandler" | "modHandler" | "zoneHandler" | "localizer" | "registryFile" | "takenInput" | keyof replacements;
17
+ type replacements = {
18
+ pos: dry_position;
19
+ cardArr: ReadonlyArray<dry_card | undefined>;
20
+ cardArr_filtered: dry_card[];
21
+ statusEffects: ReadonlyArray<dry_effect>;
22
+ effects: ReadonlyArray<dry_effect>;
23
+ totalEffects: ReadonlyArray<dry_effect>;
24
+ lastPos: dry_position;
25
+ firstPos: dry_position;
26
+ top: dry_position;
27
+ bottom: dry_position;
28
+ turnAction?: Action;
29
+ NULLPOS: dry_position;
30
+ NULLCARD: dry_card;
31
+ setting: Readonly_recur<Setting>;
32
+ zoneArr: ReadonlyArray<dry_zone>;
33
+ };
34
+ export type dry_parse<T extends Object, SafeFunctionKeys extends Exclude<FunctionalKeys<T>, universalOmit> = never> = Readonly_recur<Omit<T, universalOmit | FunctionalKeys<T>>> & {
35
+ [K in SafeFunctionKeys]: T[K];
36
+ } & {
37
+ [K in keyof replacements as K extends keyof T ? K : never]: replacements[K];
38
+ };
39
+ export type dry_position = dry_parse<Position, "is" | "flat" | "map" | "toString">;
40
+ export type dry_effectType = dry_parse<EffectType>;
41
+ export type dry_effectSubType = dry_parse<EffectSubtype>;
42
+ export type dry_effect = {
43
+ [K in keyof Omit<Effect, universalOmit> as Effect[K] extends Function ? never : K]: Readonly_recur<Effect[K]>;
44
+ } & {
45
+ "getDisplayInput": Effect["getDisplayInput"];
46
+ "toString": Effect["toString"];
47
+ "getSubtypeidx": Effect["getSubtypeidx"];
48
+ "is": Effect["is"];
49
+ };
50
+ export type dry_card = dry_parse<Card, "is" | "getAllPartitionsIDs" | "isInSamePartition" | "isFrom" | "addShareMemory" | "getFirstActualPartitionIndex">;
51
+ export type dry_zone = dry_parse<Zone, "count" | "findIndex" | "getAction_add" | "getAction_move" | "getAction_shuffle" | "getAction_remove" | "getOppositeCards" | "getCardByPosition" | "getOppositeZone" | "toString" | "validatePosition" | "isOpposite" | "isPositionOccupied" | "is" | "getAllPos" | "of" | "getBackPos" | "getFrontPos" | "isC2Behind" | "isC2Infront" | "isOccupied" | "isExposed"> & {
52
+ getEmptyPosArr?: () => dry_position[];
53
+ getRandomEmptyPos?: () => dry_position;
54
+ getAction_draw?: (s: dry_system, hand: dry_zone, cause: identificationInfo, isTurnDraw?: boolean) => Action<"a_draw">;
55
+ };
56
+ export type dry_system = dry_parse<Omit<queenSystem, "zoneArr">, "count" | "filter" | "map" | "forEach" | "filter" | "findSpecificChainOfAction_resolve" | "getActivatedCardIDs" | "getActivatedEffectIDs" | "getAllZonesOfPlayer" | "getResolvedActions" | "getWouldBeAttackTarget" | "getCardWithDataID" | "getCardWithID" | "getZoneOf" | "getZoneWithID" | "hasActionCompleted" | "getRootAction" | "is" | "getPIDof" | "generateSignature" | "isNotActionArr" | "getAllInputs" | "isPlayAction">;
57
+ export interface logInfoNormal {
58
+ currentPhase: TurnPhase.declare | TurnPhase.input | TurnPhase.recur | TurnPhase.complete;
59
+ currentAction: Action;
60
+ }
61
+ export interface logInfoHasResponse {
62
+ currentPhase: TurnPhase.chain | TurnPhase.trigger;
63
+ currentAction: Action;
64
+ responses: Record<string, string[]>;
65
+ }
66
+ export interface logInfoResolve {
67
+ currentPhase: TurnPhase.resolve;
68
+ currentAction: Action;
69
+ resolvedResult: Action[];
70
+ }
71
+ export type logInfo = logInfoNormal | logInfoHasResponse | logInfoResolve;
72
+ export declare enum TurnPhase {
73
+ declare = 1,
74
+ input = 2,
75
+ chain = 3,
76
+ recur = 4,
77
+ resolve = 5,
78
+ trigger = 6,
79
+ complete = 7
80
+ }
81
+ export declare enum GamePhase {
82
+ idle = 0,
83
+ resolving = 1,
84
+ infinite_loop = 2,
85
+ p1_win = 3,
86
+ p2_win = 4
87
+ }
88
+ export interface system_stat {
89
+ threatLevel: number;
90
+ maxThreatlevel: number;
91
+ }
92
+ export interface player_stat {
93
+ playerType: playerTypeID;
94
+ playerIndex: number;
95
+ heart: number;
96
+ maxHeart: number;
97
+ operator: operatorID;
98
+ deck?: deckRegistry;
99
+ loadCardsInfo: {
100
+ dataID: string;
101
+ variant: string[];
102
+ count: number;
103
+ }[];
104
+ }
105
+ export interface gameState_stat {
106
+ turn_count: number;
107
+ turnActionID: number;
108
+ gamePhase: GamePhase;
109
+ turnPhase: TurnPhase;
110
+ stat_player: player_stat;
111
+ stat_system: system_stat;
112
+ zones: dry_zone[];
113
+ setting: Setting;
114
+ }
115
+ export declare enum suspensionReason {
116
+ taking_input = 1,
117
+ infinite_loop = 2,
118
+ game_finished = 3
119
+ }
120
+ export declare enum identificationType {
121
+ "zone" = 0,
122
+ "card" = 1,
123
+ "partition" = 2,
124
+ "effect" = 3,
125
+ "effectSubtype" = 4,
126
+ "position" = 5,
127
+ "action" = 6,
128
+ "player" = 7,
129
+ "none" = 8,
130
+ "system" = 9
131
+ }
132
+ export interface identificationInfo_partition {
133
+ type: identificationType.partition;
134
+ sys: dry_system;
135
+ pid: number;
136
+ is(pid: number): boolean;
137
+ }
138
+ export interface identificationInfo_action {
139
+ type: identificationType.action;
140
+ sys: dry_system;
141
+ action: Action;
142
+ is<T extends actionName>(type: T): this is {
143
+ type: identificationInfo_action;
144
+ sys: dry_system;
145
+ action: Action<T>;
146
+ };
147
+ }
148
+ export type identificationInfo_card = {
149
+ type: identificationType.card;
150
+ sys: dry_system;
151
+ card: dry_card;
152
+ is: Card["is"];
153
+ };
154
+ export type identificationInfo_effect = {
155
+ type: identificationType.effect;
156
+ sys: dry_system;
157
+ card: dry_card;
158
+ eff: dry_effect;
159
+ is(card: id_able, eff: id_able): boolean;
160
+ };
161
+ export type identificationInfo_zone = {
162
+ type: identificationType.zone;
163
+ sys: dry_system;
164
+ zone: dry_zone;
165
+ is: Zone["is"];
166
+ of: Zone["of"];
167
+ };
168
+ export type identificationInfo_pos = {
169
+ type: identificationType.position;
170
+ sys: dry_system;
171
+ pos: dry_position;
172
+ is: Position["is"];
173
+ };
174
+ export type identificationInfo_none = {
175
+ type: identificationType.none;
176
+ };
177
+ export type identificationInfo_player = {
178
+ type: identificationType.player;
179
+ sys: dry_system;
180
+ id: number;
181
+ is(player_owned_obj: Player_specific): boolean;
182
+ };
183
+ export type identificationInfo_subtype = {
184
+ type: identificationType.effectSubtype;
185
+ sys: dry_system;
186
+ card: dry_card;
187
+ eff: dry_effect;
188
+ subtype: dry_effectSubType;
189
+ is(card: id_able, eff: id_able, subtype: dry_effectSubType): boolean;
190
+ };
191
+ export type identificationInfo_system = {
192
+ type: identificationType.system;
193
+ };
194
+ export type identificationInfo = identificationInfo_action | identificationInfo_card | identificationInfo_partition | identificationInfo_effect | identificationInfo_none | identificationInfo_player | identificationInfo_pos | identificationInfo_subtype | identificationInfo_zone | identificationInfo_system;
195
+ export declare enum inputType {
196
+ "zone" = 0,
197
+ "card" = 1,
198
+ "effect" = 2,
199
+ "effectSubtype" = 3,
200
+ "position" = 4,
201
+ "player" = 5,
202
+ "string" = 6,
203
+ "boolean" = 7,
204
+ "number" = 8
205
+ }
206
+ export type inputData_str = {
207
+ type: inputType.string;
208
+ data: string;
209
+ };
210
+ export type inputData_bool = {
211
+ type: inputType.boolean;
212
+ data: boolean;
213
+ };
214
+ export type inputData_num = {
215
+ type: inputType.number;
216
+ data: number;
217
+ };
218
+ export type inputData_pos = {
219
+ type: inputType.position;
220
+ data: Omit<identificationInfo_pos, "sys">;
221
+ is: identificationInfo_pos["is"];
222
+ };
223
+ export type inputData_zone = {
224
+ type: inputType.zone;
225
+ data: Omit<identificationInfo_zone, "sys">;
226
+ is: identificationInfo_zone["is"];
227
+ of: identificationInfo_zone["of"];
228
+ };
229
+ export type inputData_card = {
230
+ type: inputType.card;
231
+ data: Omit<identificationInfo_card, "sys">;
232
+ is: identificationInfo_card["is"];
233
+ };
234
+ export type inputData_effect = {
235
+ type: inputType.effect;
236
+ data: Omit<identificationInfo_effect, "sys">;
237
+ is: identificationInfo_effect["is"];
238
+ };
239
+ export type inputData_subtype = {
240
+ type: inputType.effectSubtype;
241
+ data: Omit<identificationInfo_subtype, "sys">;
242
+ is: identificationInfo_subtype["is"];
243
+ };
244
+ export type inputData_player = {
245
+ type: inputType.player;
246
+ data: Omit<identificationInfo_player, "sys">;
247
+ is: identificationInfo_player["is"];
248
+ };
249
+ export type inputData_standard = inputData_str | inputData_num | inputData_bool | inputData_card | inputData_effect | inputData_subtype | inputData_zone | inputData_player | inputData_pos;
250
+ export type inputData = inputData_standard;
251
+ export type inputDataSpecific<T extends inputType> = T extends inputType.number ? inputData_num : T extends inputType.string ? inputData_str : T extends inputType.boolean ? inputData_bool : T extends inputType.player ? inputData_player : T extends inputType.position ? inputData_pos : T extends inputType.zone ? inputData_zone : T extends inputType.card ? inputData_card : T extends inputType.effect ? inputData_effect : T extends inputType.effectSubtype ? inputData_subtype : inputData;
252
+ export type validSetFormat<T extends inputType = inputType> = Exclude<[T, inputDataSpecific<T>[] | undefined], []>;
253
+ export {};
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inputType = exports.identificationType = exports.suspensionReason = exports.GamePhase = exports.TurnPhase = void 0;
4
+ var TurnPhase;
5
+ (function (TurnPhase) {
6
+ TurnPhase[TurnPhase["declare"] = 1] = "declare";
7
+ TurnPhase[TurnPhase["input"] = 2] = "input";
8
+ TurnPhase[TurnPhase["chain"] = 3] = "chain";
9
+ TurnPhase[TurnPhase["recur"] = 4] = "recur";
10
+ TurnPhase[TurnPhase["resolve"] = 5] = "resolve";
11
+ TurnPhase[TurnPhase["trigger"] = 6] = "trigger";
12
+ TurnPhase[TurnPhase["complete"] = 7] = "complete";
13
+ })(TurnPhase || (exports.TurnPhase = TurnPhase = {}));
14
+ var GamePhase;
15
+ (function (GamePhase) {
16
+ GamePhase[GamePhase["idle"] = 0] = "idle";
17
+ GamePhase[GamePhase["resolving"] = 1] = "resolving";
18
+ GamePhase[GamePhase["infinite_loop"] = 2] = "infinite_loop";
19
+ GamePhase[GamePhase["p1_win"] = 3] = "p1_win";
20
+ GamePhase[GamePhase["p2_win"] = 4] = "p2_win";
21
+ })(GamePhase || (exports.GamePhase = GamePhase = {}));
22
+ var suspensionReason;
23
+ (function (suspensionReason) {
24
+ suspensionReason[suspensionReason["taking_input"] = 1] = "taking_input";
25
+ suspensionReason[suspensionReason["infinite_loop"] = 2] = "infinite_loop";
26
+ suspensionReason[suspensionReason["game_finished"] = 3] = "game_finished";
27
+ })(suspensionReason || (exports.suspensionReason = suspensionReason = {}));
28
+ var identificationType;
29
+ (function (identificationType) {
30
+ identificationType[identificationType["zone"] = 0] = "zone";
31
+ identificationType[identificationType["card"] = 1] = "card";
32
+ identificationType[identificationType["partition"] = 2] = "partition";
33
+ identificationType[identificationType["effect"] = 3] = "effect";
34
+ identificationType[identificationType["effectSubtype"] = 4] = "effectSubtype";
35
+ identificationType[identificationType["position"] = 5] = "position";
36
+ identificationType[identificationType["action"] = 6] = "action";
37
+ identificationType[identificationType["player"] = 7] = "player";
38
+ identificationType[identificationType["none"] = 8] = "none";
39
+ identificationType[identificationType["system"] = 9] = "system";
40
+ })(identificationType || (exports.identificationType = identificationType = {}));
41
+ var inputType;
42
+ (function (inputType) {
43
+ inputType[inputType["zone"] = 0] = "zone";
44
+ inputType[inputType["card"] = 1] = "card";
45
+ inputType[inputType["effect"] = 2] = "effect";
46
+ inputType[inputType["effectSubtype"] = 3] = "effectSubtype";
47
+ inputType[inputType["position"] = 4] = "position";
48
+ inputType[inputType["player"] = 5] = "player";
49
+ inputType[inputType["string"] = 6] = "string";
50
+ inputType[inputType["boolean"] = 7] = "boolean";
51
+ inputType[inputType["number"] = 8] = "number";
52
+ })(inputType || (exports.inputType = inputType = {}));
53
+ // import type { StrictGenerator } from "../types/misc"
54
+ // export type inputRequester_format<T extends inputType = inputType, T2 extends inputType = T> = [validSetFormat<T2>, StrictGenerator<validSetFormat<T>, validSetFormat<T> | void, inputDataSpecific<T>>]
55
+ // export type Action_final_generatorType<T extends inputType = inputType> = Generator<validSetFormat<T>, Action[], inputDataSpecific<T>>
56
+ // export type Action_final_generatorType_recur<T extends inputType = inputType> = Generator<inputRequester_format<T>, Action[] | Action_final_generatorType_recur<T>, inputDataSpecific<T>>