Ver código fonte

auto config export

Hua 11 meses atrás
pai
commit
8ca341b08a
1 arquivos alterados com 175 adições e 175 exclusões
  1. 175 175
      schema/schema.ts

+ 175 - 175
schema/schema.ts

@@ -289,55 +289,37 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Hero {
292
+export class BattleSpacialSummon {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295
-        this.id = _buf_.ReadInt()
295
+        this.idx = _buf_.ReadInt()
296 296
         this.quality = _buf_.ReadInt()
297
-        this.attacktype = _buf_.ReadInt()
298
-        this.name = _buf_.ReadString()
299
-        { 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);}}
300
-        { 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);}}
301
-        this.isShow = _buf_.ReadInt()
297
+        this.weight = _buf_.ReadInt()
298
+        this.costgem = _buf_.ReadInt()
302 299
     }
303 300
 
304 301
     /**
305
-     * 英雄ID
302
+     * 唯一id
306 303
      */
307
-    readonly id: number
304
+    readonly idx: number
308 305
     /**
309 306
      * 品质
310 307
      */
311 308
     readonly quality: Quality
312 309
     /**
313
-     * 攻击类型
314
-     */
315
-    readonly attacktype: AttackType
316
-    /**
317
-     * 名字
318
-     */
319
-    readonly name: string
320
-    /**
321
-     * 技能列表
322
-     */
323
-    readonly skills: number[]
324
-    /**
325
-     * 合成英雄公式
310
+     * 权重
326 311
      */
327
-    readonly composeheros: number[]
312
+    readonly weight: number
328 313
     /**
329
-     * 是否测试
314
+     * 消耗宝石数量
330 315
      */
331
-    readonly isShow: number
316
+    readonly costgem: number
332 317
 
333 318
     resolve(tables:Tables) {
334 319
         
335 320
         
336 321
         
337 322
         
338
-        
339
-        
340
-        
341 323
     }
342 324
 }
343 325
 
@@ -449,6 +431,152 @@ export class SkillBuff {
449 431
 
450 432
 
451 433
 
434
+export class WaveRewards {
435
+
436
+    constructor(_buf_: ByteBuf) {
437
+        this.idx = _buf_.ReadInt()
438
+        this.waveMin = _buf_.ReadInt()
439
+        this.waveMax = _buf_.ReadInt()
440
+        this.level = _buf_.ReadInt()
441
+        { 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);}}
442
+    }
443
+
444
+    /**
445
+     * idx
446
+     */
447
+    readonly idx: number
448
+    /**
449
+     * 波数下限
450
+     */
451
+    readonly waveMin: number
452
+    /**
453
+     * 波数上限
454
+     */
455
+    readonly waveMax: number
456
+    /**
457
+     * 难度
458
+     */
459
+    readonly level: number
460
+    /**
461
+     * 奖励列表
462
+     */
463
+    readonly rewards: Common.Reward[]
464
+
465
+    resolve(tables:Tables) {
466
+        
467
+        
468
+        
469
+        
470
+        for (let _e of this.rewards) { _e?.resolve(tables); }
471
+    }
472
+}
473
+
474
+
475
+
476
+
477
+
478
+export class Item {
479
+
480
+    constructor(_buf_: ByteBuf) {
481
+        this.idx = _buf_.ReadInt()
482
+        this.type = _buf_.ReadInt()
483
+        this.name = _buf_.ReadString()
484
+    }
485
+
486
+    /**
487
+     * 道具ID
488
+     */
489
+    readonly idx: number
490
+    /**
491
+     * 类型
492
+     */
493
+    readonly type: number
494
+    /**
495
+     * 道具名
496
+     */
497
+    readonly name: string
498
+
499
+    resolve(tables:Tables) {
500
+        
501
+        
502
+        
503
+    }
504
+}
505
+
506
+
507
+
508
+
509
+
510
+export class HeroQualityWorth {
511
+
512
+    constructor(_buf_: ByteBuf) {
513
+        this.idx = _buf_.ReadInt()
514
+        this.quality = _buf_.ReadInt()
515
+        this.gold = _buf_.ReadInt()
516
+        this.gem = _buf_.ReadInt()
517
+    }
518
+
519
+    /**
520
+     * 唯一id
521
+     */
522
+    readonly idx: number
523
+    /**
524
+     * 品质
525
+     */
526
+    readonly quality: Quality
527
+    /**
528
+     * 局内金币
529
+     */
530
+    readonly gold: number
531
+    /**
532
+     * 局内宝石
533
+     */
534
+    readonly gem: number
535
+
536
+    resolve(tables:Tables) {
537
+        
538
+        
539
+        
540
+        
541
+    }
542
+}
543
+
544
+
545
+
546
+
547
+
548
+export class BattleSummonWeight {
549
+
550
+    constructor(_buf_: ByteBuf) {
551
+        this.idx = _buf_.ReadInt()
552
+        this.quality = _buf_.ReadInt()
553
+        this.weight = _buf_.ReadInt()
554
+    }
555
+
556
+    /**
557
+     * 唯一id
558
+     */
559
+    readonly idx: number
560
+    /**
561
+     * 品质
562
+     */
563
+    readonly quality: Quality
564
+    /**
565
+     * 权重
566
+     */
567
+    readonly weight: number
568
+
569
+    resolve(tables:Tables) {
570
+        
571
+        
572
+        
573
+    }
574
+}
575
+
576
+
577
+
578
+
579
+
452 580
 export class Skill {
453 581
 
454 582
     constructor(_buf_: ByteBuf) {
@@ -541,38 +669,6 @@ export class Skill {
541 669
 
542 670
 
543 671
 
544
-export class Item {
545
-
546
-    constructor(_buf_: ByteBuf) {
547
-        this.idx = _buf_.ReadInt()
548
-        this.type = _buf_.ReadInt()
549
-        this.name = _buf_.ReadString()
550
-    }
551
-
552
-    /**
553
-     * 道具ID
554
-     */
555
-    readonly idx: number
556
-    /**
557
-     * 类型
558
-     */
559
-    readonly type: number
560
-    /**
561
-     * 道具名
562
-     */
563
-    readonly name: string
564
-
565
-    resolve(tables:Tables) {
566
-        
567
-        
568
-        
569
-    }
570
-}
571
-
572
-
573
-
574
-
575
-
576 672
 export class System {
577 673
 
578 674
     constructor(_buf_: ByteBuf) {
@@ -605,50 +701,6 @@ export class System {
605 701
 
606 702
 
607 703
 
608
-export class WaveRewards {
609
-
610
-    constructor(_buf_: ByteBuf) {
611
-        this.idx = _buf_.ReadInt()
612
-        this.waveMin = _buf_.ReadInt()
613
-        this.waveMax = _buf_.ReadInt()
614
-        this.level = _buf_.ReadInt()
615
-        { 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);}}
616
-    }
617
-
618
-    /**
619
-     * idx
620
-     */
621
-    readonly idx: number
622
-    /**
623
-     * 波数下限
624
-     */
625
-    readonly waveMin: number
626
-    /**
627
-     * 波数上限
628
-     */
629
-    readonly waveMax: number
630
-    /**
631
-     * 难度
632
-     */
633
-    readonly level: number
634
-    /**
635
-     * 奖励列表
636
-     */
637
-    readonly rewards: Common.Reward[]
638
-
639
-    resolve(tables:Tables) {
640
-        
641
-        
642
-        
643
-        
644
-        for (let _e of this.rewards) { _e?.resolve(tables); }
645
-    }
646
-}
647
-
648
-
649
-
650
-
651
-
652 704
 export class Wave {
653 705
 
654 706
     constructor(_buf_: ByteBuf) {
@@ -729,104 +781,52 @@ export class Wave {
729 781
 
730 782
 
731 783
 
732
-export class BattleSummonWeight {
784
+export class Hero {
733 785
 
734 786
     constructor(_buf_: ByteBuf) {
735
-        this.idx = _buf_.ReadInt()
787
+        this.id = _buf_.ReadInt()
736 788
         this.quality = _buf_.ReadInt()
737
-        this.weight = _buf_.ReadInt()
789
+        this.attacktype = _buf_.ReadInt()
790
+        this.name = _buf_.ReadString()
791
+        { 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);}}
792
+        { 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);}}
793
+        this.isShow = _buf_.ReadInt()
738 794
     }
739 795
 
740 796
     /**
741
-     * 唯一id
797
+     * 英雄ID
742 798
      */
743
-    readonly idx: number
799
+    readonly id: number
744 800
     /**
745 801
      * 品质
746 802
      */
747 803
     readonly quality: Quality
748 804
     /**
749
-     * 权重
805
+     * 攻击类型
750 806
      */
751
-    readonly weight: number
752
-
753
-    resolve(tables:Tables) {
754
-        
755
-        
756
-        
757
-    }
758
-}
759
-
760
-
761
-
762
-
763
-
764
-export class HeroQualityWorth {
765
-
766
-    constructor(_buf_: ByteBuf) {
767
-        this.idx = _buf_.ReadInt()
768
-        this.quality = _buf_.ReadInt()
769
-        this.gold = _buf_.ReadInt()
770
-        this.gem = _buf_.ReadInt()
771
-    }
772
-
807
+    readonly attacktype: AttackType
773 808
     /**
774
-     * 唯一id
809
+     * 名字
775 810
      */
776
-    readonly idx: number
811
+    readonly name: string
777 812
     /**
778
-     * 品质
813
+     * 技能列表
779 814
      */
780
-    readonly quality: Quality
815
+    readonly skills: number[]
781 816
     /**
782
-     * 局内金币
817
+     * 合成英雄公式
783 818
      */
784
-    readonly gold: number
819
+    readonly composeheros: number[]
785 820
     /**
786
-     * 局内宝石
821
+     * 是否测试
787 822
      */
788
-    readonly gem: number
823
+    readonly isShow: number
789 824
 
790 825
     resolve(tables:Tables) {
791 826
         
792 827
         
793 828
         
794 829
         
795
-    }
796
-}
797
-
798
-
799
-
800
-
801
-
802
-export class BattleSpacialSummon {
803
-
804
-    constructor(_buf_: ByteBuf) {
805
-        this.idx = _buf_.ReadInt()
806
-        this.quality = _buf_.ReadInt()
807
-        this.weight = _buf_.ReadInt()
808
-        this.costgem = _buf_.ReadInt()
809
-    }
810
-
811
-    /**
812
-     * 唯一id
813
-     */
814
-    readonly idx: number
815
-    /**
816
-     * 品质
817
-     */
818
-    readonly quality: Quality
819
-    /**
820
-     * 权重
821
-     */
822
-    readonly weight: number
823
-    /**
824
-     * 消耗宝石数量
825
-     */
826
-    readonly costgem: number
827
-
828
-    resolve(tables:Tables) {
829
-        
830 830
         
831 831
         
832 832