Pārlūkot izejas kodu

auto config export

Hua 1 gadu atpakaļ
vecāks
revīzija
5cba9ec0d6
1 mainītis faili ar 154 papildinājumiem un 154 dzēšanām
  1. 154 154
      schema/schema.ts

+ 154 - 154
schema/schema.ts

@@ -289,37 +289,31 @@ export class Cost {
289
 
289
 
290
 
290
 
291
 
291
 
292
-export class BattleSpacialSummon {
292
+export class Item {
293
 
293
 
294
     constructor(_buf_: ByteBuf) {
294
     constructor(_buf_: ByteBuf) {
295
         this.idx = _buf_.ReadInt()
295
         this.idx = _buf_.ReadInt()
296
-        this.quality = _buf_.ReadInt()
297
-        this.weight = _buf_.ReadInt()
298
-        this.costgem = _buf_.ReadInt()
296
+        this.type = _buf_.ReadInt()
297
+        this.name = _buf_.ReadString()
299
     }
298
     }
300
 
299
 
301
     /**
300
     /**
302
-     * 唯一id
301
+     * 道具ID
303
      */
302
      */
304
     readonly idx: number
303
     readonly idx: number
305
     /**
304
     /**
306
-     * 品质
307
-     */
308
-    readonly quality: Quality
309
-    /**
310
-     * 权重
305
+     * 类型
311
      */
306
      */
312
-    readonly weight: number
307
+    readonly type: number
313
     /**
308
     /**
314
-     * 消耗宝石数量
309
+     * 道具名
315
      */
310
      */
316
-    readonly costgem: number
311
+    readonly name: string
317
 
312
 
318
     resolve(tables:Tables) {
313
     resolve(tables:Tables) {
319
         
314
         
320
         
315
         
321
         
316
         
322
-        
323
     }
317
     }
324
 }
318
 }
325
 
319
 
@@ -475,26 +469,26 @@ export class SkillBuff {
475
 
469
 
476
 
470
 
477
 
471
 
478
-export class System {
472
+export class BattleSummonWeight {
479
 
473
 
480
     constructor(_buf_: ByteBuf) {
474
     constructor(_buf_: ByteBuf) {
481
         this.idx = _buf_.ReadInt()
475
         this.idx = _buf_.ReadInt()
482
-        this.mainKey = _buf_.ReadString()
483
-        this.value = _buf_.ReadString()
476
+        this.quality = _buf_.ReadInt()
477
+        this.weight = _buf_.ReadInt()
484
     }
478
     }
485
 
479
 
486
     /**
480
     /**
487
-     * IDX
481
+     * 唯一id
488
      */
482
      */
489
     readonly idx: number
483
     readonly idx: number
490
     /**
484
     /**
491
-     * 常量主键
485
+     * 品质
492
      */
486
      */
493
-    readonly mainKey: string
487
+    readonly quality: Quality
494
     /**
488
     /**
495
-     * 常量值
489
+     * 权重
496
      */
490
      */
497
-    readonly value: string
491
+    readonly weight: number
498
 
492
 
499
     resolve(tables:Tables) {
493
     resolve(tables:Tables) {
500
         
494
         
@@ -507,13 +501,57 @@ export class System {
507
 
501
 
508
 
502
 
509
 
503
 
510
-export class HeroQualityWorth {
504
+export class WaveRewards {
505
+
506
+    constructor(_buf_: ByteBuf) {
507
+        this.idx = _buf_.ReadInt()
508
+        this.waveMin = _buf_.ReadInt()
509
+        this.waveMax = _buf_.ReadInt()
510
+        this.level = _buf_.ReadInt()
511
+        { 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);}}
512
+    }
513
+
514
+    /**
515
+     * idx
516
+     */
517
+    readonly idx: number
518
+    /**
519
+     * 波数下限
520
+     */
521
+    readonly waveMin: number
522
+    /**
523
+     * 波数上限
524
+     */
525
+    readonly waveMax: number
526
+    /**
527
+     * 难度
528
+     */
529
+    readonly level: number
530
+    /**
531
+     * 奖励列表
532
+     */
533
+    readonly rewards: Common.Reward[]
534
+
535
+    resolve(tables:Tables) {
536
+        
537
+        
538
+        
539
+        
540
+        for (let _e of this.rewards) { _e?.resolve(tables); }
541
+    }
542
+}
543
+
544
+
545
+
546
+
547
+
548
+export class BattleSpacialSummon {
511
 
549
 
512
     constructor(_buf_: ByteBuf) {
550
     constructor(_buf_: ByteBuf) {
513
         this.idx = _buf_.ReadInt()
551
         this.idx = _buf_.ReadInt()
514
         this.quality = _buf_.ReadInt()
552
         this.quality = _buf_.ReadInt()
515
-        this.gold = _buf_.ReadInt()
516
-        this.gem = _buf_.ReadInt()
553
+        this.weight = _buf_.ReadInt()
554
+        this.costgem = _buf_.ReadInt()
517
     }
555
     }
518
 
556
 
519
     /**
557
     /**
@@ -525,13 +563,13 @@ export class HeroQualityWorth {
525
      */
563
      */
526
     readonly quality: Quality
564
     readonly quality: Quality
527
     /**
565
     /**
528
-     * 局内金币
566
+     * 权重
529
      */
567
      */
530
-    readonly gold: number
568
+    readonly weight: number
531
     /**
569
     /**
532
-     * 局内宝石
570
+     * 消耗宝石数量
533
      */
571
      */
534
-    readonly gem: number
572
+    readonly costgem: number
535
 
573
 
536
     resolve(tables:Tables) {
574
     resolve(tables:Tables) {
537
         
575
         
@@ -545,12 +583,45 @@ export class HeroQualityWorth {
545
 
583
 
546
 
584
 
547
 
585
 
548
-export class BattleSummonWeight {
586
+export class System {
587
+
588
+    constructor(_buf_: ByteBuf) {
589
+        this.idx = _buf_.ReadInt()
590
+        this.mainKey = _buf_.ReadString()
591
+        this.value = _buf_.ReadString()
592
+    }
593
+
594
+    /**
595
+     * IDX
596
+     */
597
+    readonly idx: number
598
+    /**
599
+     * 常量主键
600
+     */
601
+    readonly mainKey: string
602
+    /**
603
+     * 常量值
604
+     */
605
+    readonly value: string
606
+
607
+    resolve(tables:Tables) {
608
+        
609
+        
610
+        
611
+    }
612
+}
613
+
614
+
615
+
616
+
617
+
618
+export class HeroQualityWorth {
549
 
619
 
550
     constructor(_buf_: ByteBuf) {
620
     constructor(_buf_: ByteBuf) {
551
         this.idx = _buf_.ReadInt()
621
         this.idx = _buf_.ReadInt()
552
         this.quality = _buf_.ReadInt()
622
         this.quality = _buf_.ReadInt()
553
-        this.weight = _buf_.ReadInt()
623
+        this.gold = _buf_.ReadInt()
624
+        this.gem = _buf_.ReadInt()
554
     }
625
     }
555
 
626
 
556
     /**
627
     /**
@@ -562,14 +633,19 @@ export class BattleSummonWeight {
562
      */
633
      */
563
     readonly quality: Quality
634
     readonly quality: Quality
564
     /**
635
     /**
565
-     * 权重
636
+     * 局内金币
566
      */
637
      */
567
-    readonly weight: number
638
+    readonly gold: number
639
+    /**
640
+     * 局内宝石
641
+     */
642
+    readonly gem: number
568
 
643
 
569
     resolve(tables:Tables) {
644
     resolve(tables:Tables) {
570
         
645
         
571
         
646
         
572
         
647
         
648
+        
573
     }
649
     }
574
 }
650
 }
575
 
651
 
@@ -669,86 +745,6 @@ export class Skill {
669
 
745
 
670
 
746
 
671
 
747
 
672
-export class Wave {
673
-
674
-    constructor(_buf_: ByteBuf) {
675
-        this.idx = _buf_.ReadInt()
676
-        this.waveIndex = _buf_.ReadInt()
677
-        this.level = _buf_.ReadInt()
678
-        this.model = _buf_.ReadInt()
679
-        this.counter = _buf_.ReadInt()
680
-        this.hp = _buf_.ReadInt()
681
-        this.speed = _buf_.ReadInt()
682
-        this.gap = _buf_.ReadInt()
683
-        this.isboss = _buf_.ReadInt()
684
-        this.perAddCoid = _buf_.ReadInt()
685
-        this.perAddGem = _buf_.ReadInt()
686
-    }
687
-
688
-    /**
689
-     * 唯一id
690
-     */
691
-    readonly idx: number
692
-    /**
693
-     * 波数
694
-     */
695
-    readonly waveIndex: number
696
-    /**
697
-     * 难度
698
-     */
699
-    readonly level: number
700
-    /**
701
-     * 怪物模型
702
-     */
703
-    readonly model: number
704
-    /**
705
-     * 数量
706
-     */
707
-    readonly counter: number
708
-    /**
709
-     * 血量
710
-     */
711
-    readonly hp: number
712
-    /**
713
-     * 速度
714
-     */
715
-    readonly speed: number
716
-    /**
717
-     * 间距
718
-     */
719
-    readonly gap: number
720
-    /**
721
-     * 是否是boss
722
-     */
723
-    readonly isboss: number
724
-    /**
725
-     * 每只怪增加局内金币
726
-     */
727
-    readonly perAddCoid: number
728
-    /**
729
-     * 每只怪增加局内宝石
730
-     */
731
-    readonly perAddGem: number
732
-
733
-    resolve(tables:Tables) {
734
-        
735
-        
736
-        
737
-        
738
-        
739
-        
740
-        
741
-        
742
-        
743
-        
744
-        
745
-    }
746
-}
747
-
748
-
749
-
750
-
751
-
752
 export class Hero {
748
 export class Hero {
753
 
749
 
754
     constructor(_buf_: ByteBuf) {
750
     constructor(_buf_: ByteBuf) {
@@ -805,75 +801,79 @@ export class Hero {
805
 
801
 
806
 
802
 
807
 
803
 
808
-export class Item {
804
+export class Wave {
809
 
805
 
810
     constructor(_buf_: ByteBuf) {
806
     constructor(_buf_: ByteBuf) {
811
         this.idx = _buf_.ReadInt()
807
         this.idx = _buf_.ReadInt()
812
-        this.type = _buf_.ReadInt()
813
-        this.name = _buf_.ReadString()
808
+        this.waveIndex = _buf_.ReadInt()
809
+        this.level = _buf_.ReadInt()
810
+        this.model = _buf_.ReadInt()
811
+        this.counter = _buf_.ReadInt()
812
+        this.hp = _buf_.ReadInt()
813
+        this.speed = _buf_.ReadInt()
814
+        this.gap = _buf_.ReadInt()
815
+        this.isboss = _buf_.ReadInt()
816
+        this.perAddCoid = _buf_.ReadInt()
817
+        this.perAddGem = _buf_.ReadInt()
814
     }
818
     }
815
 
819
 
816
     /**
820
     /**
817
-     * 道具ID
821
+     * 唯一id
818
      */
822
      */
819
     readonly idx: number
823
     readonly idx: number
820
     /**
824
     /**
821
-     * 类型
825
+     * 波数
822
      */
826
      */
823
-    readonly type: number
827
+    readonly waveIndex: number
824
     /**
828
     /**
825
-     * 道具名
829
+     * 难度
826
      */
830
      */
827
-    readonly name: string
828
-
829
-    resolve(tables:Tables) {
830
-        
831
-        
832
-        
833
-    }
834
-}
835
-
836
-
837
-
838
-
839
-
840
-export class WaveRewards {
841
-
842
-    constructor(_buf_: ByteBuf) {
843
-        this.idx = _buf_.ReadInt()
844
-        this.waveMin = _buf_.ReadInt()
845
-        this.waveMax = _buf_.ReadInt()
846
-        this.level = _buf_.ReadInt()
847
-        { 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);}}
848
-    }
849
-
831
+    readonly level: number
850
     /**
832
     /**
851
-     * idx
833
+     * 怪物模型
852
      */
834
      */
853
-    readonly idx: number
835
+    readonly model: number
854
     /**
836
     /**
855
-     * 波数下限
837
+     * 数量
856
      */
838
      */
857
-    readonly waveMin: number
839
+    readonly counter: number
858
     /**
840
     /**
859
-     * 波数上限
841
+     * 血量
860
      */
842
      */
861
-    readonly waveMax: number
843
+    readonly hp: number
862
     /**
844
     /**
863
-     * 
845
+     * 速度
864
      */
846
      */
865
-    readonly level: number
847
+    readonly speed: number
866
     /**
848
     /**
867
-     * 奖励列表
849
+     * 间距
868
      */
850
      */
869
-    readonly rewards: Common.Reward[]
851
+    readonly gap: number
852
+    /**
853
+     * 是否是boss
854
+     */
855
+    readonly isboss: number
856
+    /**
857
+     * 每只怪增加局内金币
858
+     */
859
+    readonly perAddCoid: number
860
+    /**
861
+     * 每只怪增加局内宝石
862
+     */
863
+    readonly perAddGem: number
870
 
864
 
871
     resolve(tables:Tables) {
865
     resolve(tables:Tables) {
872
         
866
         
873
         
867
         
874
         
868
         
875
         
869
         
876
-        for (let _e of this.rewards) { _e?.resolve(tables); }
870
+        
871
+        
872
+        
873
+        
874
+        
875
+        
876
+        
877
     }
877
     }
878
 }
878
 }
879
 
879