瀏覽代碼

auto config export

Hua 9 月之前
父節點
當前提交
23a806da99
共有 1 個文件被更改,包括 292 次插入280 次删除
  1. 292 280
      schema/schema.ts

+ 292 - 280
schema/schema.ts

@@ -289,103 +289,145 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class SkillBuff {
292
+export class System {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.remark = _buf_.ReadString()
297
-        this.type = _buf_.ReadInt()
298
-        this.parameters = _buf_.ReadString()
299
-        this.probability = _buf_.ReadInt()
300
-        this.triggerCondition = _buf_.ReadString()
301
-        this.effectType = _buf_.ReadInt()
302
-        this.duration = _buf_.ReadInt()
303
-        this.overlapTimes = _buf_.ReadInt()
304
-        this.uniqueGain = _buf_.ReadBool()
305
-        this.halo = _buf_.ReadBool()
306
-        this.attributes = _buf_.ReadString()
307
-        this.mixBufficon = _buf_.ReadInt()
308
-        this.skillShowId = _buf_.ReadInt()
309
-        this.floatingTextId = _buf_.ReadInt()
296
+        this.mainKey = _buf_.ReadString()
297
+        this.value = _buf_.ReadString()
310 298
     }
311 299
 
312 300
     /**
313
-     * buffid
301
+     * IDX
314 302
      */
315 303
     readonly idx: number
316 304
     /**
317
-     * 备注
305
+     * 常量主键
318 306
      */
319
-    readonly remark: string
307
+    readonly mainKey: string
320 308
     /**
321
-     * buff类型
309
+     * 常量值
322 310
      */
323
-    readonly type: number
311
+    readonly value: string
312
+
313
+    resolve(tables:Tables) {
314
+        
315
+        
316
+        
317
+    }
318
+}
319
+
320
+
321
+
322
+
323
+
324
+export class WaveRewards {
325
+
326
+    constructor(_buf_: ByteBuf) {
327
+        this.idx = _buf_.ReadInt()
328
+        this.waveMin = _buf_.ReadInt()
329
+        this.waveMax = _buf_.ReadInt()
330
+        this.level = _buf_.ReadInt()
331
+        { 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);}}
332
+    }
333
+
324 334
     /**
325
-     * buff参数
335
+     * idx
326 336
      */
327
-    readonly parameters: string
337
+    readonly idx: number
328 338
     /**
329
-     * 触发概率
339
+     * 波数下限
330 340
      */
331
-    readonly probability: number
341
+    readonly waveMin: number
332 342
     /**
333
-     * 触发条件
343
+     * 波数上限
334 344
      */
335
-    readonly triggerCondition: string
345
+    readonly waveMax: number
336 346
     /**
337
-     * 效果类型
347
+     * 难度
338 348
      */
339
-    readonly effectType: number
349
+    readonly level: number
340 350
     /**
341
-     * 持续时间
351
+     * 奖励列表
342 352
      */
343
-    readonly duration: number
353
+    readonly rewards: Common.Reward[]
354
+
355
+    resolve(tables:Tables) {
356
+        
357
+        
358
+        
359
+        
360
+        for (let _e of this.rewards) { _e?.resolve(tables); }
361
+    }
362
+}
363
+
364
+
365
+
366
+
367
+
368
+export class HeroQualityWorth {
369
+
370
+    constructor(_buf_: ByteBuf) {
371
+        this.idx = _buf_.ReadInt()
372
+        this.quality = _buf_.ReadInt()
373
+        this.gold = _buf_.ReadInt()
374
+        this.gem = _buf_.ReadInt()
375
+    }
376
+
344 377
     /**
345
-     * 叠加次数
378
+     * 唯一id
346 379
      */
347
-    readonly overlapTimes: number
380
+    readonly idx: number
348 381
     /**
349
-     * 唯一增益
382
+     * 品质
350 383
      */
351
-    readonly uniqueGain: boolean
384
+    readonly quality: Quality
352 385
     /**
353
-     * 是否是光环
386
+     * 局内金币
354 387
      */
355
-    readonly halo: boolean
388
+    readonly gold: number
356 389
     /**
357
-     * buff增加的属性
390
+     * 局内宝石
358 391
      */
359
-    readonly attributes: string
392
+    readonly gem: number
393
+
394
+    resolve(tables:Tables) {
395
+        
396
+        
397
+        
398
+        
399
+    }
400
+}
401
+
402
+
403
+
404
+
405
+
406
+export class BattleSummonWeight {
407
+
408
+    constructor(_buf_: ByteBuf) {
409
+        this.idx = _buf_.ReadInt()
410
+        this.quality = _buf_.ReadInt()
411
+        this.weight = _buf_.ReadInt()
412
+    }
413
+
360 414
     /**
361
-     * 是否合并
415
+     * 唯一id
362 416
      */
363
-    readonly mixBufficon: number
417
+    readonly idx: number
364 418
     /**
365
-     * 效果id
419
+     * 品质
366 420
      */
367
-    readonly skillShowId: number
421
+    readonly quality: Quality
368 422
     /**
369
-     * 飘字id
423
+     * 权重
370 424
      */
371
-    readonly floatingTextId: number
425
+    readonly weight: number
372 426
 
373 427
     resolve(tables:Tables) {
374 428
         
375 429
         
376 430
         
377
-        
378
-        
379
-        
380
-        
381
-        
382
-        
383
-        
384
-        
385
-        
386
-        
387
-        
388
-        
389 431
     }
390 432
 }
391 433
 
@@ -393,26 +435,28 @@ export class SkillBuff {
393 435
 
394 436
 
395 437
 
396
-export class Skill {
438
+export class SkillBuff {
397 439
 
398 440
     constructor(_buf_: ByteBuf) {
399 441
         this.idx = _buf_.ReadInt()
400 442
         this.remark = _buf_.ReadString()
401
-        this.skillId = _buf_.ReadInt()
402
-        this.skillType = _buf_.ReadInt()
403
-        this.cd = _buf_.ReadInt()
404
-        this.gridRange = _buf_.ReadInt()
405
-        this.range = _buf_.ReadInt()
443
+        this.type = _buf_.ReadInt()
444
+        this.parameters = _buf_.ReadString()
445
+        this.probability = _buf_.ReadInt()
406 446
         this.triggerCondition = _buf_.ReadString()
407
-        this.effects = _buf_.ReadString()
408
-        this.buffId = _buf_.ReadString()
409
-        this.skillName = _buf_.ReadString()
410
-        this.desc = _buf_.ReadString()
411
-        this.conflictSkillId = _buf_.ReadInt()
447
+        this.effectType = _buf_.ReadInt()
448
+        this.duration = _buf_.ReadInt()
449
+        this.overlapTimes = _buf_.ReadInt()
450
+        this.uniqueGain = _buf_.ReadBool()
451
+        this.halo = _buf_.ReadBool()
452
+        this.attributes = _buf_.ReadString()
453
+        this.mixBufficon = _buf_.ReadInt()
454
+        this.skillShowId = _buf_.ReadInt()
455
+        this.floatingTextId = _buf_.ReadInt()
412 456
     }
413 457
 
414 458
     /**
415
-     * 主键id
459
+     * buffid
416 460
      */
417 461
     readonly idx: number
418 462
     /**
@@ -420,49 +464,57 @@ export class Skill {
420 464
      */
421 465
     readonly remark: string
422 466
     /**
423
-     * 技能ID
467
+     * buff类型
424 468
      */
425
-    readonly skillId: number
469
+    readonly type: number
426 470
     /**
427
-     * 类型
471
+     * buff参数
428 472
      */
429
-    readonly skillType: number
473
+    readonly parameters: string
430 474
     /**
431
-     * 冷却时间
475
+     * 触发概率
432 476
      */
433
-    readonly cd: number
477
+    readonly probability: number
434 478
     /**
435
-     * 格子范围
479
+     * 触发条件
436 480
      */
437
-    readonly gridRange: number
481
+    readonly triggerCondition: string
438 482
     /**
439
-     * 攻击距离
483
+     * 效果类型
440 484
      */
441
-    readonly range: number
485
+    readonly effectType: number
442 486
     /**
443
-     * 技能触发条件
487
+     * 持续时间
444 488
      */
445
-    readonly triggerCondition: string
489
+    readonly duration: number
446 490
     /**
447
-     * 效果列表
491
+     * 叠加次数
448 492
      */
449
-    readonly effects: string
493
+    readonly overlapTimes: number
450 494
     /**
451
-     * buff
495
+     * 唯一增益
452 496
      */
453
-    readonly buffId: string
497
+    readonly uniqueGain: boolean
454 498
     /**
455
-     * 技能名字
499
+     * 是否是光环
456 500
      */
457
-    readonly skillName: string
501
+    readonly halo: boolean
458 502
     /**
459
-     * 技能描述
503
+     * buff增加的属性
460 504
      */
461
-    readonly desc: string
505
+    readonly attributes: string
462 506
     /**
463
-     * 冲突的技能id
507
+     * 是否合并
464 508
      */
465
-    readonly conflictSkillId: number
509
+    readonly mixBufficon: number
510
+    /**
511
+     * 效果id
512
+     */
513
+    readonly skillShowId: number
514
+    /**
515
+     * 飘字id
516
+     */
517
+    readonly floatingTextId: number
466 518
 
467 519
     resolve(tables:Tables) {
468 520
         
@@ -478,50 +530,8 @@ export class Skill {
478 530
         
479 531
         
480 532
         
481
-    }
482
-}
483
-
484
-
485
-
486
-
487
-
488
-export class WaveRewards {
489
-
490
-    constructor(_buf_: ByteBuf) {
491
-        this.idx = _buf_.ReadInt()
492
-        this.waveMin = _buf_.ReadInt()
493
-        this.waveMax = _buf_.ReadInt()
494
-        this.level = _buf_.ReadInt()
495
-        { 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);}}
496
-    }
497
-
498
-    /**
499
-     * idx
500
-     */
501
-    readonly idx: number
502
-    /**
503
-     * 波数下限
504
-     */
505
-    readonly waveMin: number
506
-    /**
507
-     * 波数上限
508
-     */
509
-    readonly waveMax: number
510
-    /**
511
-     * 难度
512
-     */
513
-    readonly level: number
514
-    /**
515
-     * 奖励列表
516
-     */
517
-    readonly rewards: Common.Reward[]
518
-
519
-    resolve(tables:Tables) {
520
-        
521
-        
522 533
         
523 534
         
524
-        for (let _e of this.rewards) { _e?.resolve(tables); }
525 535
     }
526 536
 }
527 537
 
@@ -567,45 +577,14 @@ export class BattleSpacialSummon {
567 577
 
568 578
 
569 579
 
570
-export class System {
571
-
572
-    constructor(_buf_: ByteBuf) {
573
-        this.idx = _buf_.ReadInt()
574
-        this.mainKey = _buf_.ReadString()
575
-        this.value = _buf_.ReadString()
576
-    }
577
-
578
-    /**
579
-     * IDX
580
-     */
581
-    readonly idx: number
582
-    /**
583
-     * 常量主键
584
-     */
585
-    readonly mainKey: string
586
-    /**
587
-     * 常量值
588
-     */
589
-    readonly value: string
590
-
591
-    resolve(tables:Tables) {
592
-        
593
-        
594
-        
595
-    }
596
-}
597
-
598
-
599
-
600
-
601
-
602
-export class HeroQualityWorth {
580
+export class StrengthenLevel {
603 581
 
604 582
     constructor(_buf_: ByteBuf) {
605 583
         this.idx = _buf_.ReadInt()
606 584
         this.quality = _buf_.ReadInt()
607
-        this.gold = _buf_.ReadInt()
608
-        this.gem = _buf_.ReadInt()
585
+        this.level = _buf_.ReadInt()
586
+        { 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);}}
587
+        this.attributes = _buf_.ReadString()
609 588
     }
610 589
 
611 590
     /**
@@ -617,18 +596,23 @@ export class HeroQualityWorth {
617 596
      */
618 597
     readonly quality: Quality
619 598
     /**
620
-     * 局内金币
599
+     * 等级
621 600
      */
622
-    readonly gold: number
601
+    readonly level: number
623 602
     /**
624
-     * 局内宝石
603
+     * 消耗
625 604
      */
626
-    readonly gem: number
605
+    readonly rewards: Common.Reward[]
606
+    /**
607
+     * buff增加的属性
608
+     */
609
+    readonly attributes: string
627 610
 
628 611
     resolve(tables:Tables) {
629 612
         
630 613
         
631 614
         
615
+        for (let _e of this.rewards) { _e?.resolve(tables); }
632 616
         
633 617
     }
634 618
 }
@@ -637,31 +621,103 @@ export class HeroQualityWorth {
637 621
 
638 622
 
639 623
 
640
-export class BattleSummonWeight {
624
+export class Skill {
641 625
 
642 626
     constructor(_buf_: ByteBuf) {
643 627
         this.idx = _buf_.ReadInt()
644
-        this.quality = _buf_.ReadInt()
645
-        this.weight = _buf_.ReadInt()
628
+        this.remark = _buf_.ReadString()
629
+        this.skillId = _buf_.ReadInt()
630
+        this.level = _buf_.ReadInt()
631
+        this.skillType = _buf_.ReadInt()
632
+        this.cd = _buf_.ReadInt()
633
+        this.gridRange = _buf_.ReadInt()
634
+        this.range = _buf_.ReadInt()
635
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.damage = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.damage.push(_e0);}}
636
+        this.triggerCondition = _buf_.ReadString()
637
+        this.effects = _buf_.ReadString()
638
+        this.buffId = _buf_.ReadString()
639
+        this.skillName = _buf_.ReadString()
640
+        this.desc = _buf_.ReadString()
641
+        this.conflictSkillId = _buf_.ReadInt()
646 642
     }
647 643
 
648 644
     /**
649
-     * 唯一id
645
+     * 主键id
650 646
      */
651 647
     readonly idx: number
652 648
     /**
653
-     * 品质
649
+     * 备注
654 650
      */
655
-    readonly quality: Quality
651
+    readonly remark: string
656 652
     /**
657
-     * 权重
653
+     * 技能ID
658 654
      */
659
-    readonly weight: number
655
+    readonly skillId: number
656
+    /**
657
+     * 技能等级
658
+     */
659
+    readonly level: 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 damage: number[]
680
+    /**
681
+     * 技能触发条件
682
+     */
683
+    readonly triggerCondition: string
684
+    /**
685
+     * 效果列表
686
+     */
687
+    readonly effects: string
688
+    /**
689
+     * buff
690
+     */
691
+    readonly buffId: string
692
+    /**
693
+     * 技能名字
694
+     */
695
+    readonly skillName: string
696
+    /**
697
+     * 技能描述
698
+     */
699
+    readonly desc: string
700
+    /**
701
+     * 冲突的技能id
702
+     */
703
+    readonly conflictSkillId: number
660 704
 
661 705
     resolve(tables:Tables) {
662 706
         
663 707
         
664 708
         
709
+        
710
+        
711
+        
712
+        
713
+        
714
+        
715
+        
716
+        
717
+        
718
+        
719
+        
720
+        
665 721
     }
666 722
 }
667 723
 
@@ -757,66 +813,56 @@ export class Hero {
757 813
 
758 814
 
759 815
 
760
-export class Wave {
816
+export class Attr {
761 817
 
762 818
     constructor(_buf_: ByteBuf) {
763 819
         this.idx = _buf_.ReadInt()
764
-        this.waveIndex = _buf_.ReadInt()
765
-        this.level = _buf_.ReadInt()
766
-        this.model = _buf_.ReadInt()
767
-        this.counter = _buf_.ReadInt()
768
-        this.hp = _buf_.ReadInt()
769
-        this.speed = _buf_.ReadInt()
770
-        this.gap = _buf_.ReadInt()
771
-        this.isboss = _buf_.ReadInt()
772
-        this.perAddCoid = _buf_.ReadInt()
773
-        this.perAddGem = _buf_.ReadInt()
820
+        this.type = _buf_.ReadString()
821
+        this.showLogic = _buf_.ReadInt()
822
+        this.sort = _buf_.ReadInt()
823
+        this.icon = _buf_.ReadString()
824
+        this.fightFactor = _buf_.ReadFloat()
825
+        this.scoreFactor = _buf_.ReadFloat()
826
+        this.showType = _buf_.ReadInt()
827
+        this.baseValue = _buf_.ReadLongAsNumber()
774 828
     }
775 829
 
776 830
     /**
777
-     * 唯一id
831
+     * 序列
778 832
      */
779 833
     readonly idx: number
780 834
     /**
781
-     * 波数
782
-     */
783
-    readonly waveIndex: number
784
-    /**
785
-     * 难度
786
-     */
787
-    readonly level: number
788
-    /**
789
-     * 怪物模型
835
+     * 属性ID
790 836
      */
791
-    readonly model: number
837
+    readonly type: string
792 838
     /**
793
-     * 数量
839
+     * 显示逻辑
794 840
      */
795
-    readonly counter: number
841
+    readonly showLogic: number
796 842
     /**
797
-     * 血量
843
+     * 排序
798 844
      */
799
-    readonly hp: number
845
+    readonly sort: number
800 846
     /**
801
-     * 速度
847
+     * 图标
802 848
      */
803
-    readonly speed: number
849
+    readonly icon: string
804 850
     /**
805
-     * 间距
851
+     * 战力系数
806 852
      */
807
-    readonly gap: number
853
+    readonly fightFactor: number
808 854
     /**
809
-     * 是否是boss
855
+     * 评分系数
810 856
      */
811
-    readonly isboss: number
857
+    readonly scoreFactor: number
812 858
     /**
813
-     * 每只怪增加局内金币
859
+     * 显示类型
814 860
      */
815
-    readonly perAddCoid: number
861
+    readonly showType: number
816 862
     /**
817
-     * 每只怪增加局内宝石
863
+     * 基础值
818 864
      */
819
-    readonly perAddGem: number
865
+    readonly baseValue: number
820 866
 
821 867
     resolve(tables:Tables) {
822 868
         
@@ -828,8 +874,6 @@ export class Wave {
828 874
         
829 875
         
830 876
         
831
-        
832
-        
833 877
     }
834 878
 }
835 879
 
@@ -837,14 +881,20 @@ export class Wave {
837 881
 
838 882
 
839 883
 
840
-export class StrengthenLevel {
884
+export class Wave {
841 885
 
842 886
     constructor(_buf_: ByteBuf) {
843 887
         this.idx = _buf_.ReadInt()
844
-        this.quality = _buf_.ReadInt()
888
+        this.waveIndex = _buf_.ReadInt()
845 889
         this.level = _buf_.ReadInt()
846
-        { 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);}}
847
-        this.attributes = _buf_.ReadString()
890
+        this.model = _buf_.ReadInt()
891
+        this.counter = _buf_.ReadInt()
892
+        this.hp = _buf_.ReadInt()
893
+        this.speed = _buf_.ReadInt()
894
+        this.gap = _buf_.ReadInt()
895
+        this.isboss = _buf_.ReadInt()
896
+        this.perAddCoid = _buf_.ReadInt()
897
+        this.perAddGem = _buf_.ReadInt()
848 898
     }
849 899
 
850 900
     /**
@@ -852,85 +902,45 @@ export class StrengthenLevel {
852 902
      */
853 903
     readonly idx: number
854 904
     /**
855
-     * 品质
905
+     * 波数
856 906
      */
857
-    readonly quality: Quality
907
+    readonly waveIndex: number
858 908
     /**
859
-     * 等级
909
+     * 难度
860 910
      */
861 911
     readonly level: number
862 912
     /**
863
-     * 消耗
864
-     */
865
-    readonly rewards: Common.Reward[]
866
-    /**
867
-     * buff增加的属性
868
-     */
869
-    readonly attributes: string
870
-
871
-    resolve(tables:Tables) {
872
-        
873
-        
874
-        
875
-        for (let _e of this.rewards) { _e?.resolve(tables); }
876
-        
877
-    }
878
-}
879
-
880
-
881
-
882
-
883
-
884
-export class Attr {
885
-
886
-    constructor(_buf_: ByteBuf) {
887
-        this.idx = _buf_.ReadInt()
888
-        this.type = _buf_.ReadString()
889
-        this.showLogic = _buf_.ReadInt()
890
-        this.sort = _buf_.ReadInt()
891
-        this.icon = _buf_.ReadString()
892
-        this.fightFactor = _buf_.ReadFloat()
893
-        this.scoreFactor = _buf_.ReadFloat()
894
-        this.showType = _buf_.ReadInt()
895
-        this.baseValue = _buf_.ReadLongAsNumber()
896
-    }
897
-
898
-    /**
899
-     * 序列
900
-     */
901
-    readonly idx: number
902
-    /**
903
-     * 属性ID
913
+     * 怪物模型
904 914
      */
905
-    readonly type: string
915
+    readonly model: number
906 916
     /**
907
-     * 显示逻辑
917
+     * 数量
908 918
      */
909
-    readonly showLogic: number
919
+    readonly counter: number
910 920
     /**
911
-     * 排序
921
+     * 血量
912 922
      */
913
-    readonly sort: number
923
+    readonly hp: number
914 924
     /**
915
-     * 图标
925
+     * 速度
916 926
      */
917
-    readonly icon: string
927
+    readonly speed: number
918 928
     /**
919
-     * 战力系数
929
+     * 间距
920 930
      */
921
-    readonly fightFactor: number
931
+    readonly gap: number
922 932
     /**
923
-     * 评分系数
933
+     * 是否是boss
924 934
      */
925
-    readonly scoreFactor: number
935
+    readonly isboss: number
926 936
     /**
927
-     * 显示类型
937
+     * 每只怪增加局内金币
928 938
      */
929
-    readonly showType: number
939
+    readonly perAddCoid: number
930 940
     /**
931
-     * 基础值
941
+     * 每只怪增加局内宝石
932 942
      */
933
-    readonly baseValue: number
943
+    readonly perAddGem: number
934 944
 
935 945
     resolve(tables:Tables) {
936 946
         
@@ -942,6 +952,8 @@ export class Attr {
942 952
         
943 953
         
944 954
         
955
+        
956
+        
945 957
     }
946 958
 }
947 959