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,82 +0,0 @@
|
|
|
1
|
-
import type { dry_card, dry_system, inputData, dry_effect, dry_zone, dry_position, inputData_card, inputData_zone } from "../../../data/systemRegistry";
|
|
2
|
-
import { type Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
3
|
-
import type Card from "./card";
|
|
4
|
-
import type EffectSubtype from "./effectSubtype";
|
|
5
|
-
import type { effectData } from "../../../data/cardRegistry";
|
|
6
|
-
import EffectType from "./effectType";
|
|
7
|
-
import { id_able } from "../../misc";
|
|
8
|
-
import { inputRequester, inputRequester_finalized } from "../../../_queenSystem/handler/actionInputGenerator";
|
|
9
|
-
import { zoneRegistry } from "../../../data/zoneRegistry";
|
|
10
|
-
declare class Effect<inputTupleType extends inputData[] = inputData[]> {
|
|
11
|
-
id: string;
|
|
12
|
-
dataID: string;
|
|
13
|
-
type: EffectType;
|
|
14
|
-
subTypes: EffectSubtype[];
|
|
15
|
-
readonly originalData: effectData;
|
|
16
|
-
isDisabled: boolean;
|
|
17
|
-
attr: Map<string, number>;
|
|
18
|
-
get signature_type(): string;
|
|
19
|
-
get signature_type_subtype(): string;
|
|
20
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
21
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputTupleType extends [] ? undefined : inputRequester_finalized<inputTupleType>): Action[];
|
|
22
|
-
private __cached_input;
|
|
23
|
-
addedInputConditionMap: Partial<{
|
|
24
|
-
c(c: dry_card): boolean;
|
|
25
|
-
e(e: dry_effect): boolean;
|
|
26
|
-
z(z: dry_zone): boolean;
|
|
27
|
-
p(p: dry_position): boolean;
|
|
28
|
-
n(n: number): boolean;
|
|
29
|
-
}>;
|
|
30
|
-
/** @final */
|
|
31
|
-
getInputObj(c: dry_card, s: dry_system, a: Action): inputTupleType extends [] ? undefined : inputRequester<any, inputTupleType>;
|
|
32
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputTupleType extends [] ? undefined : inputRequester<any, inputTupleType>;
|
|
33
|
-
/** @final */
|
|
34
|
-
canRespondAndActivate_prelim(c: Card, system: dry_system, a: Action): boolean;
|
|
35
|
-
/** @final */
|
|
36
|
-
activate(c: Card, system: dry_system, a: Action, input: inputTupleType extends [] ? undefined : inputRequester_finalized<inputTupleType>): Action[];
|
|
37
|
-
/** @final */
|
|
38
|
-
getSubtypeidx(subtypeID: string): number;
|
|
39
|
-
activateSubtypeSpecificFunc(subtypeIdentifier: string | number, c: Card, system: dry_system, a: Action): Action[];
|
|
40
|
-
constructor(id: string, dataID: string, type: EffectType, subTypes: EffectSubtype[] | undefined, data: effectData);
|
|
41
|
-
get displayID(): string;
|
|
42
|
-
addSubType(st: EffectSubtype): void;
|
|
43
|
-
removeSubType(stid: string): void;
|
|
44
|
-
/** @final */
|
|
45
|
-
disable(): void;
|
|
46
|
-
/** @final */
|
|
47
|
-
toDry(): this;
|
|
48
|
-
/** @final */
|
|
49
|
-
enable(): void;
|
|
50
|
-
/** @final */
|
|
51
|
-
is(p: Function): this is boolean;
|
|
52
|
-
is(p: id_able): boolean;
|
|
53
|
-
get count(): number;
|
|
54
|
-
get doArchtypeCheck(): boolean;
|
|
55
|
-
get checkLevel(): number;
|
|
56
|
-
get mult(): number;
|
|
57
|
-
getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
|
|
58
|
-
reset(): Action[];
|
|
59
|
-
toString(spaces?: number): string;
|
|
60
|
-
cause(s: dry_system, c: dry_card): import("../../../data/systemRegistry").identificationInfo_effect;
|
|
61
|
-
private overrideActivationCondition?;
|
|
62
|
-
static listen(f: Exclude<Effect<any>["overrideActivationCondition"], undefined>): typeof Effect;
|
|
63
|
-
static beforeActivate<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, ...p: Parameters<ObjAfterConstructor<T>["activate_final"]>) => void): typeof Effect;
|
|
64
|
-
/**then
|
|
65
|
-
* Allows the quick creation of a new effect class
|
|
66
|
-
* overriding the original action[] result
|
|
67
|
-
* Does NOT asks for more input
|
|
68
|
-
* */
|
|
69
|
-
static then<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, res: Action[], ...p: Parameters<ObjAfterConstructor<T>["activate_final"]>) => Action[]): typeof Effect;
|
|
70
|
-
static thenShares<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, res: Action[], ...p: [...Parameters<ObjAfterConstructor<T>["activate_final"]>, Effect<any>]) => [string, number]): typeof Effect;
|
|
71
|
-
static implyCondition<T extends new (...p: any[]) => Effect<any>, K extends keyof Effect["addedInputConditionMap"]>(this: T, type: K, cond: (this: Effect<any>, p: Parameters<Exclude<Effect["addedInputConditionMap"][K], undefined>>[0], ...p2: Parameters<Exclude<Effect["overrideActivationCondition"], undefined>>) => boolean): T;
|
|
72
|
-
static removeInput<T extends new (...p: any[]) => Effect<any>, oldInputType extends inputData[] = T extends new (...p: any[]) => Effect<infer X> ? (X extends [] ? never : X) : never>(this: T, converter: (this: Effect<any>, ...p: [dry_card, dry_system, Action]) => oldInputType | oldInputType[]): typeof Effect<[]>;
|
|
73
|
-
static retarget<newInputType extends inputData[], T extends new (...p: any[]) => Effect<any>, oldInputType extends inputData[] = T extends new (...p: any[]) => Effect<infer X> ? (X extends [] ? never : X) : never>(this: T, newInputFunc: (this: Effect<any>, ...p: [dry_card, dry_system, Action]) => inputRequester<any, newInputType>, converter: (this: Effect<any>, newInput: newInputType, ...p: [dry_card, dry_system, Action]) => oldInputType | oldInputType[]): typeof Effect<newInputType>;
|
|
74
|
-
static toOthersOfSameField(this: typeof Effect<inputData_card[]>, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
|
|
75
|
-
static toAllEnemies(this: typeof Effect<inputData_card[]>, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
|
|
76
|
-
static toAllOfZone(this: typeof Effect<inputData_card[]>, newInputFunc: Effect<[inputData_zone]>["createInputObj"], filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
|
|
77
|
-
static toAllOfSpecificZone(this: typeof Effect<inputData_card[]>, type: zoneRegistry, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
|
|
78
|
-
static toThisCard(this: typeof Effect<inputData_card[]>): typeof Effect;
|
|
79
|
-
static moreInput<originalInput extends Exclude<inputData[], []>, extraInput extends Exclude<inputData[], []>>(this: typeof Effect<originalInput>, moreInputFunc: (this: Effect<any>, c: dry_card, s: dry_system, a: Action) => inputRequester<any, extraInput>, handler?: (this: Effect<any>, c: dry_card, s: dry_system, a: Action, input: [...originalInput, ...extraInput]) => Action[]): typeof Effect<[...originalInput, ...extraInput]>;
|
|
80
|
-
}
|
|
81
|
-
type ObjAfterConstructor<T> = T extends new (...p: any[]) => infer K ? K : never;
|
|
82
|
-
export default Effect;
|
|
@@ -1,331 +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 actionGenrator_1 = require("../../../_queenSystem/handler/actionGenrator");
|
|
7
|
-
//some effects can modify event data
|
|
8
|
-
//so in general, activate takes in an event and spits out an event
|
|
9
|
-
const actionInputGenerator_1 = require("../../../_queenSystem/handler/actionInputGenerator");
|
|
10
|
-
const actionInputRequesterGenerator_1 = __importDefault(require("../../../_queenSystem/handler/actionInputRequesterGenerator"));
|
|
11
|
-
class Effect {
|
|
12
|
-
get signature_type() {
|
|
13
|
-
return this.type.dataID;
|
|
14
|
-
}
|
|
15
|
-
get signature_type_subtype() {
|
|
16
|
-
const sep = "===";
|
|
17
|
-
return this.signature_type + sep + this.subTypes.map(i => i.dataID).join(sep);
|
|
18
|
-
}
|
|
19
|
-
//actual effects override these two
|
|
20
|
-
canRespondAndActivate_final(c, system, a) { return this.constructor.name !== "Effect"; }
|
|
21
|
-
activate_final(c, s, a, input) { return []; }
|
|
22
|
-
;
|
|
23
|
-
/** @final */
|
|
24
|
-
getInputObj(c, s, a) {
|
|
25
|
-
if (this.__cached_input.hasValue)
|
|
26
|
-
return this.__cached_input.value;
|
|
27
|
-
this.__cached_input = {
|
|
28
|
-
hasValue: true,
|
|
29
|
-
value: this.createInputObj(c, s, a)
|
|
30
|
-
};
|
|
31
|
-
return this.__cached_input.value;
|
|
32
|
-
}
|
|
33
|
-
//createInputObj should be deterministic
|
|
34
|
-
//activate once per activate call
|
|
35
|
-
createInputObj(c, s, a) {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
//Update 1.2.6 : Move the condition closer to the activate, i.e inside it
|
|
39
|
-
//to avoid condition conflicts
|
|
40
|
-
//can repond -> 2 functions, canRespond_prelim and canRespond_final
|
|
41
|
-
/** @final */
|
|
42
|
-
canRespondAndActivate_prelim(c, system, a) {
|
|
43
|
-
let res = -1;
|
|
44
|
-
let trueForceFlag = false;
|
|
45
|
-
let falseForceFlag = false;
|
|
46
|
-
const overrideIndexes = [];
|
|
47
|
-
let skipTypeCheck = false;
|
|
48
|
-
if (this.isDisabled)
|
|
49
|
-
return false;
|
|
50
|
-
if (!c.canAct)
|
|
51
|
-
return false;
|
|
52
|
-
for (let i = 0; i < this.subTypes.length; i++) {
|
|
53
|
-
//if any non-disabled subtype returns returns that instead
|
|
54
|
-
if (this.subTypes[i].isDisabled)
|
|
55
|
-
continue;
|
|
56
|
-
res = this.subTypes[i].onEffectCheckCanActivate(c, this, system, a);
|
|
57
|
-
if (res === -1)
|
|
58
|
-
continue;
|
|
59
|
-
if (res === -2) {
|
|
60
|
-
skipTypeCheck = true;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (res)
|
|
64
|
-
trueForceFlag = true;
|
|
65
|
-
else
|
|
66
|
-
falseForceFlag = true;
|
|
67
|
-
overrideIndexes.push(i);
|
|
68
|
-
}
|
|
69
|
-
//resolvin conflict
|
|
70
|
-
if (trueForceFlag && falseForceFlag) {
|
|
71
|
-
//conflict exists
|
|
72
|
-
//false is prioritized
|
|
73
|
-
// return new subTypeOverrideConflict(c.id, this.id, overrideIndexes)
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
if (trueForceFlag)
|
|
77
|
-
return true;
|
|
78
|
-
if (falseForceFlag)
|
|
79
|
-
return false;
|
|
80
|
-
if (!skipTypeCheck) {
|
|
81
|
-
res = this.type.canRespondAndActivate(this, c, system, a);
|
|
82
|
-
if (res !== -1)
|
|
83
|
-
return res;
|
|
84
|
-
}
|
|
85
|
-
//has input check
|
|
86
|
-
const gen = this.getInputObj(c, system, a);
|
|
87
|
-
if (gen !== undefined && !gen.hasInput())
|
|
88
|
-
return false;
|
|
89
|
-
// return this.canRespondAndActivate_final(c, system, a);
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
/** @final */
|
|
93
|
-
activate(c, system, a, input) {
|
|
94
|
-
this.__cached_input = {
|
|
95
|
-
hasValue: false
|
|
96
|
-
};
|
|
97
|
-
if (this.overrideActivationCondition && !this.overrideActivationCondition.bind(this)(c, system, a)) {
|
|
98
|
-
return [];
|
|
99
|
-
}
|
|
100
|
-
if (!this.canRespondAndActivate_final(c, system, a)) {
|
|
101
|
-
return [];
|
|
102
|
-
}
|
|
103
|
-
if (this.isDisabled)
|
|
104
|
-
return [];
|
|
105
|
-
if (!c.canAct)
|
|
106
|
-
return [];
|
|
107
|
-
let res = -1;
|
|
108
|
-
const appenddedRes = [];
|
|
109
|
-
for (let i = 0; i < this.subTypes.length; i++) {
|
|
110
|
-
if (this.subTypes[i].isDisabled)
|
|
111
|
-
continue;
|
|
112
|
-
res = this.subTypes[i].onEffectActivate(c, this, system, a);
|
|
113
|
-
if (res === -1)
|
|
114
|
-
continue;
|
|
115
|
-
appenddedRes.push(...res);
|
|
116
|
-
}
|
|
117
|
-
const final = this.activate_final(c, system, a, input);
|
|
118
|
-
this.type.parseAfterActivate(this, c, system, final);
|
|
119
|
-
this.subTypes.forEach(st => st.parseAfterActivate(c, this, system, final));
|
|
120
|
-
return final;
|
|
121
|
-
}
|
|
122
|
-
;
|
|
123
|
-
/** @final */
|
|
124
|
-
getSubtypeidx(subtypeID) {
|
|
125
|
-
for (let i = 0; i > this.subTypes.length; i++) {
|
|
126
|
-
if (this.subTypes[i].dataID === subtypeID)
|
|
127
|
-
return i;
|
|
128
|
-
}
|
|
129
|
-
return -1;
|
|
130
|
-
}
|
|
131
|
-
activateSubtypeSpecificFunc(subtypeIdentifier, c, system, a) {
|
|
132
|
-
if (typeof subtypeIdentifier === "string") {
|
|
133
|
-
subtypeIdentifier = this.getSubtypeidx(subtypeIdentifier);
|
|
134
|
-
}
|
|
135
|
-
if (subtypeIdentifier < 0)
|
|
136
|
-
return [];
|
|
137
|
-
return this.subTypes[subtypeIdentifier].activateSpecificFunctionality(c, this, system, a);
|
|
138
|
-
}
|
|
139
|
-
constructor(id, dataID, type, subTypes = [], data) {
|
|
140
|
-
this.isDisabled = false; //I DO NOT LIKE THIS NAME
|
|
141
|
-
this.__cached_input = {
|
|
142
|
-
hasValue: false
|
|
143
|
-
};
|
|
144
|
-
//@unmodifiable
|
|
145
|
-
this.addedInputConditionMap = {};
|
|
146
|
-
this.id = id;
|
|
147
|
-
this.type = type;
|
|
148
|
-
this.subTypes = subTypes;
|
|
149
|
-
this.dataID = dataID;
|
|
150
|
-
this.originalData = data;
|
|
151
|
-
const k = Object.entries(data).filter(([_, val]) => typeof val === "number");
|
|
152
|
-
this.attr = new Map(k);
|
|
153
|
-
}
|
|
154
|
-
get displayID() { var _a; return (_a = this.originalData.displayID_default) !== null && _a !== void 0 ? _a : this.dataID; }
|
|
155
|
-
addSubType(st) {
|
|
156
|
-
this.subTypes.push(st);
|
|
157
|
-
}
|
|
158
|
-
removeSubType(stid) {
|
|
159
|
-
this.subTypes = this.subTypes.filter(i => i.dataID !== stid);
|
|
160
|
-
}
|
|
161
|
-
/** @final */
|
|
162
|
-
disable() {
|
|
163
|
-
this.isDisabled = true;
|
|
164
|
-
}
|
|
165
|
-
/** @final */
|
|
166
|
-
toDry() {
|
|
167
|
-
return this;
|
|
168
|
-
}
|
|
169
|
-
/** @final */
|
|
170
|
-
enable() {
|
|
171
|
-
this.isDisabled = false;
|
|
172
|
-
}
|
|
173
|
-
is(p) {
|
|
174
|
-
return typeof p === "function" ? this instanceof p : this.id === p.id;
|
|
175
|
-
}
|
|
176
|
-
//common variables
|
|
177
|
-
get count() { var _a; return (_a = this.attr.get("count")) !== null && _a !== void 0 ? _a : 0; }
|
|
178
|
-
get doArchtypeCheck() { return this.attr.get("doArchtypeCheck") != 0; } //!= is intentional to allow undefine = 0
|
|
179
|
-
get checkLevel() { var _a; return (_a = this.attr.get("checkLevel")) !== null && _a !== void 0 ? _a : 0; }
|
|
180
|
-
get mult() { var _a; return (_a = this.attr.get("mult")) !== null && _a !== void 0 ? _a : 1; }
|
|
181
|
-
//effect types:
|
|
182
|
-
// + trigger :
|
|
183
|
-
// responds to "effect resolution"
|
|
184
|
-
// adds each action return as a new tree
|
|
185
|
-
// + passive :
|
|
186
|
-
// responds to "effect activation"
|
|
187
|
-
// may modifies the action it responds to
|
|
188
|
-
// adds the effect to the current node as a child node to the current node
|
|
189
|
-
// + chained trigger :
|
|
190
|
-
// responds to "effect activation"
|
|
191
|
-
// adds a "activate effect" action as a child node to the current node, which activates this one
|
|
192
|
-
//^ implemented
|
|
193
|
-
getDisplayInput(c, system) {
|
|
194
|
-
return Object.keys(this.originalData).sort().map(k => { var _a; return (_a = this.attr.get(k)) !== null && _a !== void 0 ? _a : 0; });
|
|
195
|
-
}
|
|
196
|
-
reset() {
|
|
197
|
-
const res = [];
|
|
198
|
-
this.subTypes.forEach(i => res.push(...i.reset()));
|
|
199
|
-
return res;
|
|
200
|
-
}
|
|
201
|
-
toString(spaces = 2) {
|
|
202
|
-
return JSON.stringify({
|
|
203
|
-
dataID: this.dataID,
|
|
204
|
-
subTypes: this.subTypes,
|
|
205
|
-
// desc : this.desc,
|
|
206
|
-
attr: JSON.stringify(Array.from(Object.entries(this.attr)))
|
|
207
|
-
}, null, spaces);
|
|
208
|
-
}
|
|
209
|
-
cause(s, c) {
|
|
210
|
-
return actionGenrator_1.actionFormRegistry.effect(s, c, this);
|
|
211
|
-
}
|
|
212
|
-
static listen(f) {
|
|
213
|
-
return class ExtendedEff extends this {
|
|
214
|
-
constructor(...p) {
|
|
215
|
-
super(...p);
|
|
216
|
-
this.overrideActivationCondition = f.bind(this);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
static beforeActivate(f) {
|
|
221
|
-
return class ExtendedEff extends this {
|
|
222
|
-
activate_final(...p) {
|
|
223
|
-
const k = p;
|
|
224
|
-
(f.bind(this))(...k);
|
|
225
|
-
return super.activate_final(...k);
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
/**then
|
|
230
|
-
* Allows the quick creation of a new effect class
|
|
231
|
-
* overriding the original action[] result
|
|
232
|
-
* Does NOT asks for more input
|
|
233
|
-
* */
|
|
234
|
-
static then(f) {
|
|
235
|
-
return class ExtendedEff extends this {
|
|
236
|
-
activate_final(...p) {
|
|
237
|
-
const k = p;
|
|
238
|
-
const res = super.activate_final(...k);
|
|
239
|
-
return (f.bind(this))(res, ...k);
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
static thenShares(f) {
|
|
244
|
-
return class ExtendedEff extends this {
|
|
245
|
-
activate_final(...p) {
|
|
246
|
-
const k = p;
|
|
247
|
-
const res = super.activate_final(...k);
|
|
248
|
-
const [key, val] = f.bind(this)(res, ...p, this);
|
|
249
|
-
p[0].addShareMemory(this, key, val);
|
|
250
|
-
return res;
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
static implyCondition(type, cond) {
|
|
255
|
-
return class ExtendedEff extends this {
|
|
256
|
-
createInputObj(c, s, a) {
|
|
257
|
-
this.addedInputConditionMap[type] =
|
|
258
|
-
((c, s, a) => (target) => cond.bind(this)(target, c, s, a))(c, s, a);
|
|
259
|
-
const res = super.createInputObj(c, s, a);
|
|
260
|
-
delete this.addedInputConditionMap[type];
|
|
261
|
-
return res;
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
static removeInput(converter) {
|
|
266
|
-
const originalClass = this; //type dance to convert old -> new
|
|
267
|
-
return class ExtendedEff extends originalClass {
|
|
268
|
-
createInputObj(c, s, a) {
|
|
269
|
-
return undefined;
|
|
270
|
-
}
|
|
271
|
-
activate_final(c, s, a) {
|
|
272
|
-
const oldInput = converter.bind(this)(c, s, a);
|
|
273
|
-
const testObj = oldInput[0];
|
|
274
|
-
if (!testObj || !Array.isArray(testObj))
|
|
275
|
-
return super.activate_final(c, s, a, { next: () => oldInput });
|
|
276
|
-
return testObj.flatMap(o => super.activate_final(c, s, a, { next: () => o }));
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
static retarget(newInputFunc, converter) {
|
|
281
|
-
const originalClass = this; //type dance to convert old -> new
|
|
282
|
-
return class ExtendedEff extends originalClass {
|
|
283
|
-
createInputObj(c, s, a) {
|
|
284
|
-
return newInputFunc.bind(this)(c, s, a);
|
|
285
|
-
}
|
|
286
|
-
activate_final(c, s, a, input) {
|
|
287
|
-
const r = input === null || input === void 0 ? void 0 : input.next();
|
|
288
|
-
if (!r)
|
|
289
|
-
return [];
|
|
290
|
-
const oldInput = converter.bind(this)(r, c, s, a);
|
|
291
|
-
const testObj = oldInput[0];
|
|
292
|
-
if (!testObj || !Array.isArray(testObj))
|
|
293
|
-
return super.activate_final(c, s, a, { next: () => oldInput });
|
|
294
|
-
return testObj.flatMap(o => super.activate_final(c, s, a, { next: () => o }));
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
static toOthersOfSameField(filter) {
|
|
299
|
-
return this.removeInput((c, s, a) => s.getZoneOf(c).cardArr_filtered.filter(c1 => c1.id !== c.id && (!filter || filter(c1, c, s, a))).map(c1 => actionInputGenerator_1.inputFormRegistry.card(s, c1)));
|
|
300
|
-
}
|
|
301
|
-
static toAllEnemies(filter) {
|
|
302
|
-
return this.toAllOfZone((c, s, a) => actionInputRequesterGenerator_1.default.oppositeZoneTo(s, c).once(), filter);
|
|
303
|
-
}
|
|
304
|
-
static toAllOfZone(newInputFunc, filter) {
|
|
305
|
-
return this.retarget(newInputFunc, (z, c, s, a) => filter ?
|
|
306
|
-
z[0].data.zone.cardArr_filtered.filter(c1 => filter(c1, c, s, a)).map(c => actionInputGenerator_1.inputFormRegistry.card(s, c)) :
|
|
307
|
-
z[0].data.zone.cardArr_filtered.map(c => actionInputGenerator_1.inputFormRegistry.card(s, c)));
|
|
308
|
-
}
|
|
309
|
-
static toAllOfSpecificZone(type, filter) {
|
|
310
|
-
return this.toAllOfZone((c, s, a) => actionInputRequesterGenerator_1.default.specificType(s, c, type).once(), filter);
|
|
311
|
-
}
|
|
312
|
-
static toThisCard() {
|
|
313
|
-
return this.removeInput((c, s, a) => [actionInputGenerator_1.inputFormRegistry.card(s, c)]);
|
|
314
|
-
}
|
|
315
|
-
static moreInput(moreInputFunc, handler) {
|
|
316
|
-
const originalClass = this;
|
|
317
|
-
return class ExtendedEff extends originalClass {
|
|
318
|
-
createInputObj(c, s, a) {
|
|
319
|
-
this.___input_original = super.createInputObj(c, s, a);
|
|
320
|
-
return this.___input_original.merge(moreInputFunc.bind(this)(c, s, a));
|
|
321
|
-
}
|
|
322
|
-
activate_final(c, s, a, input) {
|
|
323
|
-
const a1 = super.activate_final(c, s, a, this.___input_original);
|
|
324
|
-
if (!handler)
|
|
325
|
-
return a1;
|
|
326
|
-
return a1.concat(handler.bind(this)(c, s, a, input.next()));
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
exports.default = Effect;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type Card from "./card";
|
|
2
|
-
import type { dry_system } from "../../../data/systemRegistry";
|
|
3
|
-
import type { Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
4
|
-
import type Effect from "./effect";
|
|
5
|
-
import { dry_effectSubType } from "../../../data/systemRegistry";
|
|
6
|
-
type doNothingCode = -1;
|
|
7
|
-
type doNothingAndSkipTypeCheckCode = -2;
|
|
8
|
-
declare class EffectSubtype {
|
|
9
|
-
dataID: string;
|
|
10
|
-
isDisabled: boolean;
|
|
11
|
-
constructor(dataID: string);
|
|
12
|
-
onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): doNothingCode | doNothingAndSkipTypeCheckCode | boolean;
|
|
13
|
-
onEffectActivate(c: Card, e: Effect, system: dry_system, a: Action): doNothingCode | Action[];
|
|
14
|
-
parseAfterActivate(c: Card, e: Effect, system: dry_system, res: Action[]): void;
|
|
15
|
-
activateSpecificFunctionality(c: Card, e: Effect, system: dry_system, a: Action): Action[];
|
|
16
|
-
disable(): void;
|
|
17
|
-
enable(): void;
|
|
18
|
-
reset(): Action[];
|
|
19
|
-
toDry(): dry_effectSubType;
|
|
20
|
-
is(p: dry_effectSubType): boolean;
|
|
21
|
-
}
|
|
22
|
-
export default EffectSubtype;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class EffectSubtype {
|
|
4
|
-
constructor(dataID) {
|
|
5
|
-
this.isDisabled = false;
|
|
6
|
-
this.dataID = dataID;
|
|
7
|
-
}
|
|
8
|
-
//the job of this bullshit is to do additonal stuff before the two main functions
|
|
9
|
-
//of effect and may or may not override a forced return early
|
|
10
|
-
//remember, what returns here is simply the extra functionality of the subtype
|
|
11
|
-
//we do not care here what the fuck the effect do
|
|
12
|
-
onEffectCheckCanActivate(c, e, system, a) {
|
|
13
|
-
return -1;
|
|
14
|
-
}
|
|
15
|
-
onEffectActivate(c, e, system, a) {
|
|
16
|
-
//I hereby declare that
|
|
17
|
-
//subtypes cannot override effects
|
|
18
|
-
//whatever returns here shall be appended
|
|
19
|
-
return -1;
|
|
20
|
-
}
|
|
21
|
-
parseAfterActivate(c, e, system, res) { }
|
|
22
|
-
//this is for subtype specific functionality
|
|
23
|
-
activateSpecificFunctionality(c, e, system, a) { return []; }
|
|
24
|
-
disable() {
|
|
25
|
-
this.isDisabled = true;
|
|
26
|
-
}
|
|
27
|
-
enable() {
|
|
28
|
-
this.isDisabled = false;
|
|
29
|
-
}
|
|
30
|
-
reset() {
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
33
|
-
toDry() {
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
is(p) {
|
|
37
|
-
return p.dataID === this.dataID;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.default = EffectSubtype;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type Card from "./card";
|
|
2
|
-
import type { dry_card, dry_effect, dry_system } from "../../../data/systemRegistry";
|
|
3
|
-
import type { Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
4
|
-
type doNothingAndPassCode = -1;
|
|
5
|
-
export default class EffectType {
|
|
6
|
-
dataID: string;
|
|
7
|
-
constructor(dataID: string);
|
|
8
|
-
canRespondAndActivate(eff: dry_effect, c: dry_card, system: dry_system, a: Action): doNothingAndPassCode | boolean;
|
|
9
|
-
parseAfterActivate(eff: dry_effect, c: Card, system: dry_system, res: Action[]): void;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class EffectType {
|
|
4
|
-
constructor(dataID) { this.dataID = dataID; }
|
|
5
|
-
canRespondAndActivate(eff, c, system, a) { return -1; }
|
|
6
|
-
parseAfterActivate(eff, c, system, res) { }
|
|
7
|
-
}
|
|
8
|
-
exports.default = EffectType;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { partitionActivationBehavior } from "../../../data/cardRegistry";
|
|
2
|
-
export declare enum partitionSetting {
|
|
3
|
-
"manual_mapping_no_ghost" = 0,
|
|
4
|
-
"manual_mapping_with_ghost" = 1,//ghosts are gathered into a partition
|
|
5
|
-
"manual_mapping_with_ghost_spread" = 2,//ghosts are gathered one to one into multiple partition
|
|
6
|
-
"auto_mapping_types" = 3,//gather like-typed effects into a partition, no care ab subtype, sorted in enum order
|
|
7
|
-
"auto_mapping_subtypes" = 4,//gather like-subtyped and like-typed effects into a partition, sorted in type enum -> then sutype enum
|
|
8
|
-
"auto_mapping_one_to_one" = 5,//one to one map
|
|
9
|
-
"auto_mapping_ygo" = 6
|
|
10
|
-
}
|
|
11
|
-
export type partitionSetting_manual = partitionSetting.manual_mapping_no_ghost | partitionSetting.manual_mapping_with_ghost | partitionSetting.manual_mapping_with_ghost_spread;
|
|
12
|
-
export type partitionSetting_auto = partitionSetting.auto_mapping_one_to_one | partitionSetting.auto_mapping_subtypes | partitionSetting.auto_mapping_types | partitionSetting.auto_mapping_ygo;
|
|
13
|
-
declare enum supporttedLanguages {
|
|
14
|
-
"English" = 0,
|
|
15
|
-
"Japanese" = 1,
|
|
16
|
-
"testLang" = 2
|
|
17
|
-
}
|
|
18
|
-
declare enum id_style {
|
|
19
|
-
"MINIMAL" = 0,//absolute bare minimum for everything to function (randID + count)
|
|
20
|
-
"REDUCED" = 1,// dataID + minimal
|
|
21
|
-
"FULL" = 2
|
|
22
|
-
}
|
|
23
|
-
declare enum auto_input_option {
|
|
24
|
-
none = 0,//no assumtion, prompt input even if valid choices is only one
|
|
25
|
-
default = 1,//if valid choices is one, skip that input
|
|
26
|
-
first = 2,//auto chooses the first option available
|
|
27
|
-
last = 3,//auto chooses the last option
|
|
28
|
-
random = 4
|
|
29
|
-
}
|
|
30
|
-
declare abstract class Setting {
|
|
31
|
-
abstract languageID: supporttedLanguages;
|
|
32
|
-
abstract dynamic_id_len: number;
|
|
33
|
-
abstract id_style: id_style;
|
|
34
|
-
abstract id_separator: string;
|
|
35
|
-
abstract max_id_count: number;
|
|
36
|
-
abstract effectFolder: string;
|
|
37
|
-
abstract effectFiles: string[];
|
|
38
|
-
abstract mods: string[];
|
|
39
|
-
abstract modFolder_game: string;
|
|
40
|
-
abstract modFolder_parser: string;
|
|
41
|
-
abstract localizationFolder: string;
|
|
42
|
-
abstract ignore_undefined_subtype: boolean;
|
|
43
|
-
abstract ignore_undefined_effect: boolean;
|
|
44
|
-
abstract show_negative_stat: boolean;
|
|
45
|
-
abstract auto_input: auto_input_option;
|
|
46
|
-
abstract ignore_invalid_partition_mapping: boolean;
|
|
47
|
-
abstract global_partition_setting: partitionSetting;
|
|
48
|
-
abstract default_partition_behavior: partitionActivationBehavior;
|
|
49
|
-
abstract parser_modules: string[];
|
|
50
|
-
abstract singleton_effect_subtype: boolean;
|
|
51
|
-
abstract singleton_effect_type: boolean;
|
|
52
|
-
abstract spawn_instanced_zones_per_player: boolean;
|
|
53
|
-
}
|
|
54
|
-
declare class defaultSetting extends Setting {
|
|
55
|
-
languageID: supporttedLanguages;
|
|
56
|
-
mods: never[];
|
|
57
|
-
dynamic_id_len: number;
|
|
58
|
-
id_style: id_style;
|
|
59
|
-
id_separator: string;
|
|
60
|
-
max_id_count: number;
|
|
61
|
-
effectFolder: string;
|
|
62
|
-
effectFiles: string[];
|
|
63
|
-
modFolder_game: string;
|
|
64
|
-
modFolder_parser: string;
|
|
65
|
-
localizationFolder: string;
|
|
66
|
-
ignore_undefined_subtype: boolean;
|
|
67
|
-
ignore_undefined_effect: boolean;
|
|
68
|
-
show_negative_stat: boolean;
|
|
69
|
-
ignore_invalid_partition_mapping: boolean;
|
|
70
|
-
global_partition_setting: partitionSetting;
|
|
71
|
-
default_partition_behavior: partitionActivationBehavior;
|
|
72
|
-
parser_modules: string[];
|
|
73
|
-
singleton_effect_subtype: boolean;
|
|
74
|
-
singleton_effect_type: boolean;
|
|
75
|
-
spawn_instanced_zones_per_player: boolean;
|
|
76
|
-
auto_input: auto_input_option;
|
|
77
|
-
}
|
|
78
|
-
declare const _default: defaultSetting;
|
|
79
|
-
export default _default;
|
|
80
|
-
export { Setting, defaultSetting, supporttedLanguages, auto_input_option, id_style, };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.id_style = exports.auto_input_option = exports.supporttedLanguages = exports.defaultSetting = exports.Setting = exports.partitionSetting = void 0;
|
|
4
|
-
const cardRegistry_1 = require("../../../data/cardRegistry");
|
|
5
|
-
var partitionSetting;
|
|
6
|
-
(function (partitionSetting) {
|
|
7
|
-
partitionSetting[partitionSetting["manual_mapping_no_ghost"] = 0] = "manual_mapping_no_ghost";
|
|
8
|
-
partitionSetting[partitionSetting["manual_mapping_with_ghost"] = 1] = "manual_mapping_with_ghost";
|
|
9
|
-
partitionSetting[partitionSetting["manual_mapping_with_ghost_spread"] = 2] = "manual_mapping_with_ghost_spread";
|
|
10
|
-
partitionSetting[partitionSetting["auto_mapping_types"] = 3] = "auto_mapping_types";
|
|
11
|
-
partitionSetting[partitionSetting["auto_mapping_subtypes"] = 4] = "auto_mapping_subtypes";
|
|
12
|
-
partitionSetting[partitionSetting["auto_mapping_one_to_one"] = 5] = "auto_mapping_one_to_one";
|
|
13
|
-
partitionSetting[partitionSetting["auto_mapping_ygo"] = 6] = "auto_mapping_ygo"; //maps all effects to one partition (gonna be hella fun)
|
|
14
|
-
})(partitionSetting || (exports.partitionSetting = partitionSetting = {}));
|
|
15
|
-
var supporttedLanguages;
|
|
16
|
-
(function (supporttedLanguages) {
|
|
17
|
-
supporttedLanguages[supporttedLanguages["English"] = 0] = "English";
|
|
18
|
-
supporttedLanguages[supporttedLanguages["Japanese"] = 1] = "Japanese";
|
|
19
|
-
supporttedLanguages[supporttedLanguages["testLang"] = 2] = "testLang";
|
|
20
|
-
})(supporttedLanguages || (exports.supporttedLanguages = supporttedLanguages = {}));
|
|
21
|
-
var id_style;
|
|
22
|
-
(function (id_style) {
|
|
23
|
-
id_style[id_style["MINIMAL"] = 0] = "MINIMAL";
|
|
24
|
-
id_style[id_style["REDUCED"] = 1] = "REDUCED";
|
|
25
|
-
id_style[id_style["FULL"] = 2] = "FULL";
|
|
26
|
-
})(id_style || (exports.id_style = id_style = {}));
|
|
27
|
-
var auto_input_option;
|
|
28
|
-
(function (auto_input_option) {
|
|
29
|
-
auto_input_option[auto_input_option["none"] = 0] = "none";
|
|
30
|
-
auto_input_option[auto_input_option["default"] = 1] = "default";
|
|
31
|
-
//the below skips all input prompting
|
|
32
|
-
auto_input_option[auto_input_option["first"] = 2] = "first";
|
|
33
|
-
auto_input_option[auto_input_option["last"] = 3] = "last";
|
|
34
|
-
auto_input_option[auto_input_option["random"] = 4] = "random";
|
|
35
|
-
})(auto_input_option || (exports.auto_input_option = auto_input_option = {}));
|
|
36
|
-
class Setting {
|
|
37
|
-
}
|
|
38
|
-
exports.Setting = Setting;
|
|
39
|
-
class defaultSetting extends Setting {
|
|
40
|
-
constructor() {
|
|
41
|
-
super(...arguments);
|
|
42
|
-
this.languageID = supporttedLanguages.English;
|
|
43
|
-
this.mods = []; //no mods
|
|
44
|
-
this.dynamic_id_len = 5;
|
|
45
|
-
this.id_style = id_style.MINIMAL;
|
|
46
|
-
this.id_separator = '';
|
|
47
|
-
this.max_id_count = 65536;
|
|
48
|
-
this.effectFolder = "../../specificEffects";
|
|
49
|
-
this.effectFiles = [
|
|
50
|
-
"e_test",
|
|
51
|
-
"e_status",
|
|
52
|
-
"e_generic",
|
|
53
|
-
"e_fruit",
|
|
54
|
-
];
|
|
55
|
-
this.modFolder_game = "../_mods/gameModules";
|
|
56
|
-
this.modFolder_parser = "../_mods/parserModules";
|
|
57
|
-
this.localizationFolder = "../../_localizationFiles";
|
|
58
|
-
this.ignore_undefined_subtype = true;
|
|
59
|
-
this.ignore_undefined_effect = true;
|
|
60
|
-
this.show_negative_stat = true;
|
|
61
|
-
this.ignore_invalid_partition_mapping = false;
|
|
62
|
-
this.global_partition_setting = partitionSetting.manual_mapping_no_ghost;
|
|
63
|
-
this.default_partition_behavior = cardRegistry_1.partitionActivationBehavior.strict;
|
|
64
|
-
this.parser_modules = ["qpOriginal"];
|
|
65
|
-
this.singleton_effect_subtype = true;
|
|
66
|
-
this.singleton_effect_type = true;
|
|
67
|
-
this.spawn_instanced_zones_per_player = false;
|
|
68
|
-
this.auto_input = auto_input_option.default;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.defaultSetting = defaultSetting;
|
|
72
|
-
exports.default = new defaultSetting();
|