Hua 11 місяців тому
батько
коміт
47721a9fb2
1 змінених файлів з 208 додано та 208 видалено
  1. 208 208
      schema/schema.ts

+ 208 - 208
schema/schema.ts

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