@bct-app/game-model 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +14 -10
  2. package/dist/index.d.ts +1172 -30
  3. package/dist/json-schema/ability-execution-timing.schema.json +8 -0
  4. package/dist/json-schema/ability.schema.json +2268 -0
  5. package/dist/json-schema/alignment-enum.schema.json +8 -0
  6. package/dist/json-schema/base-source.schema.json +64 -0
  7. package/dist/{schemas → json-schema}/character-basic-kind.schema.json +1 -1
  8. package/dist/{schemas → json-schema}/character-kind.schema.json +1 -1
  9. package/dist/json-schema/character.schema.json +123 -0
  10. package/dist/json-schema/chat-message-content.schema.json +65 -0
  11. package/dist/json-schema/chat-message-group.schema.json +37 -0
  12. package/dist/json-schema/chat-message-operation.schema.json +30 -0
  13. package/dist/json-schema/chat-message.schema.json +133 -0
  14. package/dist/json-schema/conversation.schema.json +252 -0
  15. package/dist/{schemas → json-schema}/effect.schema.json +375 -133
  16. package/dist/{schemas → json-schema}/game.schema.json +3 -16
  17. package/dist/json-schema/index.json +36 -0
  18. package/dist/{schemas → json-schema}/input.schema.json +108 -89
  19. package/dist/{schemas → json-schema}/message.schema.json +259 -35
  20. package/dist/json-schema/nomination.schema.json +29 -0
  21. package/dist/json-schema/operation.schema.json +28 -0
  22. package/dist/json-schema/player-display-format.schema.json +13 -0
  23. package/dist/json-schema/player-reminder.schema.json +19 -0
  24. package/dist/json-schema/player.schema.json +104 -0
  25. package/dist/json-schema/populated-character.schema.json +2344 -0
  26. package/dist/json-schema/populated-script.schema.json +2397 -0
  27. package/dist/json-schema/reminder.schema.json +24 -0
  28. package/dist/json-schema/room-create.schema.json +23 -0
  29. package/dist/json-schema/room-defaults.schema.json +72 -0
  30. package/dist/json-schema/room.schema.json +24 -0
  31. package/dist/json-schema/runtime-game.schema.json +162 -0
  32. package/dist/json-schema/script.schema.json +57 -0
  33. package/dist/json-schema/seat-side-enum.schema.json +9 -0
  34. package/dist/json-schema/special-message-kind.schema.json +7 -0
  35. package/dist/json-schema/target.schema.json +305 -0
  36. package/dist/json-schema/timeline.schema.json +87 -0
  37. package/dist/{schemas → json-schema}/view.schema.json +68 -42
  38. package/dist/zod.d.mts +4038 -0
  39. package/dist/zod.d.ts +4038 -0
  40. package/dist/zod.js +1129 -0
  41. package/dist/zod.mjs +1058 -0
  42. package/package.json +30 -15
  43. package/dist/schemas/index.json +0 -9
@@ -1,49 +1,49 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "oneOf": [
4
4
  {
5
- "$ref": "#/definitions/AbilityChangeEffect"
5
+ "$ref": "#/$defs/AbilityChangeEffect"
6
6
  },
7
7
  {
8
- "$ref": "#/definitions/AlignmentChangeEffect"
8
+ "$ref": "#/$defs/AlignmentChangeEffect"
9
9
  },
10
10
  {
11
- "$ref": "#/definitions/CharacterCountEffect"
11
+ "$ref": "#/$defs/CharacterCountEffect"
12
12
  },
13
13
  {
14
- "$ref": "#/definitions/CharacterChangeEffect"
14
+ "$ref": "#/$defs/CharacterChangeEffect"
15
15
  },
16
16
  {
17
- "$ref": "#/definitions/CharacterPerceptionEffect"
17
+ "$ref": "#/$defs/CharacterPerceptionEffect"
18
18
  },
19
19
  {
20
- "$ref": "#/definitions/StatusEffect"
20
+ "$ref": "#/$defs/StatusEffect"
21
21
  },
22
22
  {
23
- "$ref": "#/definitions/SeatEffect"
23
+ "$ref": "#/$defs/SeatEffect"
24
24
  },
25
25
  {
26
- "$ref": "#/definitions/GameEffect"
26
+ "$ref": "#/$defs/GameEffect"
27
27
  },
28
28
  {
29
- "$ref": "#/definitions/ReminderEffect"
29
+ "$ref": "#/$defs/ReminderEffect"
30
30
  },
31
31
  {
32
- "$ref": "#/definitions/RemoveReminderEffect"
32
+ "$ref": "#/$defs/RemoveReminderEffect"
33
33
  }
34
34
  ],
35
- "definitions": {
35
+ "$defs": {
36
36
  "AbilityChangeEffect": {
37
37
  "type": "object",
38
38
  "properties": {
39
39
  "type": {
40
- "$ref": "#/definitions/__schema0"
40
+ "$ref": "#/$defs/__schema0"
41
41
  },
42
42
  "source": {
43
- "$ref": "#/definitions/__schema1"
43
+ "$ref": "#/$defs/__schema1"
44
44
  },
45
45
  "target": {
46
- "$ref": "#/definitions/TargetModel"
46
+ "$ref": "#/$defs/TargetModel"
47
47
  }
48
48
  },
49
49
  "required": [
@@ -63,13 +63,13 @@
63
63
  "__schema1": {
64
64
  "oneOf": [
65
65
  {
66
- "$ref": "#/definitions/__schema2"
66
+ "$ref": "#/$defs/__schema2"
67
67
  },
68
68
  {
69
69
  "type": "object",
70
70
  "properties": {
71
71
  "from": {
72
- "$ref": "#/definitions/__schema3"
72
+ "$ref": "#/$defs/__schema3"
73
73
  },
74
74
  "value": {
75
75
  "type": "string"
@@ -123,18 +123,21 @@
123
123
  "TargetModel": {
124
124
  "oneOf": [
125
125
  {
126
- "$ref": "#/definitions/__schema4"
126
+ "$ref": "#/$defs/__schema4"
127
127
  },
128
128
  {
129
- "$ref": "#/definitions/__schema5"
129
+ "$ref": "#/$defs/__schema5"
130
130
  },
131
131
  {
132
- "$ref": "#/definitions/__schema6"
132
+ "$ref": "#/$defs/__schema6"
133
+ },
134
+ {
135
+ "$ref": "#/$defs/__schema8"
133
136
  }
134
137
  ],
135
138
  "id": "TargetModel",
136
139
  "title": "目标模型",
137
- "description": "表示技能效果的目标,包含来自技能载荷、技能施放者和自定义三种来源"
140
+ "description": "表示技能效果的目标,包含来自技能载荷、技能施放者和动态规则三种来源"
138
141
  },
139
142
  "__schema4": {
140
143
  "type": "object",
@@ -183,13 +186,218 @@
183
186
  "properties": {
184
187
  "from": {
185
188
  "type": "string",
186
- "const": "CUSTOM"
189
+ "const": "DYNAMIC"
187
190
  },
188
- "value": {
191
+ "anchor": {
192
+ "oneOf": [
193
+ {
194
+ "type": "object",
195
+ "properties": {
196
+ "from": {
197
+ "type": "string",
198
+ "const": "EFFECTOR"
199
+ }
200
+ },
201
+ "required": [
202
+ "from"
203
+ ],
204
+ "additionalProperties": false
205
+ },
206
+ {
207
+ "type": "object",
208
+ "properties": {
209
+ "from": {
210
+ "type": "string",
211
+ "const": "PAYLOAD"
212
+ },
213
+ "value": {
214
+ "anyOf": [
215
+ {
216
+ "type": "number",
217
+ "minimum": 0
218
+ },
219
+ {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "number",
223
+ "minimum": 0
224
+ }
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "required": [
230
+ "from",
231
+ "value"
232
+ ],
233
+ "additionalProperties": false
234
+ },
235
+ {
236
+ "type": "object",
237
+ "properties": {
238
+ "from": {
239
+ "type": "string",
240
+ "const": "STATIC"
241
+ },
242
+ "value": {
243
+ "type": "number",
244
+ "minimum": 1
245
+ }
246
+ },
247
+ "required": [
248
+ "from",
249
+ "value"
250
+ ],
251
+ "additionalProperties": false
252
+ }
253
+ ]
254
+ },
255
+ "selector": {
256
+ "type": "object",
257
+ "properties": {
258
+ "scope": {
259
+ "default": "BOTH_SIDES",
260
+ "anyOf": [
261
+ {
262
+ "type": "string",
263
+ "enum": [
264
+ "BOTH_SIDES",
265
+ "LEFT_SIDE",
266
+ "RIGHT_SIDE"
267
+ ]
268
+ },
269
+ {
270
+ "$ref": "#/$defs/__schema7"
271
+ }
272
+ ]
273
+ }
274
+ },
275
+ "required": [
276
+ "scope"
277
+ ],
278
+ "additionalProperties": false
279
+ },
280
+ "where": {
281
+ "type": "object",
282
+ "properties": {
283
+ "mode": {
284
+ "default": "ALL",
285
+ "type": "string",
286
+ "enum": [
287
+ "ALL",
288
+ "ANY"
289
+ ]
290
+ },
291
+ "conditions": {
292
+ "default": [],
293
+ "type": "array",
294
+ "items": {
295
+ "type": "object",
296
+ "properties": {
297
+ "field": {
298
+ "type": "string",
299
+ "enum": [
300
+ "CHARACTER_KIND",
301
+ "IS_DEAD",
302
+ "SEAT"
303
+ ]
304
+ },
305
+ "operator": {
306
+ "default": "EQ",
307
+ "type": "string",
308
+ "enum": [
309
+ "EQ",
310
+ "IN"
311
+ ]
312
+ },
313
+ "value": {
314
+ "anyOf": [
315
+ {
316
+ "anyOf": [
317
+ {
318
+ "type": "string"
319
+ },
320
+ {
321
+ "type": "boolean"
322
+ },
323
+ {
324
+ "type": "number",
325
+ "minimum": 1
326
+ },
327
+ {
328
+ "type": "array",
329
+ "items": {
330
+ "type": "string"
331
+ }
332
+ },
333
+ {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "number",
337
+ "minimum": 1
338
+ }
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "$ref": "#/$defs/__schema7"
344
+ }
345
+ ]
346
+ }
347
+ },
348
+ "required": [
349
+ "field",
350
+ "operator",
351
+ "value"
352
+ ],
353
+ "additionalProperties": false
354
+ }
355
+ }
356
+ },
357
+ "required": [
358
+ "mode",
359
+ "conditions"
360
+ ],
361
+ "additionalProperties": false
362
+ },
363
+ "limit": {
364
+ "anyOf": [
365
+ {
366
+ "type": "integer",
367
+ "exclusiveMinimum": 0,
368
+ "maximum": 9007199254740991
369
+ },
370
+ {
371
+ "$ref": "#/$defs/__schema7"
372
+ }
373
+ ]
374
+ }
375
+ },
376
+ "required": [
377
+ "from"
378
+ ],
379
+ "additionalProperties": false
380
+ },
381
+ "__schema7": {
382
+ "type": "object",
383
+ "properties": {
384
+ "from": {
189
385
  "type": "string",
190
- "enum": [
191
- "ALL_TOWNSFOLK",
192
- "ALL_PLAYERS"
386
+ "const": "PAYLOAD"
387
+ },
388
+ "value": {
389
+ "anyOf": [
390
+ {
391
+ "type": "number",
392
+ "minimum": 0
393
+ },
394
+ {
395
+ "type": "array",
396
+ "items": {
397
+ "type": "number",
398
+ "minimum": 0
399
+ }
400
+ }
193
401
  ]
194
402
  }
195
403
  },
@@ -199,17 +407,32 @@
199
407
  ],
200
408
  "additionalProperties": false
201
409
  },
410
+ "__schema8": {
411
+ "type": "object",
412
+ "properties": {
413
+ "from": {
414
+ "type": "string",
415
+ "const": "CUSTOM"
416
+ },
417
+ "value": {}
418
+ },
419
+ "required": [
420
+ "from",
421
+ "value"
422
+ ],
423
+ "additionalProperties": false
424
+ },
202
425
  "AlignmentChangeEffect": {
203
426
  "type": "object",
204
427
  "properties": {
205
428
  "type": {
206
- "$ref": "#/definitions/__schema7"
429
+ "$ref": "#/$defs/__schema9"
207
430
  },
208
431
  "source": {
209
- "$ref": "#/definitions/__schema8"
432
+ "$ref": "#/$defs/__schema10"
210
433
  },
211
434
  "target": {
212
- "$ref": "#/definitions/TargetModel"
435
+ "$ref": "#/$defs/TargetModel"
213
436
  }
214
437
  },
215
438
  "required": [
@@ -222,26 +445,26 @@
222
445
  "title": "阵营变化效果模型",
223
446
  "description": "表示改变目标阵营的技能效果模型,包含一个来源和一个目标"
224
447
  },
225
- "__schema7": {
448
+ "__schema9": {
226
449
  "type": "string",
227
450
  "const": "ALIGNMENT_CHANGE"
228
451
  },
229
- "__schema8": {
452
+ "__schema10": {
230
453
  "oneOf": [
231
454
  {
232
- "$ref": "#/definitions/__schema2"
455
+ "$ref": "#/$defs/__schema2"
233
456
  },
234
457
  {
235
- "$ref": "#/definitions/__schema9"
458
+ "$ref": "#/$defs/__schema11"
236
459
  },
237
460
  {
238
461
  "type": "object",
239
462
  "properties": {
240
463
  "from": {
241
- "$ref": "#/definitions/__schema3"
464
+ "$ref": "#/$defs/__schema3"
242
465
  },
243
466
  "value": {
244
- "$ref": "#/definitions/__schema10"
467
+ "$ref": "#/$defs/__schema12"
245
468
  }
246
469
  },
247
470
  "required": [
@@ -252,7 +475,7 @@
252
475
  }
253
476
  ]
254
477
  },
255
- "__schema9": {
478
+ "__schema11": {
256
479
  "type": "object",
257
480
  "properties": {
258
481
  "from": {
@@ -265,7 +488,7 @@
265
488
  ],
266
489
  "additionalProperties": false
267
490
  },
268
- "__schema10": {
491
+ "__schema12": {
269
492
  "type": "string",
270
493
  "enum": [
271
494
  "GOOD",
@@ -276,29 +499,63 @@
276
499
  "type": "object",
277
500
  "properties": {
278
501
  "type": {
279
- "$ref": "#/definitions/__schema11"
502
+ "$ref": "#/$defs/__schema13"
503
+ },
504
+ "source": {
505
+ "$ref": "#/$defs/__schema14"
280
506
  },
281
507
  "kind": {
282
- "$ref": "#/definitions/CharacterBasicKind"
508
+ "$ref": "#/$defs/__schema15"
283
509
  },
284
510
  "value": {
285
- "$ref": "#/definitions/__schema12"
511
+ "$ref": "#/$defs/__schema16"
286
512
  }
287
513
  },
288
514
  "required": [
289
- "type",
290
- "kind",
291
- "value"
515
+ "type"
292
516
  ],
293
517
  "additionalProperties": false,
294
518
  "id": "CharacterCountEffect",
295
519
  "title": "角色数量变化效果模型",
296
520
  "description": "表示改变某类角色数量的技能效果模型,包含角色类别和变化值"
297
521
  },
298
- "__schema11": {
522
+ "__schema13": {
299
523
  "type": "string",
300
524
  "const": "CHARACTER_COUNT_CHANGE"
301
525
  },
526
+ "__schema14": {
527
+ "oneOf": [
528
+ {
529
+ "type": "object",
530
+ "properties": {
531
+ "from": {
532
+ "$ref": "#/$defs/__schema3"
533
+ },
534
+ "value": {
535
+ "type": "object",
536
+ "properties": {
537
+ "kind": {
538
+ "$ref": "#/$defs/CharacterBasicKind"
539
+ },
540
+ "value": {
541
+ "type": "number"
542
+ }
543
+ },
544
+ "required": [
545
+ "kind",
546
+ "value"
547
+ ],
548
+ "additionalProperties": false
549
+ }
550
+ },
551
+ "required": [
552
+ "from",
553
+ "value"
554
+ ],
555
+ "additionalProperties": false
556
+ }
557
+ ]
558
+ },
302
559
  "CharacterBasicKind": {
303
560
  "type": "string",
304
561
  "enum": [
@@ -311,20 +568,23 @@
311
568
  "title": "角色基本类别",
312
569
  "description": "角色基本类别定义了游戏中角色的基本分类,通常用于技能选项中需要指定角色类别的情况"
313
570
  },
314
- "__schema12": {
571
+ "__schema15": {
572
+ "$ref": "#/$defs/CharacterBasicKind"
573
+ },
574
+ "__schema16": {
315
575
  "type": "number"
316
576
  },
317
577
  "CharacterChangeEffect": {
318
578
  "type": "object",
319
579
  "properties": {
320
580
  "type": {
321
- "$ref": "#/definitions/__schema13"
581
+ "$ref": "#/$defs/__schema17"
322
582
  },
323
583
  "source": {
324
- "$ref": "#/definitions/__schema14"
584
+ "$ref": "#/$defs/__schema18"
325
585
  },
326
586
  "target": {
327
- "$ref": "#/definitions/TargetModel"
587
+ "$ref": "#/$defs/TargetModel"
328
588
  }
329
589
  },
330
590
  "required": [
@@ -337,23 +597,23 @@
337
597
  "title": "角色变化效果模型",
338
598
  "description": "表示改变角色身份的技能效果模型,包含一个来源和一个目标"
339
599
  },
340
- "__schema13": {
600
+ "__schema17": {
341
601
  "type": "string",
342
602
  "const": "CHARACTER_CHANGE"
343
603
  },
344
- "__schema14": {
604
+ "__schema18": {
345
605
  "oneOf": [
346
606
  {
347
- "$ref": "#/definitions/__schema2"
607
+ "$ref": "#/$defs/__schema2"
348
608
  },
349
609
  {
350
- "$ref": "#/definitions/__schema9"
610
+ "$ref": "#/$defs/__schema11"
351
611
  },
352
612
  {
353
613
  "type": "object",
354
614
  "properties": {
355
615
  "from": {
356
- "$ref": "#/definitions/__schema3"
616
+ "$ref": "#/$defs/__schema3"
357
617
  },
358
618
  "value": {
359
619
  "type": "string"
@@ -371,16 +631,16 @@
371
631
  "type": "object",
372
632
  "properties": {
373
633
  "type": {
374
- "$ref": "#/definitions/__schema15"
634
+ "$ref": "#/$defs/__schema19"
375
635
  },
376
636
  "source": {
377
- "$ref": "#/definitions/__schema14"
637
+ "$ref": "#/$defs/__schema18"
378
638
  },
379
639
  "target": {
380
- "$ref": "#/definitions/TargetModel"
640
+ "$ref": "#/$defs/TargetModel"
381
641
  },
382
642
  "followPriority": {
383
- "$ref": "#/definitions/__schema16"
643
+ "$ref": "#/$defs/__schema20"
384
644
  }
385
645
  },
386
646
  "required": [
@@ -393,24 +653,24 @@
393
653
  "title": "感知角色变化效果模型",
394
654
  "description": "表示改变角色感知身份的技能效果模型,包含一个来源、一个目标和可选优先级"
395
655
  },
396
- "__schema15": {
656
+ "__schema19": {
397
657
  "type": "string",
398
658
  "const": "PERCEIVED_CHARACTER_CHANGE"
399
659
  },
400
- "__schema16": {
660
+ "__schema20": {
401
661
  "type": "boolean"
402
662
  },
403
663
  "StatusEffect": {
404
664
  "type": "object",
405
665
  "properties": {
406
666
  "type": {
407
- "$ref": "#/definitions/__schema17"
667
+ "$ref": "#/$defs/__schema21"
408
668
  },
409
669
  "source": {
410
- "$ref": "#/definitions/__schema18"
670
+ "$ref": "#/$defs/__schema22"
411
671
  },
412
672
  "target": {
413
- "$ref": "#/definitions/TargetModel"
673
+ "$ref": "#/$defs/TargetModel"
414
674
  }
415
675
  },
416
676
  "required": [
@@ -423,20 +683,20 @@
423
683
  "title": "状态变化效果模型",
424
684
  "description": "表示改变目标状态的技能效果模型,包含一个来源和一个目标"
425
685
  },
426
- "__schema17": {
686
+ "__schema21": {
427
687
  "type": "string",
428
688
  "const": "STATUS_CHANGE"
429
689
  },
430
- "__schema18": {
690
+ "__schema22": {
431
691
  "oneOf": [
432
692
  {
433
- "$ref": "#/definitions/__schema2"
693
+ "$ref": "#/$defs/__schema2"
434
694
  },
435
695
  {
436
696
  "type": "object",
437
697
  "properties": {
438
698
  "from": {
439
- "$ref": "#/definitions/__schema3"
699
+ "$ref": "#/$defs/__schema3"
440
700
  },
441
701
  "value": {
442
702
  "type": "string",
@@ -458,13 +718,13 @@
458
718
  "type": "object",
459
719
  "properties": {
460
720
  "type": {
461
- "$ref": "#/definitions/__schema19"
721
+ "$ref": "#/$defs/__schema23"
462
722
  },
463
723
  "source": {
464
- "$ref": "#/definitions/__schema20"
724
+ "$ref": "#/$defs/__schema24"
465
725
  },
466
726
  "target": {
467
- "$ref": "#/definitions/TargetModel"
727
+ "$ref": "#/$defs/TargetModel"
468
728
  }
469
729
  },
470
730
  "required": [
@@ -477,23 +737,23 @@
477
737
  "title": "座位变化效果模型",
478
738
  "description": "表示改变目标座位的技能效果模型,包含一个来源和一个目标"
479
739
  },
480
- "__schema19": {
740
+ "__schema23": {
481
741
  "type": "string",
482
742
  "const": "SEAT_CHANGE"
483
743
  },
484
- "__schema20": {
744
+ "__schema24": {
485
745
  "oneOf": [
486
746
  {
487
- "$ref": "#/definitions/__schema2"
747
+ "$ref": "#/$defs/__schema2"
488
748
  },
489
749
  {
490
- "$ref": "#/definitions/__schema9"
750
+ "$ref": "#/$defs/__schema11"
491
751
  },
492
752
  {
493
753
  "type": "object",
494
754
  "properties": {
495
755
  "from": {
496
- "$ref": "#/definitions/__schema3"
756
+ "$ref": "#/$defs/__schema3"
497
757
  },
498
758
  "value": {
499
759
  "type": "number",
@@ -512,10 +772,10 @@
512
772
  "type": "object",
513
773
  "properties": {
514
774
  "type": {
515
- "$ref": "#/definitions/__schema21"
775
+ "$ref": "#/$defs/__schema25"
516
776
  },
517
777
  "source": {
518
- "$ref": "#/definitions/GameSource"
778
+ "$ref": "#/$defs/GameSource"
519
779
  }
520
780
  },
521
781
  "required": [
@@ -527,31 +787,31 @@
527
787
  "title": "游戏变化效果模型",
528
788
  "description": "表示改变游戏状态的技能效果模型,包含一个来源"
529
789
  },
530
- "__schema21": {
790
+ "__schema25": {
531
791
  "type": "string",
532
792
  "const": "GAME_CHANGE"
533
793
  },
534
794
  "GameSource": {
535
795
  "oneOf": [
536
796
  {
537
- "$ref": "#/definitions/__schema2"
797
+ "$ref": "#/$defs/__schema2"
538
798
  },
539
799
  {
540
- "$ref": "#/definitions/__schema22"
800
+ "$ref": "#/$defs/__schema26"
541
801
  }
542
802
  ],
543
803
  "id": "GameSource",
544
804
  "title": "游戏来源模型",
545
805
  "description": "表示获取游戏变更信息的来源模型,包含来自技能载荷和常量两种来源"
546
806
  },
547
- "__schema22": {
807
+ "__schema26": {
548
808
  "type": "object",
549
809
  "properties": {
550
810
  "from": {
551
- "$ref": "#/definitions/__schema3"
811
+ "$ref": "#/$defs/__schema3"
552
812
  },
553
813
  "value": {
554
- "$ref": "#/definitions/__schema10"
814
+ "$ref": "#/$defs/__schema12"
555
815
  }
556
816
  },
557
817
  "required": [
@@ -564,13 +824,13 @@
564
824
  "type": "object",
565
825
  "properties": {
566
826
  "type": {
567
- "$ref": "#/definitions/__schema23"
827
+ "$ref": "#/$defs/__schema27"
568
828
  },
569
829
  "source": {
570
- "$ref": "#/definitions/__schema24"
830
+ "$ref": "#/$defs/__schema28"
571
831
  },
572
832
  "target": {
573
- "$ref": "#/definitions/TargetModel"
833
+ "$ref": "#/$defs/TargetModel"
574
834
  }
575
835
  },
576
836
  "required": [
@@ -583,23 +843,43 @@
583
843
  "title": "添加标记效果模型",
584
844
  "description": "表示为目标添加标记的技能效果模型,包含一个来源和一个目标"
585
845
  },
586
- "__schema23": {
846
+ "__schema27": {
587
847
  "type": "string",
588
848
  "const": "REMINDER_ADD"
589
849
  },
590
- "__schema24": {
850
+ "__schema28": {
591
851
  "oneOf": [
592
852
  {
593
- "$ref": "#/definitions/__schema2"
853
+ "$ref": "#/$defs/__schema2"
594
854
  },
595
855
  {
596
856
  "type": "object",
597
857
  "properties": {
598
858
  "from": {
599
- "$ref": "#/definitions/__schema3"
859
+ "$ref": "#/$defs/__schema3"
600
860
  },
601
861
  "value": {
602
- "$ref": "#/definitions/Reminder"
862
+ "type": "object",
863
+ "properties": {
864
+ "mark": {
865
+ "type": "string",
866
+ "minLength": 1
867
+ },
868
+ "color": {
869
+ "type": "string"
870
+ },
871
+ "description": {
872
+ "type": "string"
873
+ },
874
+ "duration": {
875
+ "type": "number",
876
+ "minimum": 0
877
+ }
878
+ },
879
+ "required": [
880
+ "mark"
881
+ ],
882
+ "additionalProperties": false
603
883
  }
604
884
  },
605
885
  "required": [
@@ -610,55 +890,17 @@
610
890
  }
611
891
  ]
612
892
  },
613
- "Reminder": {
614
- "type": "object",
615
- "properties": {
616
- "mark": {
617
- "$ref": "#/definitions/__schema25"
618
- },
619
- "color": {
620
- "$ref": "#/definitions/__schema26"
621
- },
622
- "description": {
623
- "$ref": "#/definitions/__schema27"
624
- },
625
- "duration": {
626
- "$ref": "#/definitions/__schema28"
627
- }
628
- },
629
- "required": [
630
- "mark"
631
- ],
632
- "additionalProperties": false,
633
- "id": "Reminder",
634
- "title": "标记模型",
635
- "description": "表示一个标记的模型,包含标记的名称、颜色、描述和持续时间等信息"
636
- },
637
- "__schema25": {
638
- "type": "string",
639
- "minLength": 1
640
- },
641
- "__schema26": {
642
- "type": "string"
643
- },
644
- "__schema27": {
645
- "type": "string"
646
- },
647
- "__schema28": {
648
- "type": "number",
649
- "minimum": 0
650
- },
651
893
  "RemoveReminderEffect": {
652
894
  "type": "object",
653
895
  "properties": {
654
896
  "type": {
655
- "$ref": "#/definitions/__schema29"
897
+ "$ref": "#/$defs/__schema29"
656
898
  },
657
899
  "source": {
658
- "$ref": "#/definitions/__schema30"
900
+ "$ref": "#/$defs/__schema30"
659
901
  },
660
902
  "target": {
661
- "$ref": "#/definitions/TargetModel"
903
+ "$ref": "#/$defs/TargetModel"
662
904
  }
663
905
  },
664
906
  "required": [
@@ -678,13 +920,13 @@
678
920
  "__schema30": {
679
921
  "oneOf": [
680
922
  {
681
- "$ref": "#/definitions/__schema2"
923
+ "$ref": "#/$defs/__schema2"
682
924
  },
683
925
  {
684
926
  "type": "object",
685
927
  "properties": {
686
928
  "from": {
687
- "$ref": "#/definitions/__schema3"
929
+ "$ref": "#/$defs/__schema3"
688
930
  },
689
931
  "value": {
690
932
  "type": "number",