浏览代码

auto config export

Hua 10 月之前
父节点
当前提交
ae960cf4c9
共有 1 个文件被更改,包括 139 次插入139 次删除
  1. 139 139
      schema/schema.ts

+ 139 - 139
schema/schema.ts

@@ -327,37 +327,43 @@ export class BattleSpacialSummon {
327 327
 
328 328
 
329 329
 
330
-export class HeroQualityWorth {
330
+export class WaveRewards {
331 331
 
332 332
     constructor(_buf_: ByteBuf) {
333 333
         this.idx = _buf_.ReadInt()
334
-        this.quality = _buf_.ReadInt()
335
-        this.gold = _buf_.ReadInt()
336
-        this.gem = _buf_.ReadInt()
334
+        this.waveMin = _buf_.ReadInt()
335
+        this.waveMax = _buf_.ReadInt()
336
+        this.level = _buf_.ReadInt()
337
+        { 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);}}
337 338
     }
338 339
 
339 340
     /**
340
-     * 唯一id
341
+     * idx
341 342
      */
342 343
     readonly idx: number
343 344
     /**
344
-     * 品质
345
+     * 波数下限
345 346
      */
346
-    readonly quality: Quality
347
+    readonly waveMin: number
347 348
     /**
348
-     * 局内金币
349
+     * 波数上限
349 350
      */
350
-    readonly gold: number
351
+    readonly waveMax: number
351 352
     /**
352
-     * 局内宝石
353
+     * 难度
353 354
      */
354
-    readonly gem: number
355
+    readonly level: number
356
+    /**
357
+     * 奖励列表
358
+     */
359
+    readonly rewards: Common.Reward[]
355 360
 
356 361
     resolve(tables:Tables) {
357 362
         
358 363
         
359 364
         
360 365
         
366
+        for (let _e of this.rewards) { _e?.resolve(tables); }
361 367
     }
362 368
 }
363 369
 
@@ -365,86 +371,46 @@ export class HeroQualityWorth {
365 371
 
366 372
 
367 373
 
368
-export class SkillBuff {
374
+export class Hero {
369 375
 
370 376
     constructor(_buf_: ByteBuf) {
371
-        this.idx = _buf_.ReadInt()
372
-        this.remark = _buf_.ReadString()
373
-        this.type = _buf_.ReadInt()
374
-        this.parameters = _buf_.ReadString()
375
-        this.probability = _buf_.ReadInt()
376
-        this.triggerCondition = _buf_.ReadString()
377
-        this.effectType = _buf_.ReadInt()
378
-        this.duration = _buf_.ReadInt()
379
-        this.overlapTimes = _buf_.ReadInt()
380
-        this.uniqueGain = _buf_.ReadBool()
381
-        this.halo = _buf_.ReadBool()
382
-        this.attributes = _buf_.ReadString()
383
-        this.mixBufficon = _buf_.ReadInt()
384
-        this.skillShowId = _buf_.ReadInt()
385
-        this.floatingTextId = _buf_.ReadInt()
377
+        this.id = _buf_.ReadInt()
378
+        this.quality = _buf_.ReadInt()
379
+        this.attacktype = _buf_.ReadInt()
380
+        this.name = _buf_.ReadString()
381
+        { 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);}}
382
+        { 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);}}
383
+        this.isShow = _buf_.ReadInt()
386 384
     }
387 385
 
388 386
     /**
389
-     * buffid
390
-     */
391
-    readonly idx: number
392
-    /**
393
-     * 备注
394
-     */
395
-    readonly remark: string
396
-    /**
397
-     * buff类型
398
-     */
399
-    readonly type: number
400
-    /**
401
-     * buff参数
402
-     */
403
-    readonly parameters: string
404
-    /**
405
-     * 触发概率
406
-     */
407
-    readonly probability: number
408
-    /**
409
-     * 触发条件
410
-     */
411
-    readonly triggerCondition: string
412
-    /**
413
-     * 效果类型
414
-     */
415
-    readonly effectType: number
416
-    /**
417
-     * 持续时间
418
-     */
419
-    readonly duration: number
420
-    /**
421
-     * 叠加次数
387
+     * 英雄ID
422 388
      */
423
-    readonly overlapTimes: number
389
+    readonly id: number
424 390
     /**
425
-     * 唯一增益
391
+     * 品质
426 392
      */
427
-    readonly uniqueGain: boolean
393
+    readonly quality: Quality
428 394
     /**
429
-     * 是否是光环
395
+     * 攻击类型
430 396
      */
431
-    readonly halo: boolean
397
+    readonly attacktype: AttackType
432 398
     /**
433
-     * buff增加的属性
399
+     * 名字
434 400
      */
435
-    readonly attributes: string
401
+    readonly name: string
436 402
     /**
437
-     * 是否合并
403
+     * 技能列表
438 404
      */
439
-    readonly mixBufficon: number
405
+    readonly skills: number[]
440 406
     /**
441
-     * 效果id
407
+     * 合成英雄公式
442 408
      */
443
-    readonly skillShowId: number
409
+    readonly composeheros: number[]
444 410
     /**
445
-     * 飘字id
411
+     * 是否测试
446 412
      */
447
-    readonly floatingTextId: number
413
+    readonly isShow: number
448 414
 
449 415
     resolve(tables:Tables) {
450 416
         
@@ -454,14 +420,6 @@ export class SkillBuff {
454 420
         
455 421
         
456 422
         
457
-        
458
-        
459
-        
460
-        
461
-        
462
-        
463
-        
464
-        
465 423
     }
466 424
 }
467 425
 
@@ -469,12 +427,13 @@ export class SkillBuff {
469 427
 
470 428
 
471 429
 
472
-export class BattleSummonWeight {
430
+export class HeroQualityWorth {
473 431
 
474 432
     constructor(_buf_: ByteBuf) {
475 433
         this.idx = _buf_.ReadInt()
476 434
         this.quality = _buf_.ReadInt()
477
-        this.weight = _buf_.ReadInt()
435
+        this.gold = _buf_.ReadInt()
436
+        this.gem = _buf_.ReadInt()
478 437
     }
479 438
 
480 439
     /**
@@ -486,14 +445,19 @@ export class BattleSummonWeight {
486 445
      */
487 446
     readonly quality: Quality
488 447
     /**
489
-     * 权重
448
+     * 局内金币
490 449
      */
491
-    readonly weight: number
450
+    readonly gold: number
451
+    /**
452
+     * 局内宝石
453
+     */
454
+    readonly gem: number
492 455
 
493 456
     resolve(tables:Tables) {
494 457
         
495 458
         
496 459
         
460
+        
497 461
     }
498 462
 }
499 463
 
@@ -533,6 +497,38 @@ export class Item {
533 497
 
534 498
 
535 499
 
500
+export class BattleSummonWeight {
501
+
502
+    constructor(_buf_: ByteBuf) {
503
+        this.idx = _buf_.ReadInt()
504
+        this.quality = _buf_.ReadInt()
505
+        this.weight = _buf_.ReadInt()
506
+    }
507
+
508
+    /**
509
+     * 唯一id
510
+     */
511
+    readonly idx: number
512
+    /**
513
+     * 品质
514
+     */
515
+    readonly quality: Quality
516
+    /**
517
+     * 权重
518
+     */
519
+    readonly weight: number
520
+
521
+    resolve(tables:Tables) {
522
+        
523
+        
524
+        
525
+    }
526
+}
527
+
528
+
529
+
530
+
531
+
536 532
 export class System {
537 533
 
538 534
     constructor(_buf_: ByteBuf) {
@@ -657,90 +653,86 @@ export class Skill {
657 653
 
658 654
 
659 655
 
660
-export class WaveRewards {
656
+export class SkillBuff {
661 657
 
662 658
     constructor(_buf_: ByteBuf) {
663 659
         this.idx = _buf_.ReadInt()
664
-        this.waveMin = _buf_.ReadInt()
665
-        this.waveMax = _buf_.ReadInt()
666
-        this.level = _buf_.ReadInt()
667
-        { 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);}}
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()
668 674
     }
669 675
 
670 676
     /**
671
-     * idx
677
+     * buffid
672 678
      */
673 679
     readonly idx: number
674 680
     /**
675
-     * 波数下限
681
+     * 备注
676 682
      */
677
-    readonly waveMin: number
683
+    readonly remark: string
678 684
     /**
679
-     * 波数上限
685
+     * buff类型
680 686
      */
681
-    readonly waveMax: number
687
+    readonly type: number
682 688
     /**
683
-     * 难度
689
+     * buff参数
684 690
      */
685
-    readonly level: number
691
+    readonly parameters: string
686 692
     /**
687
-     * 奖励列表
693
+     * 触发概率
688 694
      */
689
-    readonly rewards: Common.Reward[]
690
-
691
-    resolve(tables:Tables) {
692
-        
693
-        
694
-        
695
-        
696
-        for (let _e of this.rewards) { _e?.resolve(tables); }
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
-
695
+    readonly probability: number
716 696
     /**
717
-     * 英雄ID
697
+     * 触发条件
718 698
      */
719
-    readonly id: number
699
+    readonly triggerCondition: string
720 700
     /**
721
-     * 品质
701
+     * 效果类型
722 702
      */
723
-    readonly quality: Quality
703
+    readonly effectType: number
724 704
     /**
725
-     * 攻击类型
705
+     * 持续时间
726 706
      */
727
-    readonly attacktype: AttackType
707
+    readonly duration: number
728 708
     /**
729
-     * 名字
709
+     * 叠加次数
730 710
      */
731
-    readonly name: string
711
+    readonly overlapTimes: number
732 712
     /**
733
-     * 技能列表
713
+     * 唯一增益
734 714
      */
735
-    readonly skills: number[]
715
+    readonly uniqueGain: boolean
736 716
     /**
737
-     * 合成英雄公式
717
+     * 是否是光环
738 718
      */
739
-    readonly composeheros: number[]
719
+    readonly halo: boolean
740 720
     /**
741
-     * 是否测试
721
+     * buff增加的属性
742 722
      */
743
-    readonly isShow: number
723
+    readonly attributes: string
724
+    /**
725
+     * 是否合并
726
+     */
727
+    readonly mixBufficon: number
728
+    /**
729
+     * 效果id
730
+     */
731
+    readonly skillShowId: number
732
+    /**
733
+     * 飘字id
734
+     */
735
+    readonly floatingTextId: number
744 736
 
745 737
     resolve(tables:Tables) {
746 738
         
@@ -750,6 +742,14 @@ export class Hero {
750 742
         
751 743
         
752 744
         
745
+        
746
+        
747
+        
748
+        
749
+        
750
+        
751
+        
752
+        
753 753
     }
754 754
 }
755 755