Pārlūkot izejas kodu

auto config export

Hua 10 mēneši atpakaļ
vecāks
revīzija
d630a5c3cc
1 mainītis faili ar 201 papildinājumiem un 201 dzēšanām
  1. 201 201
      schema/schema.ts

+ 201 - 201
schema/schema.ts

@@ -289,98 +289,26 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class HeroQualityWorth {
293
-
294
-    constructor(_buf_: ByteBuf) {
295
-        this.idx = _buf_.ReadInt()
296
-        this.quality = _buf_.ReadInt()
297
-        this.gold = _buf_.ReadInt()
298
-        this.gem = _buf_.ReadInt()
299
-    }
300
-
301
-    /**
302
-     * 唯一id
303
-     */
304
-    readonly idx: number
305
-    /**
306
-     * 品质
307
-     */
308
-    readonly quality: Quality
309
-    /**
310
-     * 局内金币
311
-     */
312
-    readonly gold: number
313
-    /**
314
-     * 局内宝石
315
-     */
316
-    readonly gem: number
317
-
318
-    resolve(tables:Tables) {
319
-        
320
-        
321
-        
322
-        
323
-    }
324
-}
325
-
326
-
327
-
328
-
329
-
330
-export class Item {
331
-
332
-    constructor(_buf_: ByteBuf) {
333
-        this.idx = _buf_.ReadInt()
334
-        this.type = _buf_.ReadInt()
335
-        this.name = _buf_.ReadString()
336
-    }
337
-
338
-    /**
339
-     * 道具ID
340
-     */
341
-    readonly idx: number
342
-    /**
343
-     * 类型
344
-     */
345
-    readonly type: number
346
-    /**
347
-     * 道具名
348
-     */
349
-    readonly name: string
350
-
351
-    resolve(tables:Tables) {
352
-        
353
-        
354
-        
355
-    }
356
-}
357
-
358
-
359
-
360
-
361
-
362
-export class SkillBuff {
292
+export class Skill {
363 293
 
364 294
     constructor(_buf_: ByteBuf) {
365 295
         this.idx = _buf_.ReadInt()
366 296
         this.remark = _buf_.ReadString()
367
-        this.type = _buf_.ReadInt()
368
-        this.parameters = _buf_.ReadString()
369
-        this.probability = _buf_.ReadInt()
297
+        this.skillId = _buf_.ReadInt()
298
+        this.skillType = _buf_.ReadInt()
299
+        this.cd = _buf_.ReadInt()
300
+        this.gridRange = _buf_.ReadInt()
301
+        this.range = _buf_.ReadInt()
370 302
         this.triggerCondition = _buf_.ReadString()
371
-        this.effectType = _buf_.ReadInt()
372
-        this.duration = _buf_.ReadInt()
373
-        this.overlapTimes = _buf_.ReadInt()
374
-        this.uniqueGain = _buf_.ReadBool()
375
-        this.halo = _buf_.ReadBool()
376
-        this.attributes = _buf_.ReadString()
377
-        this.mixBufficon = _buf_.ReadInt()
378
-        this.skillShowId = _buf_.ReadInt()
379
-        this.floatingTextId = _buf_.ReadInt()
303
+        this.effects = _buf_.ReadString()
304
+        this.buffId = _buf_.ReadString()
305
+        this.skillName = _buf_.ReadString()
306
+        this.desc = _buf_.ReadString()
307
+        this.conflictSkillId = _buf_.ReadInt()
380 308
     }
381 309
 
382 310
     /**
383
-     * buffid
311
+     * 主键id
384 312
      */
385 313
     readonly idx: number
386 314
     /**
@@ -388,57 +316,49 @@ export class SkillBuff {
388 316
      */
389 317
     readonly remark: string
390 318
     /**
391
-     * buff类型
392
-     */
393
-    readonly type: number
394
-    /**
395
-     * buff参数
396
-     */
397
-    readonly parameters: string
398
-    /**
399
-     * 触发概率
319
+     * 技能ID
400 320
      */
401
-    readonly probability: number
321
+    readonly skillId: number
402 322
     /**
403
-     * 触发条件
323
+     * 类型
404 324
      */
405
-    readonly triggerCondition: string
325
+    readonly skillType: number
406 326
     /**
407
-     * 效果类型
327
+     * 冷却时间
408 328
      */
409
-    readonly effectType: number
329
+    readonly cd: number
410 330
     /**
411
-     * 持续时间
331
+     * 格子范围
412 332
      */
413
-    readonly duration: number
333
+    readonly gridRange: number
414 334
     /**
415
-     * 叠加次数
335
+     * 攻击距离
416 336
      */
417
-    readonly overlapTimes: number
337
+    readonly range: number
418 338
     /**
419
-     * 唯一增益
339
+     * 技能触发条件
420 340
      */
421
-    readonly uniqueGain: boolean
341
+    readonly triggerCondition: string
422 342
     /**
423
-     * 是否是光环
343
+     * 效果列表
424 344
      */
425
-    readonly halo: boolean
345
+    readonly effects: string
426 346
     /**
427
-     * buff增加的属性
347
+     * buff
428 348
      */
429
-    readonly attributes: string
349
+    readonly buffId: string
430 350
     /**
431
-     * 是否合并
351
+     * 技能名字
432 352
      */
433
-    readonly mixBufficon: number
353
+    readonly skillName: string
434 354
     /**
435
-     * 效果id
355
+     * 技能描述
436 356
      */
437
-    readonly skillShowId: number
357
+    readonly desc: string
438 358
     /**
439
-     * 飘字id
359
+     * 冲突的技能id
440 360
      */
441
-    readonly floatingTextId: number
361
+    readonly conflictSkillId: number
442 362
 
443 363
     resolve(tables:Tables) {
444 364
         
@@ -454,8 +374,6 @@ export class SkillBuff {
454 374
         
455 375
         
456 376
         
457
-        
458
-        
459 377
     }
460 378
 }
461 379
 
@@ -463,43 +381,55 @@ export class SkillBuff {
463 381
 
464 382
 
465 383
 
466
-export class WaveRewards {
384
+export class Hero {
467 385
 
468 386
     constructor(_buf_: ByteBuf) {
469
-        this.idx = _buf_.ReadInt()
470
-        this.waveMin = _buf_.ReadInt()
471
-        this.waveMax = _buf_.ReadInt()
472
-        this.level = _buf_.ReadInt()
473
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.rewards = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Reward(_buf_); this.rewards.push(_e0);}}
387
+        this.id = _buf_.ReadInt()
388
+        this.quality = _buf_.ReadInt()
389
+        this.attacktype = _buf_.ReadInt()
390
+        this.name = _buf_.ReadString()
391
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.skills = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.skills.push(_e0);}}
392
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
393
+        this.isShow = _buf_.ReadInt()
474 394
     }
475 395
 
476 396
     /**
477
-     * idx
397
+     * 英雄ID
478 398
      */
479
-    readonly idx: number
399
+    readonly id: number
480 400
     /**
481
-     * 波数下限
401
+     * 品质
482 402
      */
483
-    readonly waveMin: number
403
+    readonly quality: Quality
484 404
     /**
485
-     * 波数上限
405
+     * 攻击类型
486 406
      */
487
-    readonly waveMax: number
407
+    readonly attacktype: AttackType
488 408
     /**
489
-     * 难度
409
+     * 名字
490 410
      */
491
-    readonly level: number
411
+    readonly name: string
492 412
     /**
493
-     * 奖励列表
413
+     * 技能列表
494 414
      */
495
-    readonly rewards: Common.Reward[]
415
+    readonly skills: number[]
416
+    /**
417
+     * 合成英雄公式
418
+     */
419
+    readonly composeheros: number[]
420
+    /**
421
+     * 是否测试
422
+     */
423
+    readonly isShow: number
496 424
 
497 425
     resolve(tables:Tables) {
498 426
         
499 427
         
500 428
         
501 429
         
502
-        for (let _e of this.rewards) { _e?.resolve(tables); }
430
+        
431
+        
432
+        
503 433
     }
504 434
 }
505 435
 
@@ -507,12 +437,13 @@ export class WaveRewards {
507 437
 
508 438
 
509 439
 
510
-export class BattleSummonWeight {
440
+export class BattleSpacialSummon {
511 441
 
512 442
     constructor(_buf_: ByteBuf) {
513 443
         this.idx = _buf_.ReadInt()
514 444
         this.quality = _buf_.ReadInt()
515 445
         this.weight = _buf_.ReadInt()
446
+        this.costgem = _buf_.ReadInt()
516 447
     }
517 448
 
518 449
     /**
@@ -527,11 +458,16 @@ export class BattleSummonWeight {
527 458
      * 权重
528 459
      */
529 460
     readonly weight: number
461
+    /**
462
+     * 消耗宝石数量
463
+     */
464
+    readonly costgem: number
530 465
 
531 466
     resolve(tables:Tables) {
532 467
         
533 468
         
534 469
         
470
+        
535 471
     }
536 472
 }
537 473
 
@@ -539,13 +475,13 @@ export class BattleSummonWeight {
539 475
 
540 476
 
541 477
 
542
-export class BattleSpacialSummon {
478
+export class HeroQualityWorth {
543 479
 
544 480
     constructor(_buf_: ByteBuf) {
545 481
         this.idx = _buf_.ReadInt()
546 482
         this.quality = _buf_.ReadInt()
547
-        this.weight = _buf_.ReadInt()
548
-        this.costgem = _buf_.ReadInt()
483
+        this.gold = _buf_.ReadInt()
484
+        this.gem = _buf_.ReadInt()
549 485
     }
550 486
 
551 487
     /**
@@ -557,13 +493,13 @@ export class BattleSpacialSummon {
557 493
      */
558 494
     readonly quality: Quality
559 495
     /**
560
-     * 权重
496
+     * 局内金币
561 497
      */
562
-    readonly weight: number
498
+    readonly gold: number
563 499
     /**
564
-     * 消耗宝石数量
500
+     * 局内宝石
565 501
      */
566
-    readonly costgem: number
502
+    readonly gem: number
567 503
 
568 504
     resolve(tables:Tables) {
569 505
         
@@ -609,52 +545,72 @@ export class System {
609 545
 
610 546
 
611 547
 
612
-export class Hero {
548
+export class WaveRewards {
613 549
 
614 550
     constructor(_buf_: ByteBuf) {
615
-        this.id = _buf_.ReadInt()
616
-        this.quality = _buf_.ReadInt()
617
-        this.attacktype = _buf_.ReadInt()
618
-        this.name = _buf_.ReadString()
619
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.skills = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.skills.push(_e0);}}
620
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
621
-        this.isShow = _buf_.ReadInt()
551
+        this.idx = _buf_.ReadInt()
552
+        this.waveMin = _buf_.ReadInt()
553
+        this.waveMax = _buf_.ReadInt()
554
+        this.level = _buf_.ReadInt()
555
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.rewards = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Reward(_buf_); this.rewards.push(_e0);}}
622 556
     }
623 557
 
624 558
     /**
625
-     * 英雄ID
626
-     */
627
-    readonly id: number
628
-    /**
629
-     * 品质
630
-     */
631
-    readonly quality: Quality
632
-    /**
633
-     * 攻击类型
559
+     * idx
634 560
      */
635
-    readonly attacktype: AttackType
561
+    readonly idx: number
636 562
     /**
637
-     * 名字
563
+     * 波数下限
638 564
      */
639
-    readonly name: string
565
+    readonly waveMin: number
640 566
     /**
641
-     * 技能列表
567
+     * 波数上限
642 568
      */
643
-    readonly skills: number[]
569
+    readonly waveMax: number
644 570
     /**
645
-     * 合成英雄公式
571
+     * 难度
646 572
      */
647
-    readonly composeheros: number[]
573
+    readonly level: number
648 574
     /**
649
-     * 是否测试
575
+     * 奖励列表
650 576
      */
651
-    readonly isShow: number
577
+    readonly rewards: Common.Reward[]
652 578
 
653 579
     resolve(tables:Tables) {
654 580
         
655 581
         
656 582
         
657 583
         
584
+        for (let _e of this.rewards) { _e?.resolve(tables); }
585
+    }
586
+}
587
+
588
+
589
+
590
+
591
+
592
+export class Item {
593
+
594
+    constructor(_buf_: ByteBuf) {
595
+        this.idx = _buf_.ReadInt()
596
+        this.type = _buf_.ReadInt()
597
+        this.name = _buf_.ReadString()
598
+    }
599
+
600
+    /**
601
+     * 道具ID
602
+     */
603
+    readonly idx: number
604
+    /**
605
+     * 类型
606
+     */
607
+    readonly type: number
608
+    /**
609
+     * 道具名
610
+     */
611
+    readonly name: string
612
+
613
+    resolve(tables:Tables) {
658 614
         
659 615
         
660 616
         
@@ -665,26 +621,28 @@ export class Hero {
665 621
 
666 622
 
667 623
 
668
-export class Skill {
624
+export class SkillBuff {
669 625
 
670 626
     constructor(_buf_: ByteBuf) {
671 627
         this.idx = _buf_.ReadInt()
672 628
         this.remark = _buf_.ReadString()
673
-        this.skillId = _buf_.ReadInt()
674
-        this.skillType = _buf_.ReadInt()
675
-        this.cd = _buf_.ReadInt()
676
-        this.gridRange = _buf_.ReadInt()
677
-        this.range = _buf_.ReadInt()
629
+        this.type = _buf_.ReadInt()
630
+        this.parameters = _buf_.ReadString()
631
+        this.probability = _buf_.ReadInt()
678 632
         this.triggerCondition = _buf_.ReadString()
679
-        this.effects = _buf_.ReadString()
680
-        this.buffId = _buf_.ReadString()
681
-        this.skillName = _buf_.ReadString()
682
-        this.desc = _buf_.ReadString()
683
-        this.conflictSkillId = _buf_.ReadInt()
633
+        this.effectType = _buf_.ReadInt()
634
+        this.duration = _buf_.ReadInt()
635
+        this.overlapTimes = _buf_.ReadInt()
636
+        this.uniqueGain = _buf_.ReadBool()
637
+        this.halo = _buf_.ReadBool()
638
+        this.attributes = _buf_.ReadString()
639
+        this.mixBufficon = _buf_.ReadInt()
640
+        this.skillShowId = _buf_.ReadInt()
641
+        this.floatingTextId = _buf_.ReadInt()
684 642
     }
685 643
 
686 644
     /**
687
-     * 主键id
645
+     * buffid
688 646
      */
689 647
     readonly idx: number
690 648
     /**
@@ -692,49 +650,57 @@ export class Skill {
692 650
      */
693 651
     readonly remark: string
694 652
     /**
695
-     * 技能ID
653
+     * buff类型
696 654
      */
697
-    readonly skillId: number
655
+    readonly type: number
698 656
     /**
699
-     * 类型
657
+     * buff参数
700 658
      */
701
-    readonly skillType: number
659
+    readonly parameters: string
702 660
     /**
703
-     * 冷却时间
661
+     * 触发概率
704 662
      */
705
-    readonly cd: number
663
+    readonly probability: number
706 664
     /**
707
-     * 格子范围
665
+     * 触发条件
708 666
      */
709
-    readonly gridRange: number
667
+    readonly triggerCondition: string
710 668
     /**
711
-     * 攻击距离
669
+     * 效果类型
712 670
      */
713
-    readonly range: number
671
+    readonly effectType: number
714 672
     /**
715
-     * 技能触发条件
673
+     * 持续时间
716 674
      */
717
-    readonly triggerCondition: string
675
+    readonly duration: number
718 676
     /**
719
-     * 效果列表
677
+     * 叠加次数
720 678
      */
721
-    readonly effects: string
679
+    readonly overlapTimes: number
722 680
     /**
723
-     * buff
681
+     * 唯一增益
724 682
      */
725
-    readonly buffId: string
683
+    readonly uniqueGain: boolean
726 684
     /**
727
-     * 技能名字
685
+     * 是否是光环
728 686
      */
729
-    readonly skillName: string
687
+    readonly halo: boolean
730 688
     /**
731
-     * 技能描述
689
+     * buff增加的属性
732 690
      */
733
-    readonly desc: string
691
+    readonly attributes: string
734 692
     /**
735
-     * 冲突的技能id
693
+     * 是否合并
736 694
      */
737
-    readonly conflictSkillId: number
695
+    readonly mixBufficon: number
696
+    /**
697
+     * 效果id
698
+     */
699
+    readonly skillShowId: number
700
+    /**
701
+     * 飘字id
702
+     */
703
+    readonly floatingTextId: number
738 704
 
739 705
     resolve(tables:Tables) {
740 706
         
@@ -750,6 +716,40 @@ export class Skill {
750 716
         
751 717
         
752 718
         
719
+        
720
+        
721
+    }
722
+}
723
+
724
+
725
+
726
+
727
+
728
+export class BattleSummonWeight {
729
+
730
+    constructor(_buf_: ByteBuf) {
731
+        this.idx = _buf_.ReadInt()
732
+        this.quality = _buf_.ReadInt()
733
+        this.weight = _buf_.ReadInt()
734
+    }
735
+
736
+    /**
737
+     * 唯一id
738
+     */
739
+    readonly idx: number
740
+    /**
741
+     * 品质
742
+     */
743
+    readonly quality: Quality
744
+    /**
745
+     * 权重
746
+     */
747
+    readonly weight: number
748
+
749
+    resolve(tables:Tables) {
750
+        
751
+        
752
+        
753 753
     }
754 754
 }
755 755