浏览代码

auto config export

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

+ 207 - 207
schema/schema.ts

@@ -41,7 +41,7 @@ export enum AccessFlag {
41 41
 }
42 42
 
43 43
 } 
44
-export namespace Hero { 
44
+ 
45 45
 export enum Quality {
46 46
     /**
47 47
      * 普通
@@ -65,8 +65,8 @@ export enum Quality {
65 65
     Myth = 5,
66 66
 }
67 67
 
68
-} 
69
-export namespace Hero { 
68
+ 
69
+ 
70 70
 export enum AttackType {
71 71
     /**
72 72
      * 近战
@@ -78,7 +78,7 @@ export enum AttackType {
78 78
     Remote = 2,
79 79
 }
80 80
 
81
-} 
81
+ 
82 82
 
83 83
 
84 84
 
@@ -289,86 +289,36 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class SkillBuff {
292
+export class Hero {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295
-        this.idx = _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()
295
+        this.id = _buf_.ReadInt()
296
+        this.quality = _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);}}
310 300
     }
311 301
 
312 302
     /**
313
-     * buffid
314
-     */
315
-    readonly idx: number
316
-    /**
317
-     * 备注
318
-     */
319
-    readonly remark: string
320
-    /**
321
-     * buff类型
322
-     */
323
-    readonly type: number
324
-    /**
325
-     * buff参数
326
-     */
327
-    readonly parameters: string
328
-    /**
329
-     * 触发概率
330
-     */
331
-    readonly probability: number
332
-    /**
333
-     * 触发条件
334
-     */
335
-    readonly triggerCondition: string
336
-    /**
337
-     * 效果类型
338
-     */
339
-    readonly effectType: number
340
-    /**
341
-     * 持续时间
342
-     */
343
-    readonly duration: number
344
-    /**
345
-     * 叠加次数
346
-     */
347
-    readonly overlapTimes: number
348
-    /**
349
-     * 唯一增益
350
-     */
351
-    readonly uniqueGain: boolean
352
-    /**
353
-     * 是否是光环
303
+     * 英雄ID
354 304
      */
355
-    readonly halo: boolean
305
+    readonly id: number
356 306
     /**
357
-     * buff增加的属性
307
+     * 品质
358 308
      */
359
-    readonly attributes: string
309
+    readonly quality: Quality
360 310
     /**
361
-     * 是否合并
311
+     * 攻击类型
362 312
      */
363
-    readonly mixBufficon: number
313
+    readonly attacktype: AttackType
364 314
     /**
365
-     * 效果id
315
+     * 名字
366 316
      */
367
-    readonly skillShowId: number
317
+    readonly name: string
368 318
     /**
369
-     * 飘字id
319
+     * 技能列表
370 320
      */
371
-    readonly floatingTextId: number
321
+    readonly skills: number[]
372 322
 
373 323
     resolve(tables:Tables) {
374 324
         
@@ -376,16 +326,6 @@ export class SkillBuff {
376 326
         
377 327
         
378 328
         
379
-        
380
-        
381
-        
382
-        
383
-        
384
-        
385
-        
386
-        
387
-        
388
-        
389 329
     }
390 330
 }
391 331
 
@@ -393,31 +333,61 @@ export class SkillBuff {
393 333
 
394 334
 
395 335
 
396
-export class Item {
336
+export class HeroLevel {
397 337
 
398 338
     constructor(_buf_: ByteBuf) {
399 339
         this.idx = _buf_.ReadInt()
400
-        this.type = _buf_.ReadInt()
401
-        this.name = _buf_.ReadString()
340
+        this.id = _buf_.ReadInt()
341
+        this.level = _buf_.ReadInt()
342
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
343
+        this.unlockSkillDesc = _buf_.ReadString()
344
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.upgradeconsume = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Cost(_buf_); this.upgradeconsume.push(_e0);}}
345
+        this.atk = _buf_.ReadInt()
346
+        this.atkSpeed = _buf_.ReadInt()
402 347
     }
403 348
 
404 349
     /**
405
-     * 道具ID
350
+     * 序號
406 351
      */
407 352
     readonly idx: number
408 353
     /**
409
-     * 类型
354
+     * 英雄ID
410 355
      */
411
-    readonly type: number
356
+    readonly id: number
412 357
     /**
413
-     * 道具名
358
+     * 等级
414 359
      */
415
-    readonly name: string
360
+    readonly level: number
361
+    /**
362
+     * 英雄解锁技能
363
+     */
364
+    readonly unlockSkill: number[]
365
+    /**
366
+     * 解锁技能描述
367
+     */
368
+    readonly unlockSkillDesc: string
369
+    /**
370
+     * 升级消耗
371
+     */
372
+    readonly upgradeconsume: Common.Cost[]
373
+    /**
374
+     * 攻击力
375
+     */
376
+    readonly atk: number
377
+    /**
378
+     * 攻击速度
379
+     */
380
+    readonly atkSpeed: number
416 381
 
417 382
     resolve(tables:Tables) {
418 383
         
419 384
         
420 385
         
386
+        
387
+        
388
+        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
389
+        
390
+        
421 391
     }
422 392
 }
423 393
 
@@ -511,80 +481,66 @@ export class Skill {
511 481
 
512 482
 
513 483
 
514
-export class WaveRewards {
484
+export class Wave {
515 485
 
516 486
     constructor(_buf_: ByteBuf) {
517 487
         this.idx = _buf_.ReadInt()
518
-        this.waveMin = _buf_.ReadInt()
519
-        this.waveMax = _buf_.ReadInt()
488
+        this.waveIndex = _buf_.ReadInt()
520 489
         this.level = _buf_.ReadInt()
521
-        { 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);}}
490
+        this.model = _buf_.ReadInt()
491
+        this.counter = _buf_.ReadInt()
492
+        this.hp = _buf_.ReadInt()
493
+        this.speed = _buf_.ReadInt()
494
+        this.gap = _buf_.ReadInt()
495
+        this.isboss = _buf_.ReadInt()
496
+        this.perAddCoid = _buf_.ReadInt()
497
+        this.perAddGem = _buf_.ReadInt()
522 498
     }
523 499
 
524 500
     /**
525
-     * idx
501
+     * 唯一id
526 502
      */
527 503
     readonly idx: number
528 504
     /**
529
-     * 波数下限
530
-     */
531
-    readonly waveMin: number
532
-    /**
533
-     * 波数上限
505
+     * 波数
534 506
      */
535
-    readonly waveMax: number
507
+    readonly waveIndex: number
536 508
     /**
537 509
      * 难度
538 510
      */
539 511
     readonly level: number
540 512
     /**
541
-     * 奖励列表
513
+     * 怪物模型
542 514
      */
543
-    readonly rewards: Common.Reward[]
544
-
545
-    resolve(tables:Tables) {
546
-        
547
-        
548
-        
549
-        
550
-        for (let _e of this.rewards) { _e?.resolve(tables); }
551
-    }
552
-}
553
-
554
-
555
-
556
-
557
-
558
-export class Hero {
559
-
560
-    constructor(_buf_: ByteBuf) {
561
-        this.id = _buf_.ReadInt()
562
-        this.quality = _buf_.ReadInt()
563
-        this.attacktype = _buf_.ReadInt()
564
-        this.name = _buf_.ReadString()
565
-        { 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);}}
566
-    }
567
-
515
+    readonly model: number
568 516
     /**
569
-     * 英雄ID
517
+     * 数量
570 518
      */
571
-    readonly id: number
519
+    readonly counter: number
572 520
     /**
573
-     * 品质
521
+     * 血量
574 522
      */
575
-    readonly quality: Hero.Quality
523
+    readonly hp: number
576 524
     /**
577
-     * 攻击类型
525
+     * 速度
578 526
      */
579
-    readonly attacktype: Hero.AttackType
527
+    readonly speed: number
580 528
     /**
581
-     * 名字
529
+     * 间距
582 530
      */
583
-    readonly name: string
531
+    readonly gap: number
584 532
     /**
585
-     * 技能列表
533
+     * 是否是boss
586 534
      */
587
-    readonly skills: number[]
535
+    readonly isboss: number
536
+    /**
537
+     * 每只怪增加局内金币
538
+     */
539
+    readonly perAddCoid: number
540
+    /**
541
+     * 每只怪增加局内宝石
542
+     */
543
+    readonly perAddGem: number
588 544
 
589 545
     resolve(tables:Tables) {
590 546
         
@@ -592,6 +548,12 @@ export class Hero {
592 548
         
593 549
         
594 550
         
551
+        
552
+        
553
+        
554
+        
555
+        
556
+        
595 557
     }
596 558
 }
597 559
 
@@ -599,31 +561,43 @@ export class Hero {
599 561
 
600 562
 
601 563
 
602
-export class System {
564
+export class WaveRewards {
603 565
 
604 566
     constructor(_buf_: ByteBuf) {
605 567
         this.idx = _buf_.ReadInt()
606
-        this.mainKey = _buf_.ReadString()
607
-        this.value = _buf_.ReadString()
568
+        this.waveMin = _buf_.ReadInt()
569
+        this.waveMax = _buf_.ReadInt()
570
+        this.level = _buf_.ReadInt()
571
+        { 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);}}
608 572
     }
609 573
 
610 574
     /**
611
-     * IDX
575
+     * idx
612 576
      */
613 577
     readonly idx: number
614 578
     /**
615
-     * 常量主键
579
+     * 波数下限
616 580
      */
617
-    readonly mainKey: string
581
+    readonly waveMin: number
618 582
     /**
619
-     * 常量值
583
+     * 波数上限
620 584
      */
621
-    readonly value: string
585
+    readonly waveMax: number
586
+    /**
587
+     * 难度
588
+     */
589
+    readonly level: number
590
+    /**
591
+     * 奖励列表
592
+     */
593
+    readonly rewards: Common.Reward[]
622 594
 
623 595
     resolve(tables:Tables) {
624 596
         
625 597
         
626 598
         
599
+        
600
+        for (let _e of this.rewards) { _e?.resolve(tables); }
627 601
     }
628 602
 }
629 603
 
@@ -631,66 +605,86 @@ export class System {
631 605
 
632 606
 
633 607
 
634
-export class Wave {
608
+export class SkillBuff {
635 609
 
636 610
     constructor(_buf_: ByteBuf) {
637 611
         this.idx = _buf_.ReadInt()
638
-        this.waveIndex = _buf_.ReadInt()
639
-        this.level = _buf_.ReadInt()
640
-        this.model = _buf_.ReadInt()
641
-        this.counter = _buf_.ReadInt()
642
-        this.hp = _buf_.ReadInt()
643
-        this.speed = _buf_.ReadInt()
644
-        this.gap = _buf_.ReadInt()
645
-        this.isboss = _buf_.ReadInt()
646
-        this.perAddCoid = _buf_.ReadInt()
647
-        this.perAddGem = _buf_.ReadInt()
612
+        this.remark = _buf_.ReadString()
613
+        this.type = _buf_.ReadInt()
614
+        this.parameters = _buf_.ReadString()
615
+        this.probability = _buf_.ReadInt()
616
+        this.triggerCondition = _buf_.ReadString()
617
+        this.effectType = _buf_.ReadInt()
618
+        this.duration = _buf_.ReadInt()
619
+        this.overlapTimes = _buf_.ReadInt()
620
+        this.uniqueGain = _buf_.ReadBool()
621
+        this.halo = _buf_.ReadBool()
622
+        this.attributes = _buf_.ReadString()
623
+        this.mixBufficon = _buf_.ReadInt()
624
+        this.skillShowId = _buf_.ReadInt()
625
+        this.floatingTextId = _buf_.ReadInt()
648 626
     }
649 627
 
650 628
     /**
651
-     * 唯一id
629
+     * buffid
652 630
      */
653 631
     readonly idx: number
654 632
     /**
655
-     * 波数
633
+     * 备注
656 634
      */
657
-    readonly waveIndex: number
635
+    readonly remark: string
658 636
     /**
659
-     * 难度
637
+     * buff类型
660 638
      */
661
-    readonly level: number
639
+    readonly type: number
662 640
     /**
663
-     * 怪物模型
641
+     * buff参数
664 642
      */
665
-    readonly model: number
643
+    readonly parameters: string
666 644
     /**
667
-     * 数量
645
+     * 触发概率
668 646
      */
669
-    readonly counter: number
647
+    readonly probability: number
670 648
     /**
671
-     * 血量
649
+     * 触发条件
672 650
      */
673
-    readonly hp: number
651
+    readonly triggerCondition: string
674 652
     /**
675
-     * 速度
653
+     * 效果类型
676 654
      */
677
-    readonly speed: number
655
+    readonly effectType: number
678 656
     /**
679
-     * 间
657
+     * 持续时
680 658
      */
681
-    readonly gap: number
659
+    readonly duration: number
682 660
     /**
683
-     * 是否是boss
661
+     * 叠加次数
684 662
      */
685
-    readonly isboss: number
663
+    readonly overlapTimes: number
686 664
     /**
687
-     * 每只怪增加局内金币
665
+     * 唯一增益
688 666
      */
689
-    readonly perAddCoid: number
667
+    readonly uniqueGain: boolean
690 668
     /**
691
-     * 每只怪增加局内宝石
669
+     * 是否是光环
692 670
      */
693
-    readonly perAddGem: number
671
+    readonly halo: boolean
672
+    /**
673
+     * buff增加的属性
674
+     */
675
+    readonly attributes: string
676
+    /**
677
+     * 是否合并
678
+     */
679
+    readonly mixBufficon: number
680
+    /**
681
+     * 效果id
682
+     */
683
+    readonly skillShowId: number
684
+    /**
685
+     * 飘字id
686
+     */
687
+    readonly floatingTextId: number
694 688
 
695 689
     resolve(tables:Tables) {
696 690
         
@@ -704,6 +698,10 @@ export class Wave {
704 698
         
705 699
         
706 700
         
701
+        
702
+        
703
+        
704
+        
707 705
     }
708 706
 }
709 707
 
@@ -711,61 +709,63 @@ export class Wave {
711 709
 
712 710
 
713 711
 
714
-export class HeroLevel {
712
+export class System {
715 713
 
716 714
     constructor(_buf_: ByteBuf) {
717 715
         this.idx = _buf_.ReadInt()
718
-        this.id = _buf_.ReadInt()
719
-        this.level = _buf_.ReadInt()
720
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
721
-        this.unlockSkillDesc = _buf_.ReadString()
722
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.upgradeconsume = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Cost(_buf_); this.upgradeconsume.push(_e0);}}
723
-        this.atk = _buf_.ReadInt()
724
-        this.atkSpeed = _buf_.ReadInt()
716
+        this.mainKey = _buf_.ReadString()
717
+        this.value = _buf_.ReadString()
725 718
     }
726 719
 
727 720
     /**
728
-     * 序號
721
+     * IDX
729 722
      */
730 723
     readonly idx: number
731 724
     /**
732
-     * 英雄ID
733
-     */
734
-    readonly id: number
735
-    /**
736
-     * 等级
737
-     */
738
-    readonly level: number
739
-    /**
740
-     * 英雄解锁技能
725
+     * 常量主键
741 726
      */
742
-    readonly unlockSkill: number[]
727
+    readonly mainKey: string
743 728
     /**
744
-     * 解锁技能描述
729
+     * 常量值
745 730
      */
746
-    readonly unlockSkillDesc: string
731
+    readonly value: string
732
+
733
+    resolve(tables:Tables) {
734
+        
735
+        
736
+        
737
+    }
738
+}
739
+
740
+
741
+
742
+
743
+
744
+export class Item {
745
+
746
+    constructor(_buf_: ByteBuf) {
747
+        this.idx = _buf_.ReadInt()
748
+        this.type = _buf_.ReadInt()
749
+        this.name = _buf_.ReadString()
750
+    }
751
+
747 752
     /**
748
-     * 升级消耗
753
+     * 道具ID
749 754
      */
750
-    readonly upgradeconsume: Common.Cost[]
755
+    readonly idx: number
751 756
     /**
752
-     * 攻击力
757
+     * 类型
753 758
      */
754
-    readonly atk: number
759
+    readonly type: number
755 760
     /**
756
-     * 攻击速度
761
+     * 道具名
757 762
      */
758
-    readonly atkSpeed: number
763
+    readonly name: string
759 764
 
760 765
     resolve(tables:Tables) {
761 766
         
762 767
         
763 768
         
764
-        
765
-        
766
-        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
767
-        
768
-        
769 769
     }
770 770
 }
771 771