@konoui/mjimage 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.d.cts +75 -75
- package/dist/index.d.ts +75 -75
- package/dist/index.js +329 -335
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -39,10 +39,10 @@ export declare abstract class BaseActor {
|
|
|
39
39
|
placeManager: PlaceManager;
|
|
40
40
|
scoreManager: ScoreManager;
|
|
41
41
|
hands: {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
42
|
+
"1z": ActorHand;
|
|
43
|
+
"2z": ActorHand;
|
|
44
|
+
"3z": ActorHand;
|
|
45
|
+
"4z": ActorHand;
|
|
46
46
|
};
|
|
47
47
|
counter: Counter;
|
|
48
48
|
doraIndicators: Tile[];
|
|
@@ -404,10 +404,10 @@ export declare class Controller {
|
|
|
404
404
|
doDaiKan(w: Wind, discardedBy: Wind, t: Tile): BlockDaiKan | false;
|
|
405
405
|
canDrawnGame(w: Wind): boolean;
|
|
406
406
|
initialHands(): {
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
407
|
+
"1z": string;
|
|
408
|
+
"2z": string;
|
|
409
|
+
"3z": string;
|
|
410
|
+
"4z": string;
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
|
|
@@ -433,16 +433,16 @@ export declare class Counter {
|
|
|
433
433
|
disable: boolean;
|
|
434
434
|
private c;
|
|
435
435
|
safeMap: {
|
|
436
|
-
"
|
|
436
|
+
"1z": {
|
|
437
437
|
[name: string]: boolean;
|
|
438
438
|
};
|
|
439
|
-
"
|
|
439
|
+
"2z": {
|
|
440
440
|
[name: string]: boolean;
|
|
441
441
|
};
|
|
442
|
-
"
|
|
442
|
+
"3z": {
|
|
443
443
|
[name: string]: boolean;
|
|
444
444
|
};
|
|
445
|
-
"
|
|
445
|
+
"4z": {
|
|
446
446
|
[name: string]: boolean;
|
|
447
447
|
};
|
|
448
448
|
};
|
|
@@ -550,10 +550,10 @@ export declare const createTable: (helper: ImageHelper, fontCtx: FontContext, ha
|
|
|
550
550
|
};
|
|
551
551
|
|
|
552
552
|
export declare function createWindMap<T>(initial: T, clone?: boolean): {
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"
|
|
556
|
-
"
|
|
553
|
+
"1z": T;
|
|
554
|
+
"2z": T;
|
|
555
|
+
"3z": T;
|
|
556
|
+
"4z": T;
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
export declare const deserializeWinResult: (ret: SerializedWinResult) => WinResult;
|
|
@@ -936,22 +936,22 @@ export declare const parseTableInput: (s: string) => {
|
|
|
936
936
|
doras: string;
|
|
937
937
|
front: Wind;
|
|
938
938
|
};
|
|
939
|
-
"
|
|
939
|
+
"1z": {
|
|
940
940
|
discard: string;
|
|
941
941
|
hand: string;
|
|
942
942
|
score: number;
|
|
943
943
|
};
|
|
944
|
-
"
|
|
944
|
+
"2z": {
|
|
945
945
|
discard: string;
|
|
946
946
|
hand: string;
|
|
947
947
|
score: number;
|
|
948
948
|
};
|
|
949
|
-
"
|
|
949
|
+
"3z": {
|
|
950
950
|
discard: string;
|
|
951
951
|
hand: string;
|
|
952
952
|
score: number;
|
|
953
953
|
};
|
|
954
|
-
"
|
|
954
|
+
"4z": {
|
|
955
955
|
discard: string;
|
|
956
956
|
hand: string;
|
|
957
957
|
score: number;
|
|
@@ -1183,43 +1183,43 @@ export declare interface RonEvent {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
export declare const ROUND: {
|
|
1186
|
-
readonly E1: "
|
|
1187
|
-
readonly E2: "
|
|
1188
|
-
readonly E3: "
|
|
1189
|
-
readonly E4: "
|
|
1190
|
-
readonly S1: "
|
|
1191
|
-
readonly S2: "
|
|
1192
|
-
readonly S3: "
|
|
1193
|
-
readonly S4: "
|
|
1194
|
-
readonly W1: "
|
|
1195
|
-
readonly W2: "
|
|
1196
|
-
readonly W3: "
|
|
1197
|
-
readonly W4: "
|
|
1198
|
-
readonly N1: "
|
|
1199
|
-
readonly N2: "
|
|
1200
|
-
readonly N3: "
|
|
1201
|
-
readonly N4: "
|
|
1186
|
+
readonly E1: "1z1";
|
|
1187
|
+
readonly E2: "1z2";
|
|
1188
|
+
readonly E3: "1z3";
|
|
1189
|
+
readonly E4: "1z4";
|
|
1190
|
+
readonly S1: "2z1";
|
|
1191
|
+
readonly S2: "2z2";
|
|
1192
|
+
readonly S3: "2z3";
|
|
1193
|
+
readonly S4: "2z4";
|
|
1194
|
+
readonly W1: "3z1";
|
|
1195
|
+
readonly W2: "3z2";
|
|
1196
|
+
readonly W3: "3z3";
|
|
1197
|
+
readonly W4: "3z4";
|
|
1198
|
+
readonly N1: "4z1";
|
|
1199
|
+
readonly N2: "4z2";
|
|
1200
|
+
readonly N3: "4z3";
|
|
1201
|
+
readonly N4: "4z4";
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
1204
|
export declare type Round = (typeof ROUND)[keyof typeof ROUND];
|
|
1205
1205
|
|
|
1206
1206
|
export declare const ROUND_MAP: {
|
|
1207
|
-
readonly "
|
|
1208
|
-
readonly "
|
|
1209
|
-
readonly "
|
|
1210
|
-
readonly "
|
|
1211
|
-
readonly "
|
|
1212
|
-
readonly "
|
|
1213
|
-
readonly "
|
|
1214
|
-
readonly "
|
|
1215
|
-
readonly "
|
|
1216
|
-
readonly "
|
|
1217
|
-
readonly "
|
|
1218
|
-
readonly "
|
|
1219
|
-
readonly "
|
|
1220
|
-
readonly "
|
|
1221
|
-
readonly "
|
|
1222
|
-
readonly "
|
|
1207
|
+
readonly "1z1": "東1局";
|
|
1208
|
+
readonly "1z2": "東2局";
|
|
1209
|
+
readonly "1z3": "東3局";
|
|
1210
|
+
readonly "1z4": "東4局";
|
|
1211
|
+
readonly "2z1": "南1局";
|
|
1212
|
+
readonly "2z2": "南2局";
|
|
1213
|
+
readonly "2z3": "南3局";
|
|
1214
|
+
readonly "2z4": "南4局";
|
|
1215
|
+
readonly "3z1": "西1局";
|
|
1216
|
+
readonly "3z2": "西2局";
|
|
1217
|
+
readonly "3z3": "西3局";
|
|
1218
|
+
readonly "3z4": "西4局";
|
|
1219
|
+
readonly "4z1": "北1局";
|
|
1220
|
+
readonly "4z2": "北2局";
|
|
1221
|
+
readonly "4z3": "北3局";
|
|
1222
|
+
readonly "4z4": "北4局";
|
|
1223
1223
|
};
|
|
1224
1224
|
|
|
1225
1225
|
export declare interface ScoreBoardInput {
|
|
@@ -1336,7 +1336,7 @@ export declare type TableInput = InferOutput<typeof tableInputSchema>;
|
|
|
1336
1336
|
|
|
1337
1337
|
declare const tableInputSchema: StrictObjectSchema< {
|
|
1338
1338
|
readonly board: OptionalSchema<StrictObjectSchema< {
|
|
1339
|
-
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "
|
|
1339
|
+
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "1z1">;
|
|
1340
1340
|
readonly sticks: OptionalSchema<StrictObjectSchema< {
|
|
1341
1341
|
readonly reach: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1342
1342
|
readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
@@ -1344,18 +1344,18 @@ readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,
|
|
|
1344
1344
|
reach: number;
|
|
1345
1345
|
dead: number;
|
|
1346
1346
|
}>;
|
|
1347
|
-
readonly doras: OptionalSchema<StringSchema<undefined>, "
|
|
1348
|
-
readonly front: OptionalSchema<PicklistSchema<Wind[], undefined>, "
|
|
1347
|
+
readonly doras: OptionalSchema<StringSchema<undefined>, "2z">;
|
|
1348
|
+
readonly front: OptionalSchema<PicklistSchema<Wind[], undefined>, "1z">;
|
|
1349
1349
|
}, undefined>, {
|
|
1350
|
-
round: "
|
|
1350
|
+
round: "1z1";
|
|
1351
1351
|
sticks: {
|
|
1352
1352
|
reach: number;
|
|
1353
1353
|
dead: number;
|
|
1354
1354
|
};
|
|
1355
|
-
doras: "
|
|
1356
|
-
front: "
|
|
1355
|
+
doras: "2z";
|
|
1356
|
+
front: "1z";
|
|
1357
1357
|
}>;
|
|
1358
|
-
readonly "
|
|
1358
|
+
readonly "1z": OptionalSchema<StrictObjectSchema< {
|
|
1359
1359
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1360
1360
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1361
1361
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1364,7 +1364,7 @@ readonly discard: "";
|
|
|
1364
1364
|
readonly hand: "";
|
|
1365
1365
|
readonly score: 25000;
|
|
1366
1366
|
}>;
|
|
1367
|
-
readonly "
|
|
1367
|
+
readonly "2z": OptionalSchema<StrictObjectSchema< {
|
|
1368
1368
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1369
1369
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1370
1370
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1373,7 +1373,7 @@ readonly discard: "";
|
|
|
1373
1373
|
readonly hand: "";
|
|
1374
1374
|
readonly score: 25000;
|
|
1375
1375
|
}>;
|
|
1376
|
-
readonly "
|
|
1376
|
+
readonly "3z": OptionalSchema<StrictObjectSchema< {
|
|
1377
1377
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1378
1378
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1379
1379
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1382,7 +1382,7 @@ readonly discard: "";
|
|
|
1382
1382
|
readonly hand: "";
|
|
1383
1383
|
readonly score: 25000;
|
|
1384
1384
|
}>;
|
|
1385
|
-
readonly "
|
|
1385
|
+
readonly "4z": OptionalSchema<StrictObjectSchema< {
|
|
1386
1386
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1387
1387
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1388
1388
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1481,10 +1481,10 @@ export declare class Wall {
|
|
|
1481
1481
|
get canKan(): boolean;
|
|
1482
1482
|
get canDraw(): boolean;
|
|
1483
1483
|
initialHands(): {
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1484
|
+
"1z": string;
|
|
1485
|
+
"2z": string;
|
|
1486
|
+
"3z": string;
|
|
1487
|
+
"4z": string;
|
|
1488
1488
|
};
|
|
1489
1489
|
private init;
|
|
1490
1490
|
export(): WallProps;
|
|
@@ -1500,19 +1500,19 @@ export declare interface WallProps {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
export declare const WIND: {
|
|
1503
|
-
readonly E: "
|
|
1504
|
-
readonly S: "
|
|
1505
|
-
readonly W: "
|
|
1506
|
-
readonly N: "
|
|
1503
|
+
readonly E: "1z";
|
|
1504
|
+
readonly S: "2z";
|
|
1505
|
+
readonly W: "3z";
|
|
1506
|
+
readonly N: "4z";
|
|
1507
1507
|
};
|
|
1508
1508
|
|
|
1509
1509
|
export declare type Wind = (typeof WIND)[keyof typeof WIND];
|
|
1510
1510
|
|
|
1511
1511
|
export declare const WIND_MAP: {
|
|
1512
|
-
readonly "
|
|
1513
|
-
readonly "
|
|
1514
|
-
readonly "
|
|
1515
|
-
readonly "
|
|
1512
|
+
readonly "1z": "東";
|
|
1513
|
+
readonly "2z": "南";
|
|
1514
|
+
readonly "3z": "西";
|
|
1515
|
+
readonly "4z": "北";
|
|
1516
1516
|
};
|
|
1517
1517
|
|
|
1518
1518
|
export declare interface WinResult {
|
|
@@ -1523,7 +1523,7 @@ export declare interface WinResult {
|
|
|
1523
1523
|
fu: number;
|
|
1524
1524
|
yakus: readonly Yaku[];
|
|
1525
1525
|
point: number;
|
|
1526
|
-
|
|
1526
|
+
rawPoint: number;
|
|
1527
1527
|
hand: Block[];
|
|
1528
1528
|
boardContext: BoardContext;
|
|
1529
1529
|
description: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,10 +39,10 @@ export declare abstract class BaseActor {
|
|
|
39
39
|
placeManager: PlaceManager;
|
|
40
40
|
scoreManager: ScoreManager;
|
|
41
41
|
hands: {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
42
|
+
"1z": ActorHand;
|
|
43
|
+
"2z": ActorHand;
|
|
44
|
+
"3z": ActorHand;
|
|
45
|
+
"4z": ActorHand;
|
|
46
46
|
};
|
|
47
47
|
counter: Counter;
|
|
48
48
|
doraIndicators: Tile[];
|
|
@@ -404,10 +404,10 @@ export declare class Controller {
|
|
|
404
404
|
doDaiKan(w: Wind, discardedBy: Wind, t: Tile): BlockDaiKan | false;
|
|
405
405
|
canDrawnGame(w: Wind): boolean;
|
|
406
406
|
initialHands(): {
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
407
|
+
"1z": string;
|
|
408
|
+
"2z": string;
|
|
409
|
+
"3z": string;
|
|
410
|
+
"4z": string;
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
|
|
@@ -433,16 +433,16 @@ export declare class Counter {
|
|
|
433
433
|
disable: boolean;
|
|
434
434
|
private c;
|
|
435
435
|
safeMap: {
|
|
436
|
-
"
|
|
436
|
+
"1z": {
|
|
437
437
|
[name: string]: boolean;
|
|
438
438
|
};
|
|
439
|
-
"
|
|
439
|
+
"2z": {
|
|
440
440
|
[name: string]: boolean;
|
|
441
441
|
};
|
|
442
|
-
"
|
|
442
|
+
"3z": {
|
|
443
443
|
[name: string]: boolean;
|
|
444
444
|
};
|
|
445
|
-
"
|
|
445
|
+
"4z": {
|
|
446
446
|
[name: string]: boolean;
|
|
447
447
|
};
|
|
448
448
|
};
|
|
@@ -550,10 +550,10 @@ export declare const createTable: (helper: ImageHelper, fontCtx: FontContext, ha
|
|
|
550
550
|
};
|
|
551
551
|
|
|
552
552
|
export declare function createWindMap<T>(initial: T, clone?: boolean): {
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"
|
|
556
|
-
"
|
|
553
|
+
"1z": T;
|
|
554
|
+
"2z": T;
|
|
555
|
+
"3z": T;
|
|
556
|
+
"4z": T;
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
export declare const deserializeWinResult: (ret: SerializedWinResult) => WinResult;
|
|
@@ -936,22 +936,22 @@ export declare const parseTableInput: (s: string) => {
|
|
|
936
936
|
doras: string;
|
|
937
937
|
front: Wind;
|
|
938
938
|
};
|
|
939
|
-
"
|
|
939
|
+
"1z": {
|
|
940
940
|
discard: string;
|
|
941
941
|
hand: string;
|
|
942
942
|
score: number;
|
|
943
943
|
};
|
|
944
|
-
"
|
|
944
|
+
"2z": {
|
|
945
945
|
discard: string;
|
|
946
946
|
hand: string;
|
|
947
947
|
score: number;
|
|
948
948
|
};
|
|
949
|
-
"
|
|
949
|
+
"3z": {
|
|
950
950
|
discard: string;
|
|
951
951
|
hand: string;
|
|
952
952
|
score: number;
|
|
953
953
|
};
|
|
954
|
-
"
|
|
954
|
+
"4z": {
|
|
955
955
|
discard: string;
|
|
956
956
|
hand: string;
|
|
957
957
|
score: number;
|
|
@@ -1183,43 +1183,43 @@ export declare interface RonEvent {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
export declare const ROUND: {
|
|
1186
|
-
readonly E1: "
|
|
1187
|
-
readonly E2: "
|
|
1188
|
-
readonly E3: "
|
|
1189
|
-
readonly E4: "
|
|
1190
|
-
readonly S1: "
|
|
1191
|
-
readonly S2: "
|
|
1192
|
-
readonly S3: "
|
|
1193
|
-
readonly S4: "
|
|
1194
|
-
readonly W1: "
|
|
1195
|
-
readonly W2: "
|
|
1196
|
-
readonly W3: "
|
|
1197
|
-
readonly W4: "
|
|
1198
|
-
readonly N1: "
|
|
1199
|
-
readonly N2: "
|
|
1200
|
-
readonly N3: "
|
|
1201
|
-
readonly N4: "
|
|
1186
|
+
readonly E1: "1z1";
|
|
1187
|
+
readonly E2: "1z2";
|
|
1188
|
+
readonly E3: "1z3";
|
|
1189
|
+
readonly E4: "1z4";
|
|
1190
|
+
readonly S1: "2z1";
|
|
1191
|
+
readonly S2: "2z2";
|
|
1192
|
+
readonly S3: "2z3";
|
|
1193
|
+
readonly S4: "2z4";
|
|
1194
|
+
readonly W1: "3z1";
|
|
1195
|
+
readonly W2: "3z2";
|
|
1196
|
+
readonly W3: "3z3";
|
|
1197
|
+
readonly W4: "3z4";
|
|
1198
|
+
readonly N1: "4z1";
|
|
1199
|
+
readonly N2: "4z2";
|
|
1200
|
+
readonly N3: "4z3";
|
|
1201
|
+
readonly N4: "4z4";
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
1204
|
export declare type Round = (typeof ROUND)[keyof typeof ROUND];
|
|
1205
1205
|
|
|
1206
1206
|
export declare const ROUND_MAP: {
|
|
1207
|
-
readonly "
|
|
1208
|
-
readonly "
|
|
1209
|
-
readonly "
|
|
1210
|
-
readonly "
|
|
1211
|
-
readonly "
|
|
1212
|
-
readonly "
|
|
1213
|
-
readonly "
|
|
1214
|
-
readonly "
|
|
1215
|
-
readonly "
|
|
1216
|
-
readonly "
|
|
1217
|
-
readonly "
|
|
1218
|
-
readonly "
|
|
1219
|
-
readonly "
|
|
1220
|
-
readonly "
|
|
1221
|
-
readonly "
|
|
1222
|
-
readonly "
|
|
1207
|
+
readonly "1z1": "東1局";
|
|
1208
|
+
readonly "1z2": "東2局";
|
|
1209
|
+
readonly "1z3": "東3局";
|
|
1210
|
+
readonly "1z4": "東4局";
|
|
1211
|
+
readonly "2z1": "南1局";
|
|
1212
|
+
readonly "2z2": "南2局";
|
|
1213
|
+
readonly "2z3": "南3局";
|
|
1214
|
+
readonly "2z4": "南4局";
|
|
1215
|
+
readonly "3z1": "西1局";
|
|
1216
|
+
readonly "3z2": "西2局";
|
|
1217
|
+
readonly "3z3": "西3局";
|
|
1218
|
+
readonly "3z4": "西4局";
|
|
1219
|
+
readonly "4z1": "北1局";
|
|
1220
|
+
readonly "4z2": "北2局";
|
|
1221
|
+
readonly "4z3": "北3局";
|
|
1222
|
+
readonly "4z4": "北4局";
|
|
1223
1223
|
};
|
|
1224
1224
|
|
|
1225
1225
|
export declare interface ScoreBoardInput {
|
|
@@ -1336,7 +1336,7 @@ export declare type TableInput = InferOutput<typeof tableInputSchema>;
|
|
|
1336
1336
|
|
|
1337
1337
|
declare const tableInputSchema: StrictObjectSchema< {
|
|
1338
1338
|
readonly board: OptionalSchema<StrictObjectSchema< {
|
|
1339
|
-
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "
|
|
1339
|
+
readonly round: OptionalSchema<PicklistSchema<Round[], undefined>, "1z1">;
|
|
1340
1340
|
readonly sticks: OptionalSchema<StrictObjectSchema< {
|
|
1341
1341
|
readonly reach: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
1342
1342
|
readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>, MinValueAction<number, 0, "">, MaxValueAction<number, 9, "">]>, number>;
|
|
@@ -1344,18 +1344,18 @@ readonly dead: OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,
|
|
|
1344
1344
|
reach: number;
|
|
1345
1345
|
dead: number;
|
|
1346
1346
|
}>;
|
|
1347
|
-
readonly doras: OptionalSchema<StringSchema<undefined>, "
|
|
1348
|
-
readonly front: OptionalSchema<PicklistSchema<Wind[], undefined>, "
|
|
1347
|
+
readonly doras: OptionalSchema<StringSchema<undefined>, "2z">;
|
|
1348
|
+
readonly front: OptionalSchema<PicklistSchema<Wind[], undefined>, "1z">;
|
|
1349
1349
|
}, undefined>, {
|
|
1350
|
-
round: "
|
|
1350
|
+
round: "1z1";
|
|
1351
1351
|
sticks: {
|
|
1352
1352
|
reach: number;
|
|
1353
1353
|
dead: number;
|
|
1354
1354
|
};
|
|
1355
|
-
doras: "
|
|
1356
|
-
front: "
|
|
1355
|
+
doras: "2z";
|
|
1356
|
+
front: "1z";
|
|
1357
1357
|
}>;
|
|
1358
|
-
readonly "
|
|
1358
|
+
readonly "1z": OptionalSchema<StrictObjectSchema< {
|
|
1359
1359
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1360
1360
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1361
1361
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1364,7 +1364,7 @@ readonly discard: "";
|
|
|
1364
1364
|
readonly hand: "";
|
|
1365
1365
|
readonly score: 25000;
|
|
1366
1366
|
}>;
|
|
1367
|
-
readonly "
|
|
1367
|
+
readonly "2z": OptionalSchema<StrictObjectSchema< {
|
|
1368
1368
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1369
1369
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1370
1370
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1373,7 +1373,7 @@ readonly discard: "";
|
|
|
1373
1373
|
readonly hand: "";
|
|
1374
1374
|
readonly score: 25000;
|
|
1375
1375
|
}>;
|
|
1376
|
-
readonly "
|
|
1376
|
+
readonly "3z": OptionalSchema<StrictObjectSchema< {
|
|
1377
1377
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1378
1378
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1379
1379
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1382,7 +1382,7 @@ readonly discard: "";
|
|
|
1382
1382
|
readonly hand: "";
|
|
1383
1383
|
readonly score: 25000;
|
|
1384
1384
|
}>;
|
|
1385
|
-
readonly "
|
|
1385
|
+
readonly "4z": OptionalSchema<StrictObjectSchema< {
|
|
1386
1386
|
readonly discard: OptionalSchema<StringSchema<undefined>, "">;
|
|
1387
1387
|
readonly hand: OptionalSchema<StringSchema<undefined>, "">;
|
|
1388
1388
|
readonly score: OptionalSchema<NumberSchema<undefined>, 25000>;
|
|
@@ -1481,10 +1481,10 @@ export declare class Wall {
|
|
|
1481
1481
|
get canKan(): boolean;
|
|
1482
1482
|
get canDraw(): boolean;
|
|
1483
1483
|
initialHands(): {
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1484
|
+
"1z": string;
|
|
1485
|
+
"2z": string;
|
|
1486
|
+
"3z": string;
|
|
1487
|
+
"4z": string;
|
|
1488
1488
|
};
|
|
1489
1489
|
private init;
|
|
1490
1490
|
export(): WallProps;
|
|
@@ -1500,19 +1500,19 @@ export declare interface WallProps {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
export declare const WIND: {
|
|
1503
|
-
readonly E: "
|
|
1504
|
-
readonly S: "
|
|
1505
|
-
readonly W: "
|
|
1506
|
-
readonly N: "
|
|
1503
|
+
readonly E: "1z";
|
|
1504
|
+
readonly S: "2z";
|
|
1505
|
+
readonly W: "3z";
|
|
1506
|
+
readonly N: "4z";
|
|
1507
1507
|
};
|
|
1508
1508
|
|
|
1509
1509
|
export declare type Wind = (typeof WIND)[keyof typeof WIND];
|
|
1510
1510
|
|
|
1511
1511
|
export declare const WIND_MAP: {
|
|
1512
|
-
readonly "
|
|
1513
|
-
readonly "
|
|
1514
|
-
readonly "
|
|
1515
|
-
readonly "
|
|
1512
|
+
readonly "1z": "東";
|
|
1513
|
+
readonly "2z": "南";
|
|
1514
|
+
readonly "3z": "西";
|
|
1515
|
+
readonly "4z": "北";
|
|
1516
1516
|
};
|
|
1517
1517
|
|
|
1518
1518
|
export declare interface WinResult {
|
|
@@ -1523,7 +1523,7 @@ export declare interface WinResult {
|
|
|
1523
1523
|
fu: number;
|
|
1524
1524
|
yakus: readonly Yaku[];
|
|
1525
1525
|
point: number;
|
|
1526
|
-
|
|
1526
|
+
rawPoint: number;
|
|
1527
1527
|
hand: Block[];
|
|
1528
1528
|
boardContext: BoardContext;
|
|
1529
1529
|
description: string;
|