Browse Source

auto config export

Hua 11 months ago
parent
commit
e312be63f5
1 changed files with 218 additions and 218 deletions
  1. 218 218
      schema/schema.ts

+ 218 - 218
schema/schema.ts

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