qpremake 1.5.3 → 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 +5 -3
- 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 -27
- package/lib/_queenSystem/renderer/rendererInterface.js +0 -25
- 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 -6335
- package/lib/index.js +0 -205
- 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 -72
- 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,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
// import type { Setting } from "../../types/abstract/gameComponents/settings";
|
|
46
|
-
const deckRegistry_1 = require("../../data/deckRegistry");
|
|
47
|
-
const operatorRegistry_1 = require("../../data/operatorRegistry");
|
|
48
|
-
const rarityRegistry_1 = require("../../data/rarityRegistry");
|
|
49
|
-
const zoneRegistry_1 = require("../../data/zoneRegistry");
|
|
50
|
-
const effectTextParser_1 = __importStar(require("../../effectTextParser"));
|
|
51
|
-
const parser_1 = require("../../types/abstract/parser");
|
|
52
|
-
const Localized_1 = require("../../types/abstract/serializedGameComponents/Localized");
|
|
53
|
-
class Localizer {
|
|
54
|
-
get languageID() { return this.loader.currentLanguageID; }
|
|
55
|
-
get languageStr() { return this.loader.currentLanguageStr; }
|
|
56
|
-
get currLanguageData() { return this.loader.getSymbolMap(); }
|
|
57
|
-
constructor(s, regs) {
|
|
58
|
-
this.parser = new effectTextParser_1.default();
|
|
59
|
-
this.loaded = false;
|
|
60
|
-
this.__s = s;
|
|
61
|
-
this.loader = regs.localizationLoader;
|
|
62
|
-
}
|
|
63
|
-
load(l) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
this.loaded = false;
|
|
66
|
-
yield this.loader.load();
|
|
67
|
-
yield this.parser.load(l);
|
|
68
|
-
this.loaded = true;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
localizeStandaloneString(s, input) {
|
|
72
|
-
if (!this.loaded)
|
|
73
|
-
return;
|
|
74
|
-
const o = new effectTextParser_1.parseOptions(parser_1.parseMode.gameplay, input, true);
|
|
75
|
-
return this.parser.parse(s, o);
|
|
76
|
-
}
|
|
77
|
-
getLocalizedSymbol(s) {
|
|
78
|
-
if (!this.loaded)
|
|
79
|
-
return;
|
|
80
|
-
if (!this.currLanguageData)
|
|
81
|
-
return;
|
|
82
|
-
return this.currLanguageData[s];
|
|
83
|
-
}
|
|
84
|
-
getAndParseLocalizedSymbol(s, mode = parser_1.parseMode.gameplay, card, pid = 0) {
|
|
85
|
-
if (!this.loaded)
|
|
86
|
-
return;
|
|
87
|
-
const res = this.getLocalizedSymbol(s);
|
|
88
|
-
if (res === undefined)
|
|
89
|
-
return [
|
|
90
|
-
new parser_1.TextComponent(s, `Unknown key`)
|
|
91
|
-
];
|
|
92
|
-
const i = card ? card.getPartitionDisplayInputs(this.__s, pid) : [];
|
|
93
|
-
const o = new effectTextParser_1.parseOptions(mode, i, true, card);
|
|
94
|
-
const ret = this.parser.parse(res, o);
|
|
95
|
-
let addSpaceStart = false;
|
|
96
|
-
let addSpaceEnd = false;
|
|
97
|
-
ret.forEach((k, index) => {
|
|
98
|
-
addSpaceEnd = ret[index + 1] !== undefined && !ret[index + 1].is("text");
|
|
99
|
-
if (k.is("text")) {
|
|
100
|
-
k.str = k.str.trim();
|
|
101
|
-
if (addSpaceStart)
|
|
102
|
-
k.str = " " + k.str;
|
|
103
|
-
if (addSpaceEnd)
|
|
104
|
-
k.str += " ";
|
|
105
|
-
}
|
|
106
|
-
else
|
|
107
|
-
addSpaceStart = true;
|
|
108
|
-
});
|
|
109
|
-
return ret;
|
|
110
|
-
}
|
|
111
|
-
localizeCard(c, mode = parser_1.parseMode.gameplay) {
|
|
112
|
-
if (!this.loaded)
|
|
113
|
-
return;
|
|
114
|
-
if (!c)
|
|
115
|
-
return;
|
|
116
|
-
const eArr = c.getAllDisplayEffects().map(p => new Localized_1.LocalizedEffect(p.pid, this.getAndParseLocalizedSymbol(p.key, mode, c, p.pid), this.getAndParseLocalizedSymbol(p.type, mode, c, p.pid), p.subtypes.map(st => this.getAndParseLocalizedSymbol(st, mode, c, p.pid)), this.getAndParseLocalizedSymbol(p.type + "_desc", mode, c, p.pid), p.subtypes.map(st => this.getAndParseLocalizedSymbol(st + "_desc", mode, c, p.pid))));
|
|
117
|
-
const eArr1 = [];
|
|
118
|
-
const eArr2 = [];
|
|
119
|
-
for (const p of eArr) {
|
|
120
|
-
if (c.isStatusPartition(p.id))
|
|
121
|
-
eArr2.push(p);
|
|
122
|
-
else
|
|
123
|
-
eArr1.push(p);
|
|
124
|
-
}
|
|
125
|
-
const testObj = new Localized_1.LocalizedCard(c.id, this.getAndParseLocalizedSymbol(c.dataID, mode, c), c.extensionArr.map(ex => this.getAndParseLocalizedSymbol("ex_" + ex, mode, c)), eArr1, eArr2, c.pos.zoneID, c.pos.flat().map(c => c), c.atk, c.hp, c.maxAtk, c.maxHp, c.level, c.rarityID, this.getAndParseLocalizedSymbol(rarityRegistry_1.rarityRegistry[c.rarityID], mode, c), c.belongTo.map(a => this.getAndParseLocalizedSymbol("a_" + a, mode, c)));
|
|
126
|
-
if (Object.values(testObj).some(v => v === undefined))
|
|
127
|
-
return undefined;
|
|
128
|
-
return testObj;
|
|
129
|
-
}
|
|
130
|
-
localizeZone(z, mode = parser_1.parseMode.gameplay) {
|
|
131
|
-
if (!this.loaded)
|
|
132
|
-
return undefined;
|
|
133
|
-
if (!z)
|
|
134
|
-
return;
|
|
135
|
-
const testObj = new Localized_1.LocalizedZone(z.id, z.playerIndex, z.types, z.types.map(t => this.getAndParseLocalizedSymbol(zoneRegistry_1.zoneRegistry[t], mode)), this.getAndParseLocalizedSymbol(z.classID, mode), z.cardArr.map(c => c ? this.localizeCard(c) : c), z.shape.map(c => c));
|
|
136
|
-
if (Object.values(testObj).some(v => v === undefined))
|
|
137
|
-
return undefined;
|
|
138
|
-
return testObj;
|
|
139
|
-
}
|
|
140
|
-
localizePlayer(player, mode = parser_1.parseMode.gameplay) {
|
|
141
|
-
return new Localized_1.LocalizedPlayer(player.playerIndex, player.playerType, this.getAndParseLocalizedSymbol(zoneRegistry_1.playerTypeID[player.playerType], mode), player.heart, player.maxHeart, this.getAndParseLocalizedSymbol(operatorRegistry_1.operatorRegistry[player.operator], mode), player.deck ? this.getAndParseLocalizedSymbol(deckRegistry_1.deckRegistry[player.deck], mode) : this.getAndParseLocalizedSymbol("d_null_deck", mode));
|
|
142
|
-
}
|
|
143
|
-
localizeSystem(s, mode = parser_1.parseMode.gameplay) {
|
|
144
|
-
if (!this.loaded)
|
|
145
|
-
return undefined;
|
|
146
|
-
if (!s)
|
|
147
|
-
return;
|
|
148
|
-
// this.__s = s
|
|
149
|
-
const testObj = new Localized_1.LocalizedSystem(s.player_stat.map(player => this.localizePlayer(player, mode)), s.zoneArr.map(z => this.localizeZone(z, mode)), s.turnAction ? new Localized_1.LocalizedAction(s.turnAction.id, this.getAndParseLocalizedSymbol(s.turnAction.type, mode)) : new Localized_1.LocalizedAction(-1, this.getAndParseLocalizedSymbol("a_null", mode)), s.phaseIdx, s.turnCount, s.waveCount);
|
|
150
|
-
if (Object.values(testObj).some(v => v === undefined))
|
|
151
|
-
return undefined;
|
|
152
|
-
return testObj;
|
|
153
|
-
}
|
|
154
|
-
localizeCardFromKey(s, c_key, variants = [], mode = parser_1.parseMode.gameplay) {
|
|
155
|
-
if (!this.loaded)
|
|
156
|
-
return undefined;
|
|
157
|
-
if (!s)
|
|
158
|
-
return;
|
|
159
|
-
const card = s.cardHandler.getCard(c_key, variants);
|
|
160
|
-
return this.localizeCard(card);
|
|
161
|
-
}
|
|
162
|
-
get isLoaded() {
|
|
163
|
-
return this.loaded;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
exports.default = Localizer;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type registryHandler from "./registryHandler";
|
|
2
|
-
import type { Setting } from "../../types/abstract/gameComponents/settings";
|
|
3
|
-
export default class modHandler {
|
|
4
|
-
private loader;
|
|
5
|
-
private regs;
|
|
6
|
-
private loaded;
|
|
7
|
-
constructor(s: Setting, regs: registryHandler);
|
|
8
|
-
load(): Promise<void>;
|
|
9
|
-
get isLoaded(): boolean;
|
|
10
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const loader_mod_1 = __importDefault(require("../loader/loader_mod"));
|
|
16
|
-
class modHandler {
|
|
17
|
-
constructor(s, regs) {
|
|
18
|
-
this.loaded = false;
|
|
19
|
-
this.loader = new loader_mod_1.default(s);
|
|
20
|
-
this.regs = regs;
|
|
21
|
-
}
|
|
22
|
-
load() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
this.loaded = false;
|
|
25
|
-
yield this.loader.load();
|
|
26
|
-
this.loader.getAll().forEach(i => {
|
|
27
|
-
i.load(this.regs);
|
|
28
|
-
});
|
|
29
|
-
this.loaded = true;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
get isLoaded() {
|
|
33
|
-
return this.loaded;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.default = modHandler;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const cards_1 = __importDefault(require("../../data/old/oldData/cards"));
|
|
7
|
-
class dataProcessor {
|
|
8
|
-
Cards() {
|
|
9
|
-
let res = "name,archtype,rarity,effLen,done";
|
|
10
|
-
Object.keys(cards_1.default).forEach(k => {
|
|
11
|
-
const key = k;
|
|
12
|
-
const obj = cards_1.default[key];
|
|
13
|
-
const data = [key];
|
|
14
|
-
data.push(obj.name.displayName, obj.belongTo, obj.rarity, String(obj.effectCount), "0");
|
|
15
|
-
res += "\n" + data.join(",");
|
|
16
|
-
});
|
|
17
|
-
return res;
|
|
18
|
-
}
|
|
19
|
-
Effects() {
|
|
20
|
-
let res = "index,desc,done";
|
|
21
|
-
let a = 0;
|
|
22
|
-
const set = new Set();
|
|
23
|
-
Object.keys(cards_1.default).forEach(k => {
|
|
24
|
-
const key = k;
|
|
25
|
-
const obj = cards_1.default[key];
|
|
26
|
-
obj.effects.forEach(x => {
|
|
27
|
-
set.add(x.effectText);
|
|
28
|
-
});
|
|
29
|
-
if (obj.isUpgradable) {
|
|
30
|
-
obj.upgraded.effects.forEach(x => {
|
|
31
|
-
set.add(x.effectText);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const set_sorted = Array.from(set.values()).sort();
|
|
36
|
-
set_sorted.forEach(val => {
|
|
37
|
-
// Replace any newline characters in val with a safe encoding (e.g., \n => \\n)
|
|
38
|
-
const encodedVal = val.replace(/\n/g, "\\n");
|
|
39
|
-
const data = [String(a), "\"" + encodedVal + "\"", "0"];
|
|
40
|
-
res += "\n" + data.join(",");
|
|
41
|
-
a++;
|
|
42
|
-
});
|
|
43
|
-
return res;
|
|
44
|
-
}
|
|
45
|
-
get0EffectCardsInCurrentFormat() {
|
|
46
|
-
const rarity = ["white", "blue", "green", "red", "yellow", "purple"];
|
|
47
|
-
const res = {};
|
|
48
|
-
Object.keys(cards_1.default).forEach(k => {
|
|
49
|
-
const key = k;
|
|
50
|
-
const obj = cards_1.default[key];
|
|
51
|
-
if (obj.effects.length === 0 && (!obj.upgraded || obj.upgraded.effects.length === 0)) {
|
|
52
|
-
const obj1 = {
|
|
53
|
-
level: obj.level,
|
|
54
|
-
rarityID: rarity.indexOf(obj.rarity),
|
|
55
|
-
extensionArr: !obj.extention ? [] : [obj.extention],
|
|
56
|
-
belongTo: [obj.belongTo],
|
|
57
|
-
atk: obj.atk,
|
|
58
|
-
hp: obj.hp,
|
|
59
|
-
effects: {},
|
|
60
|
-
imgURL: `oldImgURL(${obj.name.codeName})`,
|
|
61
|
-
partition: [],
|
|
62
|
-
};
|
|
63
|
-
const datum = {
|
|
64
|
-
variantData: {
|
|
65
|
-
base: obj1,
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
if (obj.isUpgradable) {
|
|
69
|
-
const obj2 = {
|
|
70
|
-
atk: obj.upgraded.atk,
|
|
71
|
-
hp: obj.upgraded.hp,
|
|
72
|
-
};
|
|
73
|
-
if (obj2.atk === obj1.atk)
|
|
74
|
-
delete obj2.atk;
|
|
75
|
-
if (obj2.hp === obj1.hp)
|
|
76
|
-
delete obj2.hp;
|
|
77
|
-
datum.variantData["upgrade_1"] = obj2;
|
|
78
|
-
}
|
|
79
|
-
const str = obj.name.displayName;
|
|
80
|
-
res["c_" + str.split(".")[0].toLowerCase()] = datum;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
return JSON.stringify(res, null, 4);
|
|
84
|
-
}
|
|
85
|
-
getGeneric() {
|
|
86
|
-
const rarity = ["white", "blue", "green", "red", "yellow", "purple"];
|
|
87
|
-
const res = {};
|
|
88
|
-
Object.keys(cards_1.default).forEach(k => {
|
|
89
|
-
const key = k;
|
|
90
|
-
const obj = cards_1.default[key];
|
|
91
|
-
if (obj.belongTo === "generic") {
|
|
92
|
-
const ex = obj.extention;
|
|
93
|
-
const obj1 = {
|
|
94
|
-
level: obj.level,
|
|
95
|
-
rarityID: rarity.indexOf(obj.rarity),
|
|
96
|
-
extensionArr: !obj.extention ? [] : [ex],
|
|
97
|
-
belongTo: [obj.belongTo],
|
|
98
|
-
atk: obj.atk,
|
|
99
|
-
hp: obj.hp,
|
|
100
|
-
effects: {},
|
|
101
|
-
imgURL: `oldImgURL(${obj.name.codeName})`,
|
|
102
|
-
partition: [],
|
|
103
|
-
};
|
|
104
|
-
const datum = {
|
|
105
|
-
variantData: {
|
|
106
|
-
base: obj1,
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
if (obj.isUpgradable) {
|
|
110
|
-
const obj2 = {
|
|
111
|
-
atk: obj.upgraded.atk,
|
|
112
|
-
hp: obj.upgraded.hp,
|
|
113
|
-
effects: {}
|
|
114
|
-
};
|
|
115
|
-
if (obj2.atk === obj1.atk)
|
|
116
|
-
delete obj2.atk;
|
|
117
|
-
if (obj2.hp === obj1.hp)
|
|
118
|
-
delete obj2.hp;
|
|
119
|
-
datum.variantData["upgrade_1"] = obj2;
|
|
120
|
-
}
|
|
121
|
-
const str = obj.name.displayName;
|
|
122
|
-
res["c_" + str.split(".")[0].toLowerCase()] = datum;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
return JSON.stringify(res, null, 4);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
const Processor = new dataProcessor();
|
|
129
|
-
exports.default = Processor;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import registryAPI from "../../types/abstract/gameComponents/API";
|
|
2
|
-
import cardLoader from "../loader/loader_card";
|
|
3
|
-
import effectLoader from "../loader/loader_effect";
|
|
4
|
-
import subtypeLoader from "../loader/loader_subtype";
|
|
5
|
-
import typeLoader from "../loader/loader_type";
|
|
6
|
-
import zoneLoader from "../loader/loader_zone";
|
|
7
|
-
import customHandlerLoader from "../loader/loader_handler";
|
|
8
|
-
import localizationLoader from "../loader/loader_localization";
|
|
9
|
-
import { type cardData, type effectData } from "../../data/cardRegistry";
|
|
10
|
-
import type { Setting } from "../../types/abstract/gameComponents/settings";
|
|
11
|
-
import type { Action } from "./actionGenrator";
|
|
12
|
-
import type queenSystem from "../queenSystem";
|
|
13
|
-
import type Effect from "../../types/abstract/gameComponents/effect";
|
|
14
|
-
import type EffectSubtype from "../../types/abstract/gameComponents/effectSubtype";
|
|
15
|
-
import type { zoneData } from "../../data/zoneRegistry";
|
|
16
|
-
import type Zone from "../../types/abstract/gameComponents/zone";
|
|
17
|
-
export default class registryHandler implements registryAPI {
|
|
18
|
-
cardLoader: cardLoader;
|
|
19
|
-
effectLoader: effectLoader;
|
|
20
|
-
typeLoader: typeLoader;
|
|
21
|
-
subTypeLoader: subtypeLoader;
|
|
22
|
-
zoneLoader: zoneLoader;
|
|
23
|
-
customActionLoader: customHandlerLoader;
|
|
24
|
-
localizationLoader: localizationLoader;
|
|
25
|
-
constructor(s: Setting);
|
|
26
|
-
registry_edit_card(key: string, value: cardData): void;
|
|
27
|
-
registry_edit_custom_action_handler(actionIDs: number[], handlerFunc: ((a: Action, system: queenSystem) => undefined | Action[])): void;
|
|
28
|
-
registry_edit_effect_data(key: string, val: effectData): void;
|
|
29
|
-
registry_edit_effect_class(key: string, constructor: typeof Effect): void;
|
|
30
|
-
registry_edit_effect(key: string, data: effectData, constructor: typeof Effect): void;
|
|
31
|
-
registry_edit_effect_subtype(key: string, constructor: typeof EffectSubtype): void;
|
|
32
|
-
registry_edit_localization(language: string, key: string, val: string): void;
|
|
33
|
-
registry_edit_zone_data(key: string, data: zoneData): void;
|
|
34
|
-
registry_edit_zone_class(key: string, constructor: typeof Zone): void;
|
|
35
|
-
registry_edit_zone(key: string, data: zoneData, constructor: typeof Zone): void;
|
|
36
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
//importing loaders
|
|
7
|
-
const loader_card_1 = __importDefault(require("../loader/loader_card"));
|
|
8
|
-
const loader_effect_1 = __importDefault(require("../loader/loader_effect"));
|
|
9
|
-
const loader_subtype_1 = __importDefault(require("../loader/loader_subtype"));
|
|
10
|
-
const loader_type_1 = __importDefault(require("../loader/loader_type"));
|
|
11
|
-
const loader_zone_1 = __importDefault(require("../loader/loader_zone"));
|
|
12
|
-
const loader_handler_1 = __importDefault(require("../loader/loader_handler"));
|
|
13
|
-
const loader_localization_1 = __importDefault(require("../loader/loader_localization"));
|
|
14
|
-
const effectRegistry_1 = __importDefault(require("../../data/effectRegistry"));
|
|
15
|
-
class registryHandler {
|
|
16
|
-
constructor(s) {
|
|
17
|
-
this.subTypeLoader = new loader_subtype_1.default();
|
|
18
|
-
this.zoneLoader = new loader_zone_1.default();
|
|
19
|
-
this.customActionLoader = new loader_handler_1.default();
|
|
20
|
-
this.localizationLoader = new loader_localization_1.default(s);
|
|
21
|
-
this.typeLoader = new loader_type_1.default();
|
|
22
|
-
this.effectLoader = new loader_effect_1.default(effectRegistry_1.default, this.subTypeLoader, this.typeLoader);
|
|
23
|
-
this.cardLoader = new loader_card_1.default(this.effectLoader);
|
|
24
|
-
}
|
|
25
|
-
registry_edit_card(key, value) {
|
|
26
|
-
this.cardLoader.load(key, value);
|
|
27
|
-
}
|
|
28
|
-
registry_edit_custom_action_handler(actionIDs, handlerFunc) {
|
|
29
|
-
actionIDs.forEach(i => this.customActionLoader.load(i, handlerFunc));
|
|
30
|
-
}
|
|
31
|
-
registry_edit_effect_data(key, val) {
|
|
32
|
-
this.effectLoader.add(key, val);
|
|
33
|
-
}
|
|
34
|
-
registry_edit_effect_class(key, constructor) {
|
|
35
|
-
this.effectLoader.add(key, constructor);
|
|
36
|
-
}
|
|
37
|
-
registry_edit_effect(key, data, constructor) {
|
|
38
|
-
this.effectLoader.add(key, data);
|
|
39
|
-
this.effectLoader.add(key, constructor);
|
|
40
|
-
}
|
|
41
|
-
registry_edit_effect_subtype(key, constructor) {
|
|
42
|
-
this.subTypeLoader.load(key, constructor);
|
|
43
|
-
}
|
|
44
|
-
registry_edit_localization(language, key, val) {
|
|
45
|
-
this.localizationLoader.add(language, key, val);
|
|
46
|
-
}
|
|
47
|
-
// registry_edit_rarity(key: number, data: rarityData): void {
|
|
48
|
-
// (operatorDataRegistry as any)[key] = data
|
|
49
|
-
// if(operatorRegistry[key] === undefined){
|
|
50
|
-
// operatorRegistry[key]
|
|
51
|
-
// }
|
|
52
|
-
// }
|
|
53
|
-
registry_edit_zone_data(key, data) {
|
|
54
|
-
this.zoneLoader.load(key, data);
|
|
55
|
-
}
|
|
56
|
-
registry_edit_zone_class(key, constructor) {
|
|
57
|
-
this.zoneLoader.load(key, undefined, constructor);
|
|
58
|
-
}
|
|
59
|
-
registry_edit_zone(key, data, constructor) {
|
|
60
|
-
this.zoneLoader.load(key, data, constructor);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.default = registryHandler;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type Zone from "../../types/abstract/gameComponents/zone";
|
|
2
|
-
import type Effect from "../../types/abstract/gameComponents/effect";
|
|
3
|
-
import type Card from "../../types/abstract/gameComponents/card";
|
|
4
|
-
import type EffectSubtype from "../../types/abstract/gameComponents/effectSubtype";
|
|
5
|
-
import System from "../../types/defaultZones/system";
|
|
6
|
-
import Deck from "../../types/defaultZones/deck";
|
|
7
|
-
import Storage from "../../types/defaultZones/storage";
|
|
8
|
-
import Grave from "../../types/defaultZones/grave";
|
|
9
|
-
import Hand from "../../types/defaultZones/hand";
|
|
10
|
-
import Field from "../../types/defaultZones/field";
|
|
11
|
-
import Ability from "../../types/defaultZones/ability";
|
|
12
|
-
import Void from "../../types/defaultZones/void";
|
|
13
|
-
import type { Setting } from "../../types/abstract/gameComponents/settings";
|
|
14
|
-
import { playerTypeID, zoneData } from "../../data/zoneRegistry";
|
|
15
|
-
import type { StatusEffect_base } from "../../specificEffects/e_status";
|
|
16
|
-
import { cardNotExist } from "../../types/errors";
|
|
17
|
-
import type registryHandler from "./registryHandler";
|
|
18
|
-
import Position from "../../types/abstract/generics/position";
|
|
19
|
-
import { Action, Action_class } from "./actionGenrator";
|
|
20
|
-
import { type identificationInfo_card } from "../../data/systemRegistry";
|
|
21
|
-
import type error from "../../types/errors/error";
|
|
22
|
-
import type { dry_system, player_stat } from "../../data/systemRegistry";
|
|
23
|
-
import type queenSystem from "../queenSystem";
|
|
24
|
-
import Drop from "../../types/defaultZones/drop";
|
|
25
|
-
declare class zoneHandler {
|
|
26
|
-
zoneArr: ReadonlyArray<Zone>;
|
|
27
|
-
private loader;
|
|
28
|
-
constructor(regs: registryHandler);
|
|
29
|
-
loadZones(s: Setting, players: player_stat[]): void;
|
|
30
|
-
private sortFunc;
|
|
31
|
-
private correctID;
|
|
32
|
-
load(key: string, data: zoneData, c?: typeof Zone): void;
|
|
33
|
-
add(zclassID: string, s: Setting, ptype?: playerTypeID | -1, pid?: number, zDataID?: string): void;
|
|
34
|
-
load_and_add_noPlayer(key: string, s: Setting, data: zoneData, c: typeof Zone): void;
|
|
35
|
-
load_and_add_noPlayer(key: string, s: Setting, _class: typeof Zone, dataID?: string): void;
|
|
36
|
-
load_and_add_noPlayer(key: string, s: Setting, data: zoneData, classID?: string): void;
|
|
37
|
-
addNewPlayerInstancedZones(s: Setting, ptype: playerTypeID, pid?: number): void;
|
|
38
|
-
private genericHandler_card;
|
|
39
|
-
private genericHandler_effect;
|
|
40
|
-
private genericHandler_subtype;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param a : a pos change action, with 2 targets, a card target and a position target in index 0 and 1
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
handlePosChange(s: dry_system, a: Action<"a_pos_change">): Action[];
|
|
47
|
-
handleDraw(s: dry_system, a: Action<"a_draw">): Action[];
|
|
48
|
-
handleShuffle(s: dry_system, a: Action<"a_shuffle">): Action[];
|
|
49
|
-
handleTurnReset(s: dry_system, a: Action<"a_turn_reset">): Action[];
|
|
50
|
-
handleCardReset(s: dry_system, a: Action<"a_reset_card">): Action[];
|
|
51
|
-
handleEffectReset(s: dry_system, a: Action<"a_reset_effect">): Action[];
|
|
52
|
-
handleEffectActivation(s: queenSystem, a: Action<"a_activate_effect">): Action[];
|
|
53
|
-
handleActivateEffectSubtypeFunc(s: dry_system, a: Action<"a_activate_effect_subtype">): Action[];
|
|
54
|
-
handleAddStatusEffect(s: dry_system, a: Action<"a_add_status_effect">, e: StatusEffect_base): Action[];
|
|
55
|
-
handleClearAllStatusEffect(s: dry_system, a: Action<"a_clear_all_status_effect">): Action[];
|
|
56
|
-
handleRemoveStatusEffect(s: dry_system, a: Action<"a_remove_status_effect">): Action[];
|
|
57
|
-
handleCardStatus(s: dry_system, a: Action<"a_enable_card"> | Action<"a_disable_card">): Action[];
|
|
58
|
-
getWouldBeAttackTarget(s: dry_system, a: Action): [Zone, Card[]] | [];
|
|
59
|
-
handleAttack(s: dry_system, a: Action<"a_attack">): Action[];
|
|
60
|
-
handleDealDamage_1(s: dry_system, a: Action<"a_deal_damage_card"> | Action<"a_deal_damage_internal">): error[] | Action_class<[identificationInfo_card], never, {}>[];
|
|
61
|
-
handleDealDamage_2(s: dry_system, a: Action<"a_deal_damage_position">): cardNotExist[] | Action_class<[identificationInfo_card], never, {}>[];
|
|
62
|
-
handleExecute(s: dry_system, a: Action<"a_execute">): error[] | (Action_class<[identificationInfo_card, import("../../data/systemRegistry").identificationInfo_pos], never, {}> | Action_class<[identificationInfo_card], number, {
|
|
63
|
-
dmg: number | undefined;
|
|
64
|
-
dmgType: number | undefined;
|
|
65
|
-
}>)[];
|
|
66
|
-
handleSendToTop(s: dry_system, a: Action<"a_destroy"> | Action<"a_decompile">, zid: number): Action_class<[identificationInfo_card, import("../../data/systemRegistry").identificationInfo_pos], never, {}>[] | error[];
|
|
67
|
-
getZoneRespond(z: Zone, s: dry_system, a: Action): Action[];
|
|
68
|
-
handleZoneInteract(z: Zone, s: dry_system, a: Action): Action[];
|
|
69
|
-
respond(system: dry_system, a: Action, zoneResponsesOnly?: boolean): [Action[], [string, string[]][]];
|
|
70
|
-
forEach(depth: 0, callback: ((z: Zone, zid: number) => void)): void;
|
|
71
|
-
forEach(depth: 1, callback: ((c: Card, zid: number, cid: number) => void)): void;
|
|
72
|
-
forEach(depth: 2, callback: ((e: Effect, zid: number, cid: number, eid: number) => void)): void;
|
|
73
|
-
forEach(depth: 3, callback: ((st: EffectSubtype, zid: number, cid: number, eid: number, stid: number) => void)): void;
|
|
74
|
-
map<T>(depth: 0, callback: ((z: Zone, zid: number) => T)): T[];
|
|
75
|
-
map<T>(depth: 1, callback: ((c: Card, zid: number, cid: number) => T)): T[];
|
|
76
|
-
map<T>(depth: 2, callback: ((e: Effect, zid: number, cid: number, eid: number) => T)): T[];
|
|
77
|
-
map<T>(depth: 3, callback: ((st: EffectSubtype, zid: number, cid: number, eid: number, stid: number) => T)): T[];
|
|
78
|
-
filter(depth: 0, callback: ((z: Zone, zid: number) => boolean)): Zone[];
|
|
79
|
-
filter(depth: 1, callback: ((c: Card, zid: number, cid: number) => boolean)): Card[];
|
|
80
|
-
filter(depth: 2, callback: ((e: Effect, zid: number, cid: number, eid: number) => boolean)): Effect[];
|
|
81
|
-
filter(depth: 3, callback: ((st: EffectSubtype, zid: number, cid: number, eid: number, stid: number) => boolean)): EffectSubtype[];
|
|
82
|
-
getEffectWithID(eid: string): Effect | undefined;
|
|
83
|
-
getZoneWithType(type: number): Zone<undefined, undefined, undefined, undefined>[];
|
|
84
|
-
enforceCardIntoZone(zoneIdx: number, cardArr: Card[]): void;
|
|
85
|
-
getZoneWithDataID(dataID: string): Zone[];
|
|
86
|
-
getZoneWithClassID(classID: string): Zone[];
|
|
87
|
-
getZoneWithName(zoneName: string): Zone<undefined, undefined, undefined, undefined> | undefined;
|
|
88
|
-
getZoneWithID(id: number): Zone | undefined;
|
|
89
|
-
getCardWithID(cardID: string): Card | undefined;
|
|
90
|
-
getCardWithPosition(pos: Position): Card | undefined;
|
|
91
|
-
get system(): System[];
|
|
92
|
-
get void(): Void[];
|
|
93
|
-
get decks(): Deck[];
|
|
94
|
-
get storages(): Storage[];
|
|
95
|
-
get hands(): Hand[];
|
|
96
|
-
get abilityZones(): Ability[];
|
|
97
|
-
get graves(): Grave[];
|
|
98
|
-
get fields(): Field[];
|
|
99
|
-
get drops(): Drop[];
|
|
100
|
-
getPlayerZone(pid: number, type: number): Zone[];
|
|
101
|
-
}
|
|
102
|
-
export default zoneHandler;
|