Hua преди 10 месеца
родител
ревизия
4c91cab911
променени са 1 файла, в които са добавени 220 реда и са изтрити 220 реда
  1. 220 220
      schema/schema.ts

+ 220 - 220
schema/schema.ts

@@ -289,31 +289,37 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class System {
292
+export class HeroQualityWorth {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.mainKey = _buf_.ReadString()
297
-        this.value = _buf_.ReadString()
296
+        this.quality = _buf_.ReadInt()
297
+        this.gold = _buf_.ReadInt()
298
+        this.gem = _buf_.ReadInt()
298 299
     }
299 300
 
300 301
     /**
301
-     * IDX
302
+     * 唯一id
302 303
      */
303 304
     readonly idx: number
304 305
     /**
305
-     * 常量主键
306
+     * 品质
306 307
      */
307
-    readonly mainKey: string
308
+    readonly quality: Quality
308 309
     /**
309
-     * 常量值
310
+     * 局内金币
310 311
      */
311
-    readonly value: string
312
+    readonly gold: number
313
+    /**
314
+     * 局内宝石
315
+     */
316
+    readonly gem: number
312 317
 
313 318
     resolve(tables:Tables) {
314 319
         
315 320
         
316 321
         
322
+        
317 323
     }
318 324
 }
319 325
 
@@ -353,120 +359,28 @@ export class Item {
353 359
 
354 360
 
355 361
 
356
-export class Hero {
357
-
358
-    constructor(_buf_: ByteBuf) {
359
-        this.id = _buf_.ReadInt()
360
-        this.quality = _buf_.ReadInt()
361
-        this.attacktype = _buf_.ReadInt()
362
-        this.name = _buf_.ReadString()
363
-        { 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);}}
364
-        { 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);}}
365
-        this.isShow = _buf_.ReadInt()
366
-    }
367
-
368
-    /**
369
-     * 英雄ID
370
-     */
371
-    readonly id: number
372
-    /**
373
-     * 品质
374
-     */
375
-    readonly quality: Quality
376
-    /**
377
-     * 攻击类型
378
-     */
379
-    readonly attacktype: AttackType
380
-    /**
381
-     * 名字
382
-     */
383
-    readonly name: string
384
-    /**
385
-     * 技能列表
386
-     */
387
-    readonly skills: number[]
388
-    /**
389
-     * 合成英雄公式
390
-     */
391
-    readonly composeheros: number[]
392
-    /**
393
-     * 是否测试
394
-     */
395
-    readonly isShow: number
396
-
397
-    resolve(tables:Tables) {
398
-        
399
-        
400
-        
401
-        
402
-        
403
-        
404
-        
405
-    }
406
-}
407
-
408
-
409
-
410
-
411
-
412
-export class HeroQualityWorth {
413
-
414
-    constructor(_buf_: ByteBuf) {
415
-        this.idx = _buf_.ReadInt()
416
-        this.quality = _buf_.ReadInt()
417
-        this.gold = _buf_.ReadInt()
418
-        this.gem = _buf_.ReadInt()
419
-    }
420
-
421
-    /**
422
-     * 唯一id
423
-     */
424
-    readonly idx: number
425
-    /**
426
-     * 品质
427
-     */
428
-    readonly quality: Quality
429
-    /**
430
-     * 局内金币
431
-     */
432
-    readonly gold: number
433
-    /**
434
-     * 局内宝石
435
-     */
436
-    readonly gem: number
437
-
438
-    resolve(tables:Tables) {
439
-        
440
-        
441
-        
442
-        
443
-    }
444
-}
445
-
446
-
447
-
448
-
449
-
450
-export class Skill {
362
+export class SkillBuff {
451 363
 
452 364
     constructor(_buf_: ByteBuf) {
453 365
         this.idx = _buf_.ReadInt()
454 366
         this.remark = _buf_.ReadString()
455
-        this.skillId = _buf_.ReadInt()
456
-        this.skillType = _buf_.ReadInt()
457
-        this.cd = _buf_.ReadInt()
458
-        this.gridRange = _buf_.ReadInt()
459
-        this.range = _buf_.ReadInt()
367
+        this.type = _buf_.ReadInt()
368
+        this.parameters = _buf_.ReadString()
369
+        this.probability = _buf_.ReadInt()
460 370
         this.triggerCondition = _buf_.ReadString()
461
-        this.effects = _buf_.ReadString()
462
-        this.buffId = _buf_.ReadString()
463
-        this.skillName = _buf_.ReadString()
464
-        this.desc = _buf_.ReadString()
465
-        this.conflictSkillId = _buf_.ReadInt()
371
+        this.effectType = _buf_.ReadInt()
372
+        this.duration = _buf_.ReadInt()
373
+        this.overlapTimes = _buf_.ReadInt()
374
+        this.uniqueGain = _buf_.ReadBool()
375
+        this.halo = _buf_.ReadBool()
376
+        this.attributes = _buf_.ReadString()
377
+        this.mixBufficon = _buf_.ReadInt()
378
+        this.skillShowId = _buf_.ReadInt()
379
+        this.floatingTextId = _buf_.ReadInt()
466 380
     }
467 381
 
468 382
     /**
469
-     * 主键id
383
+     * buffid
470 384
      */
471 385
     readonly idx: number
472 386
     /**
@@ -474,49 +388,57 @@ export class Skill {
474 388
      */
475 389
     readonly remark: string
476 390
     /**
477
-     * 技能ID
391
+     * buff类型
478 392
      */
479
-    readonly skillId: number
393
+    readonly type: number
480 394
     /**
481
-     * 类型
395
+     * buff参数
482 396
      */
483
-    readonly skillType: number
397
+    readonly parameters: string
484 398
     /**
485
-     * 冷却时间
399
+     * 触发概率
486 400
      */
487
-    readonly cd: number
401
+    readonly probability: number
488 402
     /**
489
-     * 格子范围
403
+     * 触发条件
490 404
      */
491
-    readonly gridRange: number
405
+    readonly triggerCondition: string
492 406
     /**
493
-     * 攻击距离
407
+     * 效果类型
494 408
      */
495
-    readonly range: number
409
+    readonly effectType: number
496 410
     /**
497
-     * 技能触发条件
411
+     * 持续时间
498 412
      */
499
-    readonly triggerCondition: string
413
+    readonly duration: number
500 414
     /**
501
-     * 效果列表
415
+     * 叠加次数
502 416
      */
503
-    readonly effects: string
417
+    readonly overlapTimes: number
504 418
     /**
505
-     * buff
419
+     * 唯一增益
506 420
      */
507
-    readonly buffId: string
421
+    readonly uniqueGain: boolean
508 422
     /**
509
-     * 技能名字
423
+     * 是否是光环
510 424
      */
511
-    readonly skillName: string
425
+    readonly halo: boolean
512 426
     /**
513
-     * 技能描述
427
+     * buff增加的属性
514 428
      */
515
-    readonly desc: string
429
+    readonly attributes: string
516 430
     /**
517
-     * 冲突的技能id
431
+     * 是否合并
518 432
      */
519
-    readonly conflictSkillId: number
433
+    readonly mixBufficon: number
434
+    /**
435
+     * 效果id
436
+     */
437
+    readonly skillShowId: number
438
+    /**
439
+     * 飘字id
440
+     */
441
+    readonly floatingTextId: number
520 442
 
521 443
     resolve(tables:Tables) {
522 444
         
@@ -532,6 +454,8 @@ export class Skill {
532 454
         
533 455
         
534 456
         
457
+        
458
+        
535 459
     }
536 460
 }
537 461
 
@@ -583,103 +507,101 @@ export class WaveRewards {
583 507
 
584 508
 
585 509
 
586
-export class SkillBuff {
510
+export class BattleSummonWeight {
587 511
 
588 512
     constructor(_buf_: ByteBuf) {
589 513
         this.idx = _buf_.ReadInt()
590
-        this.remark = _buf_.ReadString()
591
-        this.type = _buf_.ReadInt()
592
-        this.parameters = _buf_.ReadString()
593
-        this.probability = _buf_.ReadInt()
594
-        this.triggerCondition = _buf_.ReadString()
595
-        this.effectType = _buf_.ReadInt()
596
-        this.duration = _buf_.ReadInt()
597
-        this.overlapTimes = _buf_.ReadInt()
598
-        this.uniqueGain = _buf_.ReadBool()
599
-        this.halo = _buf_.ReadBool()
600
-        this.attributes = _buf_.ReadString()
601
-        this.mixBufficon = _buf_.ReadInt()
602
-        this.skillShowId = _buf_.ReadInt()
603
-        this.floatingTextId = _buf_.ReadInt()
514
+        this.quality = _buf_.ReadInt()
515
+        this.weight = _buf_.ReadInt()
604 516
     }
605 517
 
606 518
     /**
607
-     * buffid
519
+     * 唯一id
608 520
      */
609 521
     readonly idx: number
610 522
     /**
611
-     * 备注
612
-     */
613
-    readonly remark: string
614
-    /**
615
-     * buff类型
616
-     */
617
-    readonly type: number
618
-    /**
619
-     * buff参数
620
-     */
621
-    readonly parameters: string
622
-    /**
623
-     * 触发概率
624
-     */
625
-    readonly probability: number
626
-    /**
627
-     * 触发条件
628
-     */
629
-    readonly triggerCondition: string
630
-    /**
631
-     * 效果类型
523
+     * 品质
632 524
      */
633
-    readonly effectType: number
525
+    readonly quality: Quality
634 526
     /**
635
-     * 持续时间
527
+     * 权重
636 528
      */
637
-    readonly duration: number
529
+    readonly weight: number
530
+
531
+    resolve(tables:Tables) {
532
+        
533
+        
534
+        
535
+    }
536
+}
537
+
538
+
539
+
540
+
541
+
542
+export class BattleSpacialSummon {
543
+
544
+    constructor(_buf_: ByteBuf) {
545
+        this.idx = _buf_.ReadInt()
546
+        this.quality = _buf_.ReadInt()
547
+        this.weight = _buf_.ReadInt()
548
+        this.costgem = _buf_.ReadInt()
549
+    }
550
+
638 551
     /**
639
-     * 叠加次数
552
+     * 唯一id
640 553
      */
641
-    readonly overlapTimes: number
554
+    readonly idx: number
642 555
     /**
643
-     * 唯一增益
556
+     * 品质
644 557
      */
645
-    readonly uniqueGain: boolean
558
+    readonly quality: Quality
646 559
     /**
647
-     * 是否是光环
560
+     * 权重
648 561
      */
649
-    readonly halo: boolean
562
+    readonly weight: number
650 563
     /**
651
-     * buff增加的属性
564
+     * 消耗宝石数量
652 565
      */
653
-    readonly attributes: string
566
+    readonly costgem: number
567
+
568
+    resolve(tables:Tables) {
569
+        
570
+        
571
+        
572
+        
573
+    }
574
+}
575
+
576
+
577
+
578
+
579
+
580
+export class System {
581
+
582
+    constructor(_buf_: ByteBuf) {
583
+        this.idx = _buf_.ReadInt()
584
+        this.mainKey = _buf_.ReadString()
585
+        this.value = _buf_.ReadString()
586
+    }
587
+
654 588
     /**
655
-     * 是否合并
589
+     * IDX
656 590
      */
657
-    readonly mixBufficon: number
591
+    readonly idx: number
658 592
     /**
659
-     * 效果id
593
+     * 常量主键
660 594
      */
661
-    readonly skillShowId: number
595
+    readonly mainKey: string
662 596
     /**
663
-     * 飘字id
597
+     * 常量值
664 598
      */
665
-    readonly floatingTextId: number
599
+    readonly value: string
666 600
 
667 601
     resolve(tables:Tables) {
668 602
         
669 603
         
670 604
         
671
-        
672
-        
673
-        
674
-        
675
-        
676
-        
677
-        
678
-        
679
-        
680
-        
681
-        
682
-        
683 605
     }
684 606
 }
685 607
 
@@ -687,37 +609,55 @@ export class SkillBuff {
687 609
 
688 610
 
689 611
 
690
-export class BattleSpacialSummon {
612
+export class Hero {
691 613
 
692 614
     constructor(_buf_: ByteBuf) {
693
-        this.idx = _buf_.ReadInt()
615
+        this.id = _buf_.ReadInt()
694 616
         this.quality = _buf_.ReadInt()
695
-        this.weight = _buf_.ReadInt()
696
-        this.costgem = _buf_.ReadInt()
617
+        this.attacktype = _buf_.ReadInt()
618
+        this.name = _buf_.ReadString()
619
+        { 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);}}
620
+        { 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);}}
621
+        this.isShow = _buf_.ReadInt()
697 622
     }
698 623
 
699 624
     /**
700
-     * 唯一id
625
+     * 英雄ID
701 626
      */
702
-    readonly idx: number
627
+    readonly id: number
703 628
     /**
704 629
      * 品质
705 630
      */
706 631
     readonly quality: Quality
707 632
     /**
708
-     * 权重
633
+     * 攻击类型
709 634
      */
710
-    readonly weight: number
635
+    readonly attacktype: AttackType
711 636
     /**
712
-     * 消耗宝石数量
637
+     * 名字
713 638
      */
714
-    readonly costgem: number
639
+    readonly name: string
640
+    /**
641
+     * 技能列表
642
+     */
643
+    readonly skills: number[]
644
+    /**
645
+     * 合成英雄公式
646
+     */
647
+    readonly composeheros: number[]
648
+    /**
649
+     * 是否测试
650
+     */
651
+    readonly isShow: number
715 652
 
716 653
     resolve(tables:Tables) {
717 654
         
718 655
         
719 656
         
720 657
         
658
+        
659
+        
660
+        
721 661
     }
722 662
 }
723 663
 
@@ -725,31 +665,91 @@ export class BattleSpacialSummon {
725 665
 
726 666
 
727 667
 
728
-export class BattleSummonWeight {
668
+export class Skill {
729 669
 
730 670
     constructor(_buf_: ByteBuf) {
731 671
         this.idx = _buf_.ReadInt()
732
-        this.quality = _buf_.ReadInt()
733
-        this.weight = _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()
734 684
     }
735 685
 
736 686
     /**
737
-     * 唯一id
687
+     * 主键id
738 688
      */
739 689
     readonly idx: number
740 690
     /**
741
-     * 品质
691
+     * 备注
742 692
      */
743
-    readonly quality: Quality
693
+    readonly remark: string
744 694
     /**
745
-     * 权重
695
+     * 技能ID
746 696
      */
747
-    readonly weight: number
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
724
+     */
725
+    readonly buffId: string
726
+    /**
727
+     * 技能名字
728
+     */
729
+    readonly skillName: string
730
+    /**
731
+     * 技能描述
732
+     */
733
+    readonly desc: string
734
+    /**
735
+     * 冲突的技能id
736
+     */
737
+    readonly conflictSkillId: number
748 738
 
749 739
     resolve(tables:Tables) {
750 740
         
751 741
         
752 742
         
743
+        
744
+        
745
+        
746
+        
747
+        
748
+        
749
+        
750
+        
751
+        
752
+        
753 753
     }
754 754
 }
755 755