Sfoglia il codice sorgente

auto config export

Hua 10 mesi fa
parent
commit
943d3e4f22
1 ha cambiato i file con 154 aggiunte e 154 eliminazioni
  1. 154 154
      schema/schema.ts

+ 154 - 154
schema/schema.ts

@@ -327,112 +327,42 @@ export class BattleSpacialSummon {
327 327
 
328 328
 
329 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 WaveRewards {
330
+export class StrengthenLevel {
363 331
 
364 332
     constructor(_buf_: ByteBuf) {
365 333
         this.idx = _buf_.ReadInt()
366
-        this.waveMin = _buf_.ReadInt()
367
-        this.waveMax = _buf_.ReadInt()
334
+        this.quality = _buf_.ReadInt()
368 335
         this.level = _buf_.ReadInt()
369 336
         { 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);}}
337
+        this.attributes = _buf_.ReadString()
370 338
     }
371 339
 
372 340
     /**
373
-     * idx
341
+     * 唯一id
374 342
      */
375 343
     readonly idx: number
376 344
     /**
377
-     * 波数下限
378
-     */
379
-    readonly waveMin: number
380
-    /**
381
-     * 波数上限
345
+     * 品质
382 346
      */
383
-    readonly waveMax: number
347
+    readonly quality: Quality
384 348
     /**
385
-     * 难度
349
+     * 等级
386 350
      */
387 351
     readonly level: number
388 352
     /**
389
-     * 奖励列表
353
+     * 消耗
390 354
      */
391 355
     readonly rewards: Common.Reward[]
392
-
393
-    resolve(tables:Tables) {
394
-        
395
-        
396
-        
397
-        
398
-        for (let _e of this.rewards) { _e?.resolve(tables); }
399
-    }
400
-}
401
-
402
-
403
-
404
-
405
-
406
-export class HeroQualityWorth {
407
-
408
-    constructor(_buf_: ByteBuf) {
409
-        this.idx = _buf_.ReadInt()
410
-        this.quality = _buf_.ReadInt()
411
-        this.gold = _buf_.ReadInt()
412
-        this.gem = _buf_.ReadInt()
413
-    }
414
-
415
-    /**
416
-     * 唯一id
417
-     */
418
-    readonly idx: number
419
-    /**
420
-     * 品质
421
-     */
422
-    readonly quality: Quality
423
-    /**
424
-     * 局内金币
425
-     */
426
-    readonly gold: number
427 356
     /**
428
-     * 局内宝石
357
+     * buff增加的属性
429 358
      */
430
-    readonly gem: number
359
+    readonly attributes: string
431 360
 
432 361
     resolve(tables:Tables) {
433 362
         
434 363
         
435 364
         
365
+        for (let _e of this.rewards) { _e?.resolve(tables); }
436 366
         
437 367
     }
438 368
 }
@@ -545,43 +475,31 @@ export class SkillBuff {
545 475
 
546 476
 
547 477
 
548
-export class StrengthenLevel {
478
+export class System {
549 479
 
550 480
     constructor(_buf_: ByteBuf) {
551 481
         this.idx = _buf_.ReadInt()
552
-        this.quality = _buf_.ReadInt()
553
-        this.level = _buf_.ReadInt()
554
-        { 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);}}
555
-        this.attributes = _buf_.ReadString()
482
+        this.mainKey = _buf_.ReadString()
483
+        this.value = _buf_.ReadString()
556 484
     }
557 485
 
558 486
     /**
559
-     * 唯一id
487
+     * IDX
560 488
      */
561 489
     readonly idx: number
562 490
     /**
563
-     * 品质
564
-     */
565
-    readonly quality: Quality
566
-    /**
567
-     * 等级
568
-     */
569
-    readonly level: number
570
-    /**
571
-     * 消耗
491
+     * 常量主键
572 492
      */
573
-    readonly rewards: Common.Reward[]
493
+    readonly mainKey: string
574 494
     /**
575
-     * buff增加的属性
495
+     * 常量值
576 496
      */
577
-    readonly attributes: string
497
+    readonly value: string
578 498
 
579 499
     resolve(tables:Tables) {
580 500
         
581 501
         
582 502
         
583
-        for (let _e of this.rewards) { _e?.resolve(tables); }
584
-        
585 503
     }
586 504
 }
587 505
 
@@ -589,31 +507,37 @@ export class StrengthenLevel {
589 507
 
590 508
 
591 509
 
592
-export class System {
510
+export class HeroQualityWorth {
593 511
 
594 512
     constructor(_buf_: ByteBuf) {
595 513
         this.idx = _buf_.ReadInt()
596
-        this.mainKey = _buf_.ReadString()
597
-        this.value = _buf_.ReadString()
514
+        this.quality = _buf_.ReadInt()
515
+        this.gold = _buf_.ReadInt()
516
+        this.gem = _buf_.ReadInt()
598 517
     }
599 518
 
600 519
     /**
601
-     * IDX
520
+     * 唯一id
602 521
      */
603 522
     readonly idx: number
604 523
     /**
605
-     * 常量主键
524
+     * 品质
606 525
      */
607
-    readonly mainKey: string
526
+    readonly quality: Quality
608 527
     /**
609
-     * 常量值
528
+     * 局内金币
610 529
      */
611
-    readonly value: string
530
+    readonly gold: number
531
+    /**
532
+     * 局内宝石
533
+     */
534
+    readonly gem: number
612 535
 
613 536
     resolve(tables:Tables) {
614 537
         
615 538
         
616 539
         
540
+        
617 541
     }
618 542
 }
619 543
 
@@ -745,6 +669,86 @@ export class Skill {
745 669
 
746 670
 
747 671
 
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
+
748 752
 export class Hero {
749 753
 
750 754
     constructor(_buf_: ByteBuf) {
@@ -801,79 +805,75 @@ export class Hero {
801 805
 
802 806
 
803 807
 
804
-export class Wave {
808
+export class Item {
805 809
 
806 810
     constructor(_buf_: ByteBuf) {
807 811
         this.idx = _buf_.ReadInt()
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()
812
+        this.type = _buf_.ReadInt()
813
+        this.name = _buf_.ReadString()
818 814
     }
819 815
 
820 816
     /**
821
-     * 唯一id
817
+     * 道具ID
822 818
      */
823 819
     readonly idx: number
824 820
     /**
825
-     * 波数
826
-     */
827
-    readonly waveIndex: number
828
-    /**
829
-     * 难度
830
-     */
831
-    readonly level: number
832
-    /**
833
-     * 怪物模型
834
-     */
835
-    readonly model: number
836
-    /**
837
-     * 数量
821
+     * 类型
838 822
      */
839
-    readonly counter: number
823
+    readonly type: number
840 824
     /**
841
-     * 血量
825
+     * 道具名
842 826
      */
843
-    readonly hp: number
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
+
844 850
     /**
845
-     * 速度
851
+     * idx
846 852
      */
847
-    readonly speed: number
853
+    readonly idx: number
848 854
     /**
849
-     * 间距
855
+     * 波数下限
850 856
      */
851
-    readonly gap: number
857
+    readonly waveMin: number
852 858
     /**
853
-     * 是否是boss
859
+     * 波数上限
854 860
      */
855
-    readonly isboss: number
861
+    readonly waveMax: number
856 862
     /**
857
-     * 每只怪增加局内金币
863
+     * 难度
858 864
      */
859
-    readonly perAddCoid: number
865
+    readonly level: number
860 866
     /**
861
-     * 每只怪增加局内宝石
867
+     * 奖励列表
862 868
      */
863
-    readonly perAddGem: number
869
+    readonly rewards: Common.Reward[]
864 870
 
865 871
     resolve(tables:Tables) {
866 872
         
867 873
         
868 874
         
869 875
         
870
-        
871
-        
872
-        
873
-        
874
-        
875
-        
876
-        
876
+        for (let _e of this.rewards) { _e?.resolve(tables); }
877 877
     }
878 878
 }
879 879