Browse Source

auto config export

Hua 10 months ago
parent
commit
a7ab851dc2
1 changed files with 228 additions and 228 deletions
  1. 228 228
      schema/schema.ts

+ 228 - 228
schema/schema.ts

@@ -289,31 +289,179 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class BattleSummonWeight {
292
+export class System {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.quality = _buf_.ReadInt()
297
-        this.weight = _buf_.ReadInt()
296
+        this.mainKey = _buf_.ReadString()
297
+        this.value = _buf_.ReadString()
298 298
     }
299 299
 
300 300
     /**
301
-     * 唯一id
301
+     * IDX
302 302
      */
303 303
     readonly idx: number
304 304
     /**
305
+     * 常量主键
306
+     */
307
+    readonly mainKey: string
308
+    /**
309
+     * 常量值
310
+     */
311
+    readonly value: string
312
+
313
+    resolve(tables:Tables) {
314
+        
315
+        
316
+        
317
+    }
318
+}
319
+
320
+
321
+
322
+
323
+
324
+export class Skill {
325
+
326
+    constructor(_buf_: ByteBuf) {
327
+        this.idx = _buf_.ReadInt()
328
+        this.remark = _buf_.ReadString()
329
+        this.skillId = _buf_.ReadInt()
330
+        this.skillType = _buf_.ReadInt()
331
+        this.cd = _buf_.ReadInt()
332
+        this.gridRange = _buf_.ReadInt()
333
+        this.range = _buf_.ReadInt()
334
+        this.triggerCondition = _buf_.ReadString()
335
+        this.effects = _buf_.ReadString()
336
+        this.buffId = _buf_.ReadString()
337
+        this.skillName = _buf_.ReadString()
338
+        this.desc = _buf_.ReadString()
339
+        this.conflictSkillId = _buf_.ReadInt()
340
+    }
341
+
342
+    /**
343
+     * 主键id
344
+     */
345
+    readonly idx: number
346
+    /**
347
+     * 备注
348
+     */
349
+    readonly remark: string
350
+    /**
351
+     * 技能ID
352
+     */
353
+    readonly skillId: number
354
+    /**
355
+     * 类型
356
+     */
357
+    readonly skillType: number
358
+    /**
359
+     * 冷却时间
360
+     */
361
+    readonly cd: number
362
+    /**
363
+     * 格子范围
364
+     */
365
+    readonly gridRange: number
366
+    /**
367
+     * 攻击距离
368
+     */
369
+    readonly range: number
370
+    /**
371
+     * 技能触发条件
372
+     */
373
+    readonly triggerCondition: string
374
+    /**
375
+     * 效果列表
376
+     */
377
+    readonly effects: string
378
+    /**
379
+     * buff
380
+     */
381
+    readonly buffId: string
382
+    /**
383
+     * 技能名字
384
+     */
385
+    readonly skillName: string
386
+    /**
387
+     * 技能描述
388
+     */
389
+    readonly desc: string
390
+    /**
391
+     * 冲突的技能id
392
+     */
393
+    readonly conflictSkillId: number
394
+
395
+    resolve(tables:Tables) {
396
+        
397
+        
398
+        
399
+        
400
+        
401
+        
402
+        
403
+        
404
+        
405
+        
406
+        
407
+        
408
+        
409
+    }
410
+}
411
+
412
+
413
+
414
+
415
+
416
+export class Hero {
417
+
418
+    constructor(_buf_: ByteBuf) {
419
+        this.id = _buf_.ReadInt()
420
+        this.quality = _buf_.ReadInt()
421
+        this.attacktype = _buf_.ReadInt()
422
+        this.name = _buf_.ReadString()
423
+        { 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);}}
424
+        { 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);}}
425
+        this.isShow = _buf_.ReadInt()
426
+    }
427
+
428
+    /**
429
+     * 英雄ID
430
+     */
431
+    readonly id: number
432
+    /**
305 433
      * 品质
306 434
      */
307 435
     readonly quality: Quality
308 436
     /**
309
-     * 权重
437
+     * 攻击类型
310 438
      */
311
-    readonly weight: number
439
+    readonly attacktype: AttackType
440
+    /**
441
+     * 名字
442
+     */
443
+    readonly name: string
444
+    /**
445
+     * 技能列表
446
+     */
447
+    readonly skills: number[]
448
+    /**
449
+     * 合成英雄公式
450
+     */
451
+    readonly composeheros: number[]
452
+    /**
453
+     * 是否测试
454
+     */
455
+    readonly isShow: number
312 456
 
313 457
     resolve(tables:Tables) {
314 458
         
315 459
         
316 460
         
461
+        
462
+        
463
+        
464
+        
317 465
     }
318 466
 }
319 467
 
@@ -321,43 +469,69 @@ export class BattleSummonWeight {
321 469
 
322 470
 
323 471
 
324
-export class WaveRewards {
472
+export class HeroQualityWorth {
325 473
 
326 474
     constructor(_buf_: ByteBuf) {
327 475
         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);}}
476
+        this.quality = _buf_.ReadInt()
477
+        this.gold = _buf_.ReadInt()
478
+        this.gem = _buf_.ReadInt()
332 479
     }
333 480
 
334 481
     /**
335
-     * idx
482
+     * 唯一id
336 483
      */
337 484
     readonly idx: number
338 485
     /**
339
-     * 波数下限
486
+     * 品质
340 487
      */
341
-    readonly waveMin: number
488
+    readonly quality: Quality
342 489
     /**
343
-     * 波数上限
490
+     * 局内金币
344 491
      */
345
-    readonly waveMax: number
492
+    readonly gold: number
346 493
     /**
347
-     * 难度
494
+     * 局内宝石
348 495
      */
349
-    readonly level: number
496
+    readonly gem: number
497
+
498
+    resolve(tables:Tables) {
499
+        
500
+        
501
+        
502
+        
503
+    }
504
+}
505
+
506
+
507
+
508
+
509
+
510
+export class Item {
511
+
512
+    constructor(_buf_: ByteBuf) {
513
+        this.idx = _buf_.ReadInt()
514
+        this.type = _buf_.ReadInt()
515
+        this.name = _buf_.ReadString()
516
+    }
517
+
350 518
     /**
351
-     * 奖励列表
519
+     * 道具ID
352 520
      */
353
-    readonly rewards: Common.Reward[]
521
+    readonly idx: number
522
+    /**
523
+     * 类型
524
+     */
525
+    readonly type: number
526
+    /**
527
+     * 道具名
528
+     */
529
+    readonly name: string
354 530
 
355 531
     resolve(tables:Tables) {
356 532
         
357 533
         
358 534
         
359
-        
360
-        for (let _e of this.rewards) { _e?.resolve(tables); }
361 535
     }
362 536
 }
363 537
 
@@ -469,13 +643,12 @@ export class SkillBuff {
469 643
 
470 644
 
471 645
 
472
-export class BattleSpacialSummon {
646
+export class BattleSummonWeight {
473 647
 
474 648
     constructor(_buf_: ByteBuf) {
475 649
         this.idx = _buf_.ReadInt()
476 650
         this.quality = _buf_.ReadInt()
477 651
         this.weight = _buf_.ReadInt()
478
-        this.costgem = _buf_.ReadInt()
479 652
     }
480 653
 
481 654
     /**
@@ -490,16 +663,11 @@ export class BattleSpacialSummon {
490 663
      * 权重
491 664
      */
492 665
     readonly weight: number
493
-    /**
494
-     * 消耗宝石数量
495
-     */
496
-    readonly costgem: number
497 666
 
498 667
     resolve(tables:Tables) {
499 668
         
500 669
         
501 670
         
502
-        
503 671
     }
504 672
 }
505 673
 
@@ -507,37 +675,43 @@ export class BattleSpacialSummon {
507 675
 
508 676
 
509 677
 
510
-export class HeroQualityWorth {
678
+export class WaveRewards {
511 679
 
512 680
     constructor(_buf_: ByteBuf) {
513 681
         this.idx = _buf_.ReadInt()
514
-        this.quality = _buf_.ReadInt()
515
-        this.gold = _buf_.ReadInt()
516
-        this.gem = _buf_.ReadInt()
682
+        this.waveMin = _buf_.ReadInt()
683
+        this.waveMax = _buf_.ReadInt()
684
+        this.level = _buf_.ReadInt()
685
+        { 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);}}
517 686
     }
518 687
 
519 688
     /**
520
-     * 唯一id
689
+     * idx
521 690
      */
522 691
     readonly idx: number
523 692
     /**
524
-     * 品质
693
+     * 波数下限
525 694
      */
526
-    readonly quality: Quality
695
+    readonly waveMin: number
527 696
     /**
528
-     * 局内金币
697
+     * 波数上限
529 698
      */
530
-    readonly gold: number
699
+    readonly waveMax: number
531 700
     /**
532
-     * 局内宝石
701
+     * 难度
533 702
      */
534
-    readonly gem: number
703
+    readonly level: number
704
+    /**
705
+     * 奖励列表
706
+     */
707
+    readonly rewards: Common.Reward[]
535 708
 
536 709
     resolve(tables:Tables) {
537 710
         
538 711
         
539 712
         
540 713
         
714
+        for (let _e of this.rewards) { _e?.resolve(tables); }
541 715
     }
542 716
 }
543 717
 
@@ -545,31 +719,37 @@ export class HeroQualityWorth {
545 719
 
546 720
 
547 721
 
548
-export class Item {
722
+export class BattleSpacialSummon {
549 723
 
550 724
     constructor(_buf_: ByteBuf) {
551 725
         this.idx = _buf_.ReadInt()
552
-        this.type = _buf_.ReadInt()
553
-        this.name = _buf_.ReadString()
726
+        this.quality = _buf_.ReadInt()
727
+        this.weight = _buf_.ReadInt()
728
+        this.costgem = _buf_.ReadInt()
554 729
     }
555 730
 
556 731
     /**
557
-     * 道具ID
732
+     * 唯一id
558 733
      */
559 734
     readonly idx: number
560 735
     /**
561
-     * 类型
736
+     * 品质
562 737
      */
563
-    readonly type: number
738
+    readonly quality: Quality
564 739
     /**
565
-     * 道具名
740
+     * 权重
566 741
      */
567
-    readonly name: string
742
+    readonly weight: number
743
+    /**
744
+     * 消耗宝石数量
745
+     */
746
+    readonly costgem: number
568 747
 
569 748
     resolve(tables:Tables) {
570 749
         
571 750
         
572 751
         
752
+        
573 753
     }
574 754
 }
575 755
 
@@ -657,186 +837,6 @@ export class Wave {
657 837
 
658 838
 
659 839
 
660
-export class Skill {
661
-
662
-    constructor(_buf_: ByteBuf) {
663
-        this.idx = _buf_.ReadInt()
664
-        this.remark = _buf_.ReadString()
665
-        this.skillId = _buf_.ReadInt()
666
-        this.skillType = _buf_.ReadInt()
667
-        this.cd = _buf_.ReadInt()
668
-        this.gridRange = _buf_.ReadInt()
669
-        this.range = _buf_.ReadInt()
670
-        this.triggerCondition = _buf_.ReadString()
671
-        this.effects = _buf_.ReadString()
672
-        this.buffId = _buf_.ReadString()
673
-        this.skillName = _buf_.ReadString()
674
-        this.desc = _buf_.ReadString()
675
-        this.conflictSkillId = _buf_.ReadInt()
676
-    }
677
-
678
-    /**
679
-     * 主键id
680
-     */
681
-    readonly idx: number
682
-    /**
683
-     * 备注
684
-     */
685
-    readonly remark: string
686
-    /**
687
-     * 技能ID
688
-     */
689
-    readonly skillId: number
690
-    /**
691
-     * 类型
692
-     */
693
-    readonly skillType: number
694
-    /**
695
-     * 冷却时间
696
-     */
697
-    readonly cd: number
698
-    /**
699
-     * 格子范围
700
-     */
701
-    readonly gridRange: number
702
-    /**
703
-     * 攻击距离
704
-     */
705
-    readonly range: number
706
-    /**
707
-     * 技能触发条件
708
-     */
709
-    readonly triggerCondition: string
710
-    /**
711
-     * 效果列表
712
-     */
713
-    readonly effects: string
714
-    /**
715
-     * buff
716
-     */
717
-    readonly buffId: string
718
-    /**
719
-     * 技能名字
720
-     */
721
-    readonly skillName: string
722
-    /**
723
-     * 技能描述
724
-     */
725
-    readonly desc: string
726
-    /**
727
-     * 冲突的技能id
728
-     */
729
-    readonly conflictSkillId: number
730
-
731
-    resolve(tables:Tables) {
732
-        
733
-        
734
-        
735
-        
736
-        
737
-        
738
-        
739
-        
740
-        
741
-        
742
-        
743
-        
744
-        
745
-    }
746
-}
747
-
748
-
749
-
750
-
751
-
752
-export class Hero {
753
-
754
-    constructor(_buf_: ByteBuf) {
755
-        this.id = _buf_.ReadInt()
756
-        this.quality = _buf_.ReadInt()
757
-        this.attacktype = _buf_.ReadInt()
758
-        this.name = _buf_.ReadString()
759
-        { 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);}}
760
-        { 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);}}
761
-        this.isShow = _buf_.ReadInt()
762
-    }
763
-
764
-    /**
765
-     * 英雄ID
766
-     */
767
-    readonly id: number
768
-    /**
769
-     * 品质
770
-     */
771
-    readonly quality: Quality
772
-    /**
773
-     * 攻击类型
774
-     */
775
-    readonly attacktype: AttackType
776
-    /**
777
-     * 名字
778
-     */
779
-    readonly name: string
780
-    /**
781
-     * 技能列表
782
-     */
783
-    readonly skills: number[]
784
-    /**
785
-     * 合成英雄公式
786
-     */
787
-    readonly composeheros: number[]
788
-    /**
789
-     * 是否测试
790
-     */
791
-    readonly isShow: number
792
-
793
-    resolve(tables:Tables) {
794
-        
795
-        
796
-        
797
-        
798
-        
799
-        
800
-        
801
-    }
802
-}
803
-
804
-
805
-
806
-
807
-
808
-export class System {
809
-
810
-    constructor(_buf_: ByteBuf) {
811
-        this.idx = _buf_.ReadInt()
812
-        this.mainKey = _buf_.ReadString()
813
-        this.value = _buf_.ReadString()
814
-    }
815
-
816
-    /**
817
-     * IDX
818
-     */
819
-    readonly idx: number
820
-    /**
821
-     * 常量主键
822
-     */
823
-    readonly mainKey: string
824
-    /**
825
-     * 常量值
826
-     */
827
-    readonly value: string
828
-
829
-    resolve(tables:Tables) {
830
-        
831
-        
832
-        
833
-    }
834
-}
835
-
836
-
837
-
838
-
839
-
840 840
 export class HeroLevel {
841 841
 
842 842
     constructor(_buf_: ByteBuf) {