Hua 1 год назад
Родитель
Сommit
7db02cc3e0
1 измененных файлов с 201 добавлено и 201 удалено
  1. 201 201
      schema/schema.ts

+ 201 - 201
schema/schema.ts

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