Browse Source

auto config export

Hua 11 months ago
parent
commit
feade22782
1 changed files with 185 additions and 185 deletions
  1. 185 185
      schema/schema.ts

+ 185 - 185
schema/schema.ts

@@ -289,6 +289,94 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
+export class Hero {
293
+
294
+    constructor(_buf_: ByteBuf) {
295
+        this.id = _buf_.ReadInt()
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()
302
+    }
303
+
304
+    /**
305
+     * 英雄ID
306
+     */
307
+    readonly id: number
308
+    /**
309
+     * 品质
310
+     */
311
+    readonly quality: Quality
312
+    /**
313
+     * 攻击类型
314
+     */
315
+    readonly attacktype: AttackType
316
+    /**
317
+     * 名字
318
+     */
319
+    readonly name: string
320
+    /**
321
+     * 技能列表
322
+     */
323
+    readonly skills: number[]
324
+    /**
325
+     * 合成英雄公式
326
+     */
327
+    readonly composeheros: number[]
328
+    /**
329
+     * 是否测试
330
+     */
331
+    readonly isShow: number
332
+
333
+    resolve(tables:Tables) {
334
+        
335
+        
336
+        
337
+        
338
+        
339
+        
340
+        
341
+    }
342
+}
343
+
344
+
345
+
346
+
347
+
348
+export class System {
349
+
350
+    constructor(_buf_: ByteBuf) {
351
+        this.idx = _buf_.ReadInt()
352
+        this.mainKey = _buf_.ReadString()
353
+        this.value = _buf_.ReadString()
354
+    }
355
+
356
+    /**
357
+     * IDX
358
+     */
359
+    readonly idx: number
360
+    /**
361
+     * 常量主键
362
+     */
363
+    readonly mainKey: string
364
+    /**
365
+     * 常量值
366
+     */
367
+    readonly value: string
368
+
369
+    resolve(tables:Tables) {
370
+        
371
+        
372
+        
373
+    }
374
+}
375
+
376
+
377
+
378
+
379
+
292 380
 export class SkillBuff {
293 381
 
294 382
     constructor(_buf_: ByteBuf) {
@@ -393,44 +481,6 @@ export class SkillBuff {
393 481
 
394 482
 
395 483
 
396
-export class HeroQualityWorth {
397
-
398
-    constructor(_buf_: ByteBuf) {
399
-        this.idx = _buf_.ReadInt()
400
-        this.quality = _buf_.ReadInt()
401
-        this.gold = _buf_.ReadInt()
402
-        this.gem = _buf_.ReadInt()
403
-    }
404
-
405
-    /**
406
-     * 唯一id
407
-     */
408
-    readonly idx: number
409
-    /**
410
-     * 品质
411
-     */
412
-    readonly quality: Quality
413
-    /**
414
-     * 局内金币
415
-     */
416
-    readonly gold: number
417
-    /**
418
-     * 局内宝石
419
-     */
420
-    readonly gem: number
421
-
422
-    resolve(tables:Tables) {
423
-        
424
-        
425
-        
426
-        
427
-    }
428
-}
429
-
430
-
431
-
432
-
433
-
434 484
 export class BattleSummonWeight {
435 485
 
436 486
     constructor(_buf_: ByteBuf) {
@@ -463,26 +513,26 @@ export class BattleSummonWeight {
463 513
 
464 514
 
465 515
 
466
-export class System {
516
+export class Item {
467 517
 
468 518
     constructor(_buf_: ByteBuf) {
469 519
         this.idx = _buf_.ReadInt()
470
-        this.mainKey = _buf_.ReadString()
471
-        this.value = _buf_.ReadString()
520
+        this.type = _buf_.ReadInt()
521
+        this.name = _buf_.ReadString()
472 522
     }
473 523
 
474 524
     /**
475
-     * IDX
525
+     * 道具ID
476 526
      */
477 527
     readonly idx: number
478 528
     /**
479
-     * 常量主键
529
+     * 类型
480 530
      */
481
-    readonly mainKey: string
531
+    readonly type: number
482 532
     /**
483
-     * 常量值
533
+     * 道具名
484 534
      */
485
-    readonly value: string
535
+    readonly name: string
486 536
 
487 537
     resolve(tables:Tables) {
488 538
         
@@ -495,31 +545,37 @@ export class System {
495 545
 
496 546
 
497 547
 
498
-export class Item {
548
+export class HeroQualityWorth {
499 549
 
500 550
     constructor(_buf_: ByteBuf) {
501 551
         this.idx = _buf_.ReadInt()
502
-        this.type = _buf_.ReadInt()
503
-        this.name = _buf_.ReadString()
552
+        this.quality = _buf_.ReadInt()
553
+        this.gold = _buf_.ReadInt()
554
+        this.gem = _buf_.ReadInt()
504 555
     }
505 556
 
506 557
     /**
507
-     * 道具ID
558
+     * 唯一id
508 559
      */
509 560
     readonly idx: number
510 561
     /**
511
-     * 类型
562
+     * 品质
512 563
      */
513
-    readonly type: number
564
+    readonly quality: Quality
514 565
     /**
515
-     * 道具名
566
+     * 局内金币
516 567
      */
517
-    readonly name: string
568
+    readonly gold: number
569
+    /**
570
+     * 局内宝石
571
+     */
572
+    readonly gem: number
518 573
 
519 574
     resolve(tables:Tables) {
520 575
         
521 576
         
522 577
         
578
+        
523 579
     }
524 580
 }
525 581
 
@@ -571,147 +627,37 @@ export class WaveRewards {
571 627
 
572 628
 
573 629
 
574
-export class Hero {
630
+export class BattleSpacialSummon {
575 631
 
576 632
     constructor(_buf_: ByteBuf) {
577
-        this.id = _buf_.ReadInt()
633
+        this.idx = _buf_.ReadInt()
578 634
         this.quality = _buf_.ReadInt()
579
-        this.attacktype = _buf_.ReadInt()
580
-        this.name = _buf_.ReadString()
581
-        { 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);}}
582
-        { 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);}}
583
-        this.isShow = _buf_.ReadInt()
635
+        this.weight = _buf_.ReadInt()
636
+        this.costgem = _buf_.ReadInt()
584 637
     }
585 638
 
586 639
     /**
587
-     * 英雄ID
640
+     * 唯一id
588 641
      */
589
-    readonly id: number
642
+    readonly idx: number
590 643
     /**
591 644
      * 品质
592 645
      */
593 646
     readonly quality: Quality
594 647
     /**
595
-     * 攻击类型
596
-     */
597
-    readonly attacktype: AttackType
598
-    /**
599
-     * 名字
600
-     */
601
-    readonly name: string
602
-    /**
603
-     * 技能列表
604
-     */
605
-    readonly skills: number[]
606
-    /**
607
-     * 合成英雄公式
608
-     */
609
-    readonly composeheros: number[]
610
-    /**
611
-     * 是否测试
612
-     */
613
-    readonly isShow: number
614
-
615
-    resolve(tables:Tables) {
616
-        
617
-        
618
-        
619
-        
620
-        
621
-        
622
-        
623
-    }
624
-}
625
-
626
-
627
-
628
-
629
-
630
-export class Skill {
631
-
632
-    constructor(_buf_: ByteBuf) {
633
-        this.idx = _buf_.ReadInt()
634
-        this.remark = _buf_.ReadString()
635
-        this.skillId = _buf_.ReadInt()
636
-        this.skillType = _buf_.ReadInt()
637
-        this.cd = _buf_.ReadInt()
638
-        this.gridRange = _buf_.ReadInt()
639
-        this.range = _buf_.ReadInt()
640
-        this.triggerCondition = _buf_.ReadString()
641
-        this.effects = _buf_.ReadString()
642
-        this.buffId = _buf_.ReadString()
643
-        this.skillName = _buf_.ReadString()
644
-        this.desc = _buf_.ReadString()
645
-        this.conflictSkillId = _buf_.ReadInt()
646
-    }
647
-
648
-    /**
649
-     * 主键id
650
-     */
651
-    readonly idx: number
652
-    /**
653
-     * 备注
654
-     */
655
-    readonly remark: string
656
-    /**
657
-     * 技能ID
658
-     */
659
-    readonly skillId: number
660
-    /**
661
-     * 类型
662
-     */
663
-    readonly skillType: number
664
-    /**
665
-     * 冷却时间
666
-     */
667
-    readonly cd: number
668
-    /**
669
-     * 格子范围
670
-     */
671
-    readonly gridRange: number
672
-    /**
673
-     * 攻击距离
674
-     */
675
-    readonly range: number
676
-    /**
677
-     * 技能触发条件
678
-     */
679
-    readonly triggerCondition: string
680
-    /**
681
-     * 效果列表
682
-     */
683
-    readonly effects: string
684
-    /**
685
-     * buff
686
-     */
687
-    readonly buffId: string
688
-    /**
689
-     * 技能名字
690
-     */
691
-    readonly skillName: string
692
-    /**
693
-     * 技能描述
648
+     * 权重
694 649
      */
695
-    readonly desc: string
650
+    readonly weight: number
696 651
     /**
697
-     * 冲突的技能id
652
+     * 消耗宝石数量
698 653
      */
699
-    readonly conflictSkillId: number
654
+    readonly costgem: number
700 655
 
701 656
     resolve(tables:Tables) {
702 657
         
703 658
         
704 659
         
705 660
         
706
-        
707
-        
708
-        
709
-        
710
-        
711
-        
712
-        
713
-        
714
-        
715 661
     }
716 662
 }
717 663
 
@@ -799,37 +745,91 @@ export class Wave {
799 745
 
800 746
 
801 747
 
802
-export class BattleSpacialSummon {
748
+export class Skill {
803 749
 
804 750
     constructor(_buf_: ByteBuf) {
805 751
         this.idx = _buf_.ReadInt()
806
-        this.quality = _buf_.ReadInt()
807
-        this.weight = _buf_.ReadInt()
808
-        this.costgem = _buf_.ReadInt()
752
+        this.remark = _buf_.ReadString()
753
+        this.skillId = _buf_.ReadInt()
754
+        this.skillType = _buf_.ReadInt()
755
+        this.cd = _buf_.ReadInt()
756
+        this.gridRange = _buf_.ReadInt()
757
+        this.range = _buf_.ReadInt()
758
+        this.triggerCondition = _buf_.ReadString()
759
+        this.effects = _buf_.ReadString()
760
+        this.buffId = _buf_.ReadString()
761
+        this.skillName = _buf_.ReadString()
762
+        this.desc = _buf_.ReadString()
763
+        this.conflictSkillId = _buf_.ReadInt()
809 764
     }
810 765
 
811 766
     /**
812
-     * 唯一id
767
+     * 主键id
813 768
      */
814 769
     readonly idx: number
815 770
     /**
816
-     * 品质
771
+     * 备注
817 772
      */
818
-    readonly quality: Quality
773
+    readonly remark: string
819 774
     /**
820
-     * 权重
775
+     * 技能ID
821 776
      */
822
-    readonly weight: number
777
+    readonly skillId: number
823 778
     /**
824
-     * 消耗宝石数量
779
+     * 类型
825 780
      */
826
-    readonly costgem: number
781
+    readonly skillType: number
782
+    /**
783
+     * 冷却时间
784
+     */
785
+    readonly cd: number
786
+    /**
787
+     * 格子范围
788
+     */
789
+    readonly gridRange: number
790
+    /**
791
+     * 攻击距离
792
+     */
793
+    readonly range: number
794
+    /**
795
+     * 技能触发条件
796
+     */
797
+    readonly triggerCondition: string
798
+    /**
799
+     * 效果列表
800
+     */
801
+    readonly effects: string
802
+    /**
803
+     * buff
804
+     */
805
+    readonly buffId: string
806
+    /**
807
+     * 技能名字
808
+     */
809
+    readonly skillName: string
810
+    /**
811
+     * 技能描述
812
+     */
813
+    readonly desc: string
814
+    /**
815
+     * 冲突的技能id
816
+     */
817
+    readonly conflictSkillId: number
827 818
 
828 819
     resolve(tables:Tables) {
829 820
         
830 821
         
831 822
         
832 823
         
824
+        
825
+        
826
+        
827
+        
828
+        
829
+        
830
+        
831
+        
832
+        
833 833
     }
834 834
 }
835 835