qpremake 1.5.2 → 1.6.3
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/README.md +335 -180
- package/package.json +2 -7
- package/lib/_localizationFiles/English.d.ts +0 -2
- package/lib/_localizationFiles/English.js +0 -307
- package/lib/_mods/parserModules/addSymbol.d.ts +0 -7
- package/lib/_mods/parserModules/addSymbol.js +0 -18
- package/lib/_mods/parserModules/expression.d.ts +0 -7
- package/lib/_mods/parserModules/expression.js +0 -45
- package/lib/_mods/parserModules/expression_parser.d.ts +0 -143
- package/lib/_mods/parserModules/expression_parser.js +0 -728
- package/lib/_mods/parserModules/img.d.ts +0 -8
- package/lib/_mods/parserModules/img.js +0 -42
- package/lib/_mods/parserModules/qpOriginal.d.ts +0 -5
- package/lib/_mods/parserModules/qpOriginal.js +0 -27
- package/lib/_mods/parserModules/sectionID.d.ts +0 -13
- package/lib/_mods/parserModules/sectionID.js +0 -56
- package/lib/_mods/parserModules/tags.d.ts +0 -9
- package/lib/_mods/parserModules/tags.js +0 -29
- package/lib/_mods/parserModules/uaddminus.d.ts +0 -9
- package/lib/_mods/parserModules/uaddminus.js +0 -42
- package/lib/_mods/parserModules/variantCheck.d.ts +0 -10
- package/lib/_mods/parserModules/variantCheck.js +0 -53
- package/lib/_queenSystem/handler/actionGenrator.d.ts +0 -994
- package/lib/_queenSystem/handler/actionGenrator.js +0 -646
- package/lib/_queenSystem/handler/actionInputGenerator.d.ts +0 -95
- package/lib/_queenSystem/handler/actionInputGenerator.js +0 -373
- package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +0 -92
- package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +0 -341
- package/lib/_queenSystem/handler/cardHandler.d.ts +0 -20
- package/lib/_queenSystem/handler/cardHandler.js +0 -61
- package/lib/_queenSystem/handler/effectGenerator.d.ts +0 -1
- package/lib/_queenSystem/handler/effectGenerator.js +0 -127
- package/lib/_queenSystem/handler/localizationHandler.d.ts +0 -28
- package/lib/_queenSystem/handler/localizationHandler.js +0 -166
- package/lib/_queenSystem/handler/modHandler.d.ts +0 -10
- package/lib/_queenSystem/handler/modHandler.js +0 -36
- package/lib/_queenSystem/handler/oldDataProcessor.d.ts +0 -9
- package/lib/_queenSystem/handler/oldDataProcessor.js +0 -129
- package/lib/_queenSystem/handler/registryHandler.d.ts +0 -36
- package/lib/_queenSystem/handler/registryHandler.js +0 -63
- package/lib/_queenSystem/handler/zoneHandler.d.ts +0 -102
- package/lib/_queenSystem/handler/zoneHandler.js +0 -606
- package/lib/_queenSystem/loader/loader_card.d.ts +0 -20
- package/lib/_queenSystem/loader/loader_card.js +0 -124
- package/lib/_queenSystem/loader/loader_effect.d.ts +0 -27
- package/lib/_queenSystem/loader/loader_effect.js +0 -163
- package/lib/_queenSystem/loader/loader_handler.d.ts +0 -11
- package/lib/_queenSystem/loader/loader_handler.js +0 -24
- package/lib/_queenSystem/loader/loader_localization.d.ts +0 -11
- package/lib/_queenSystem/loader/loader_localization.js +0 -73
- package/lib/_queenSystem/loader/loader_mod.d.ts +0 -10
- package/lib/_queenSystem/loader/loader_mod.js +0 -72
- package/lib/_queenSystem/loader/loader_subtype.d.ts +0 -9
- package/lib/_queenSystem/loader/loader_subtype.js +0 -39
- package/lib/_queenSystem/loader/loader_type.d.ts +0 -9
- package/lib/_queenSystem/loader/loader_type.js +0 -39
- package/lib/_queenSystem/loader/loader_zone.d.ts +0 -14
- package/lib/_queenSystem/loader/loader_zone.js +0 -35
- package/lib/_queenSystem/queenSystem.d.ts +0 -127
- package/lib/_queenSystem/queenSystem.js +0 -996
- package/lib/_queenSystem/renderer/rendererInterface.d.ts +0 -9
- package/lib/_queenSystem/renderer/rendererInterface.js +0 -2
- package/lib/data/actionRegistry.d.ts +0 -56
- package/lib/data/actionRegistry.js +0 -60
- package/lib/data/cardRegistry.d.ts +0 -1162
- package/lib/data/cardRegistry.js +0 -716
- package/lib/data/deckRegistry.d.ts +0 -19
- package/lib/data/deckRegistry.js +0 -41
- package/lib/data/effectRegistry.d.ts +0 -465
- package/lib/data/effectRegistry.js +0 -151
- package/lib/data/effectTypeRegistry.d.ts +0 -14
- package/lib/data/effectTypeRegistry.js +0 -14
- package/lib/data/operatorRegistry.d.ts +0 -92
- package/lib/data/operatorRegistry.js +0 -82
- package/lib/data/rarityRegistry.d.ts +0 -28
- package/lib/data/rarityRegistry.js +0 -63
- package/lib/data/registryRegistry.d.ts +0 -10
- package/lib/data/registryRegistry.js +0 -14
- package/lib/data/subtypeRegistry.d.ts +0 -15
- package/lib/data/subtypeRegistry.js +0 -15
- package/lib/data/systemRegistry.d.ts +0 -253
- package/lib/data/systemRegistry.js +0 -56
- package/lib/data/zoneRegistry.d.ts +0 -43
- package/lib/data/zoneRegistry.js +0 -157
- package/lib/effectTextParser/index.d.ts +0 -42
- package/lib/effectTextParser/index.js +0 -316
- package/lib/global/index.d.ts +0 -8
- package/lib/global/index.js +0 -12
- package/lib/index.d.ts +0 -6341
- package/lib/index.js +0 -212
- package/lib/specificEffects/e_cond.d.ts +0 -11
- package/lib/specificEffects/e_cond.js +0 -36
- package/lib/specificEffects/e_fruit.d.ts +0 -3
- package/lib/specificEffects/e_fruit.js +0 -187
- package/lib/specificEffects/e_generic.d.ts +0 -191
- package/lib/specificEffects/e_generic.js +0 -662
- package/lib/specificEffects/e_generic_cardTargetting.d.ts +0 -38
- package/lib/specificEffects/e_generic_cardTargetting.js +0 -82
- package/lib/specificEffects/e_generic_noneTargetting.d.ts +0 -10
- package/lib/specificEffects/e_generic_noneTargetting.js +0 -26
- package/lib/specificEffects/e_status.d.ts +0 -80
- package/lib/specificEffects/e_status.js +0 -151
- package/lib/specificEffects/e_test.d.ts +0 -3
- package/lib/specificEffects/e_test.js +0 -21
- package/lib/types/abstract/gameComponents/API.d.ts +0 -19
- package/lib/types/abstract/gameComponents/API.js +0 -2
- package/lib/types/abstract/gameComponents/card.d.ts +0 -108
- package/lib/types/abstract/gameComponents/card.js +0 -771
- package/lib/types/abstract/gameComponents/effect.d.ts +0 -82
- package/lib/types/abstract/gameComponents/effect.js +0 -331
- package/lib/types/abstract/gameComponents/effectSubtype.d.ts +0 -22
- package/lib/types/abstract/gameComponents/effectSubtype.js +0 -40
- package/lib/types/abstract/gameComponents/effectType.d.ts +0 -11
- package/lib/types/abstract/gameComponents/effectType.js +0 -8
- package/lib/types/abstract/gameComponents/settings.d.ts +0 -80
- package/lib/types/abstract/gameComponents/settings.js +0 -68
- package/lib/types/abstract/gameComponents/zone.d.ts +0 -113
- package/lib/types/abstract/gameComponents/zone.js +0 -614
- package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +0 -18
- package/lib/types/abstract/gameComponents/zone_gridBased.js +0 -58
- package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +0 -13
- package/lib/types/abstract/gameComponents/zone_stackBased.js +0 -55
- package/lib/types/abstract/generics/node.d.ts +0 -23
- package/lib/types/abstract/generics/node.js +0 -46
- package/lib/types/abstract/generics/position.d.ts +0 -23
- package/lib/types/abstract/generics/position.js +0 -91
- package/lib/types/abstract/generics/tree.d.ts +0 -25
- package/lib/types/abstract/generics/tree.js +0 -153
- package/lib/types/abstract/generics/universalResponse.d.ts +0 -4
- package/lib/types/abstract/generics/universalResponse.js +0 -2
- package/lib/types/abstract/generics/wraper.d.ts +0 -21
- package/lib/types/abstract/generics/wraper.js +0 -56
- package/lib/types/abstract/parser/component.d.ts +0 -88
- package/lib/types/abstract/parser/component.js +0 -132
- package/lib/types/abstract/parser/index.d.ts +0 -6
- package/lib/types/abstract/parser/index.js +0 -28
- package/lib/types/abstract/parser/modPack.d.ts +0 -21
- package/lib/types/abstract/parser/modPack.js +0 -48
- package/lib/types/abstract/parser/moduleInputObject.d.ts +0 -12
- package/lib/types/abstract/parser/moduleInputObject.js +0 -21
- package/lib/types/abstract/parser/options.d.ts +0 -31
- package/lib/types/abstract/parser/options.js +0 -45
- package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +0 -46
- package/lib/types/abstract/serializedGameComponents/Gamestate.js +0 -70
- package/lib/types/abstract/serializedGameComponents/Localized.d.ts +0 -69
- package/lib/types/abstract/serializedGameComponents/Localized.js +0 -84
- package/lib/types/defaultZones/ability.d.ts +0 -10
- package/lib/types/defaultZones/ability.js +0 -22
- package/lib/types/defaultZones/deck.d.ts +0 -25
- package/lib/types/defaultZones/deck.js +0 -90
- package/lib/types/defaultZones/drop.d.ts +0 -5
- package/lib/types/defaultZones/drop.js +0 -13
- package/lib/types/defaultZones/field.d.ts +0 -11
- package/lib/types/defaultZones/field.js +0 -35
- package/lib/types/defaultZones/grave.d.ts +0 -8
- package/lib/types/defaultZones/grave.js +0 -21
- package/lib/types/defaultZones/hand.d.ts +0 -5
- package/lib/types/defaultZones/hand.js +0 -14
- package/lib/types/defaultZones/storage.d.ts +0 -9
- package/lib/types/defaultZones/storage.js +0 -21
- package/lib/types/defaultZones/system.d.ts +0 -12
- package/lib/types/defaultZones/system.js +0 -35
- package/lib/types/defaultZones/void.d.ts +0 -4
- package/lib/types/defaultZones/void.js +0 -10
- package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +0 -10
- package/lib/types/effects/effectSubtypes/subtype_chained.js +0 -17
- package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_delayed.js +0 -16
- package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_graveLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +0 -15
- package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +0 -8
- package/lib/types/effects/effectSubtypes/subtype_instant.js +0 -20
- package/lib/types/effects/effectSubtypes/subtype_once.d.ts +0 -12
- package/lib/types/effects/effectSubtypes/subtype_once.js +0 -27
- package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_unique.js +0 -16
- package/lib/types/effects/effectTypes/initEffect.d.ts +0 -7
- package/lib/types/effects/effectTypes/initEffect.js +0 -23
- package/lib/types/effects/effectTypes/lockEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/lockEffect.js +0 -25
- package/lib/types/effects/effectTypes/manualEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/manualEffect.js +0 -18
- package/lib/types/effects/effectTypes/passiveEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/passiveEffect.js +0 -23
- package/lib/types/effects/effectTypes/triggerEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/triggerEffect.js +0 -28
- package/lib/types/errors/cannotLoad.d.ts +0 -5
- package/lib/types/errors/cannotLoad.js +0 -13
- package/lib/types/errors/cardNotExist.d.ts +0 -5
- package/lib/types/errors/cardNotExist.js +0 -13
- package/lib/types/errors/cardNotInApplicableZone.d.ts +0 -5
- package/lib/types/errors/cardNotInApplicableZone.js +0 -13
- package/lib/types/errors/effectCondNotMet.d.ts +0 -5
- package/lib/types/errors/effectCondNotMet.js +0 -13
- package/lib/types/errors/effectNotExist.d.ts +0 -5
- package/lib/types/errors/effectNotExist.js +0 -13
- package/lib/types/errors/error.d.ts +0 -17
- package/lib/types/errors/error.js +0 -42
- package/lib/types/errors/incorrectActionType.d.ts +0 -5
- package/lib/types/errors/incorrectActionType.js +0 -13
- package/lib/types/errors/index.d.ts +0 -16
- package/lib/types/errors/index.js +0 -36
- package/lib/types/errors/invalidOrderMap.d.ts +0 -6
- package/lib/types/errors/invalidOrderMap.js +0 -14
- package/lib/types/errors/invalidPosition.d.ts +0 -6
- package/lib/types/errors/invalidPosition.js +0 -13
- package/lib/types/errors/subTypeOverrideConflict.d.ts +0 -7
- package/lib/types/errors/subTypeOverrideConflict.js +0 -15
- package/lib/types/errors/unknownError.d.ts +0 -5
- package/lib/types/errors/unknownError.js +0 -13
- package/lib/types/errors/unregisteredAction.d.ts +0 -6
- package/lib/types/errors/unregisteredAction.js +0 -13
- package/lib/types/errors/wrongEffectIdx.d.ts +0 -5
- package/lib/types/errors/wrongEffectIdx.js +0 -14
- package/lib/types/errors/zoneAttrConflict.d.ts +0 -5
- package/lib/types/errors/zoneAttrConflict.js +0 -15
- package/lib/types/errors/zoneFull.d.ts +0 -5
- package/lib/types/errors/zoneFull.js +0 -13
- package/lib/types/errors/zoneNotExist.d.ts +0 -5
- package/lib/types/errors/zoneNotExist.js +0 -13
- package/lib/types/misc.d.ts +0 -97
- package/lib/types/misc.js +0 -8
- package/lib/types/mods/effectTextParserModule.d.ts +0 -16
- package/lib/types/mods/effectTextParserModule.js +0 -81
- package/lib/types/mods/gameModule.d.ts +0 -5
- package/lib/types/mods/gameModule.js +0 -8
- package/lib/utils/index.d.ts +0 -78
- package/lib/utils/index.js +0 -562
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,92 +0,0 @@
|
|
|
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 };
|
|
@@ -1,82 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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 };
|
|
@@ -1,63 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,253 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,56 +0,0 @@
|
|
|
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>>
|