Browse Source

auto config export

Hua 1 year ago
parent
commit
d293598f96
1 changed files with 262 additions and 262 deletions
  1. 262 262
      schema/schema.ts

+ 262 - 262
schema/schema.ts

@@ -289,103 +289,215 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class SkillBuff {
292
+export class HeroQualityWorth {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 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()
296
+        this.quality = _buf_.ReadInt()
297
+        this.gold = _buf_.ReadInt()
298
+        this.gem = _buf_.ReadInt()
310 299
     }
311 300
 
312 301
     /**
313
-     * buffid
302
+     * 唯一id
314 303
      */
315 304
     readonly idx: number
316 305
     /**
317
-     * 备注
318
-     */
319
-    readonly remark: string
320
-    /**
321
-     * buff类型
306
+     * 品质
322 307
      */
323
-    readonly type: number
308
+    readonly quality: Quality
324 309
     /**
325
-     * buff参数
310
+     * 局内金币
326 311
      */
327
-    readonly parameters: string
312
+    readonly gold: number
328 313
     /**
329
-     * 触发概率
314
+     * 局内宝石
330 315
      */
331
-    readonly probability: number
316
+    readonly gem: number
317
+
318
+    resolve(tables:Tables) {
319
+        
320
+        
321
+        
322
+        
323
+    }
324
+}
325
+
326
+
327
+
328
+
329
+
330
+export class Item {
331
+
332
+    constructor(_buf_: ByteBuf) {
333
+        this.idx = _buf_.ReadInt()
334
+        this.type = _buf_.ReadInt()
335
+        this.name = _buf_.ReadString()
336
+    }
337
+
332 338
     /**
333
-     * 触发条件
339
+     * 道具ID
334 340
      */
335
-    readonly triggerCondition: string
341
+    readonly idx: number
336 342
     /**
337
-     * 效果类型
343
+     * 类型
338 344
      */
339
-    readonly effectType: number
345
+    readonly type: number
340 346
     /**
341
-     * 持续时间
347
+     * 道具名
342 348
      */
343
-    readonly duration: number
349
+    readonly name: string
350
+
351
+    resolve(tables:Tables) {
352
+        
353
+        
354
+        
355
+    }
356
+}
357
+
358
+
359
+
360
+
361
+
362
+export class BattleSpacialSummon {
363
+
364
+    constructor(_buf_: ByteBuf) {
365
+        this.idx = _buf_.ReadInt()
366
+        this.quality = _buf_.ReadInt()
367
+        this.weight = _buf_.ReadInt()
368
+        this.costgem = _buf_.ReadInt()
369
+    }
370
+
344 371
     /**
345
-     * 叠加次数
372
+     * 唯一id
346 373
      */
347
-    readonly overlapTimes: number
374
+    readonly idx: number
348 375
     /**
349
-     * 唯一增益
376
+     * 品质
350 377
      */
351
-    readonly uniqueGain: boolean
378
+    readonly quality: Quality
352 379
     /**
353
-     * 是否是光环
380
+     * 权重
354 381
      */
355
-    readonly halo: boolean
382
+    readonly weight: number
356 383
     /**
357
-     * buff增加的属性
384
+     * 消耗宝石数量
358 385
      */
359
-    readonly attributes: string
386
+    readonly costgem: number
387
+
388
+    resolve(tables:Tables) {
389
+        
390
+        
391
+        
392
+        
393
+    }
394
+}
395
+
396
+
397
+
398
+
399
+
400
+export class System {
401
+
402
+    constructor(_buf_: ByteBuf) {
403
+        this.idx = _buf_.ReadInt()
404
+        this.mainKey = _buf_.ReadString()
405
+        this.value = _buf_.ReadString()
406
+    }
407
+
360 408
     /**
361
-     * 是否合并
409
+     * IDX
362 410
      */
363
-    readonly mixBufficon: number
411
+    readonly idx: number
364 412
     /**
365
-     * 效果id
413
+     * 常量主键
366 414
      */
367
-    readonly skillShowId: number
415
+    readonly mainKey: string
368 416
     /**
369
-     * 飘字id
417
+     * 常量值
370 418
      */
371
-    readonly floatingTextId: number
419
+    readonly value: string
372 420
 
373 421
     resolve(tables:Tables) {
374 422
         
375 423
         
376 424
         
425
+    }
426
+}
427
+
428
+
429
+
430
+
431
+
432
+export class BattleSummonWeight {
433
+
434
+    constructor(_buf_: ByteBuf) {
435
+        this.idx = _buf_.ReadInt()
436
+        this.quality = _buf_.ReadInt()
437
+        this.weight = _buf_.ReadInt()
438
+    }
439
+
440
+    /**
441
+     * 唯一id
442
+     */
443
+    readonly idx: number
444
+    /**
445
+     * 品质
446
+     */
447
+    readonly quality: Quality
448
+    /**
449
+     * 权重
450
+     */
451
+    readonly weight: number
452
+
453
+    resolve(tables:Tables) {
377 454
         
378 455
         
379 456
         
457
+    }
458
+}
459
+
460
+
461
+
462
+
463
+
464
+export class WaveRewards {
465
+
466
+    constructor(_buf_: ByteBuf) {
467
+        this.idx = _buf_.ReadInt()
468
+        this.waveMin = _buf_.ReadInt()
469
+        this.waveMax = _buf_.ReadInt()
470
+        this.level = _buf_.ReadInt()
471
+        { 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);}}
472
+    }
473
+
474
+    /**
475
+     * idx
476
+     */
477
+    readonly idx: number
478
+    /**
479
+     * 波数下限
480
+     */
481
+    readonly waveMin: number
482
+    /**
483
+     * 波数上限
484
+     */
485
+    readonly waveMax: number
486
+    /**
487
+     * 难度
488
+     */
489
+    readonly level: number
490
+    /**
491
+     * 奖励列表
492
+     */
493
+    readonly rewards: Common.Reward[]
494
+
495
+    resolve(tables:Tables) {
380 496
         
381 497
         
382 498
         
383 499
         
384
-        
385
-        
386
-        
387
-        
388
-        
500
+        for (let _e of this.rewards) { _e?.resolve(tables); }
389 501
     }
390 502
 }
391 503
 
@@ -393,26 +505,28 @@ export class SkillBuff {
393 505
 
394 506
 
395 507
 
396
-export class Skill {
508
+export class SkillBuff {
397 509
 
398 510
     constructor(_buf_: ByteBuf) {
399 511
         this.idx = _buf_.ReadInt()
400 512
         this.remark = _buf_.ReadString()
401
-        this.skillId = _buf_.ReadInt()
402
-        this.skillType = _buf_.ReadInt()
403
-        this.cd = _buf_.ReadInt()
404
-        this.gridRange = _buf_.ReadInt()
405
-        this.range = _buf_.ReadInt()
513
+        this.type = _buf_.ReadInt()
514
+        this.parameters = _buf_.ReadString()
515
+        this.probability = _buf_.ReadInt()
406 516
         this.triggerCondition = _buf_.ReadString()
407
-        this.effects = _buf_.ReadString()
408
-        this.buffId = _buf_.ReadString()
409
-        this.skillName = _buf_.ReadString()
410
-        this.desc = _buf_.ReadString()
411
-        this.conflictSkillId = _buf_.ReadInt()
517
+        this.effectType = _buf_.ReadInt()
518
+        this.duration = _buf_.ReadInt()
519
+        this.overlapTimes = _buf_.ReadInt()
520
+        this.uniqueGain = _buf_.ReadBool()
521
+        this.halo = _buf_.ReadBool()
522
+        this.attributes = _buf_.ReadString()
523
+        this.mixBufficon = _buf_.ReadInt()
524
+        this.skillShowId = _buf_.ReadInt()
525
+        this.floatingTextId = _buf_.ReadInt()
412 526
     }
413 527
 
414 528
     /**
415
-     * 主键id
529
+     * buffid
416 530
      */
417 531
     readonly idx: number
418 532
     /**
@@ -420,49 +534,57 @@ export class Skill {
420 534
      */
421 535
     readonly remark: string
422 536
     /**
423
-     * 技能ID
537
+     * buff类型
424 538
      */
425
-    readonly skillId: number
539
+    readonly type: number
426 540
     /**
427
-     * 类型
541
+     * buff参数
428 542
      */
429
-    readonly skillType: number
543
+    readonly parameters: string
430 544
     /**
431
-     * 冷却时间
545
+     * 触发概率
432 546
      */
433
-    readonly cd: number
547
+    readonly probability: number
434 548
     /**
435
-     * 格子范围
549
+     * 触发条件
436 550
      */
437
-    readonly gridRange: number
551
+    readonly triggerCondition: string
438 552
     /**
439
-     * 攻击距离
553
+     * 效果类型
440 554
      */
441
-    readonly range: number
555
+    readonly effectType: number
556
+    /**
557
+     * 持续时间
558
+     */
559
+    readonly duration: number
560
+    /**
561
+     * 叠加次数
562
+     */
563
+    readonly overlapTimes: number
442 564
     /**
443
-     * 技能触发条件
565
+     * 唯一增益
444 566
      */
445
-    readonly triggerCondition: string
567
+    readonly uniqueGain: boolean
446 568
     /**
447
-     * 效果列表
569
+     * 是否是光环
448 570
      */
449
-    readonly effects: string
571
+    readonly halo: boolean
450 572
     /**
451
-     * buff
573
+     * buff增加的属性
452 574
      */
453
-    readonly buffId: string
575
+    readonly attributes: string
454 576
     /**
455
-     * 技能名字
577
+     * 是否合并
456 578
      */
457
-    readonly skillName: string
579
+    readonly mixBufficon: number
458 580
     /**
459
-     * 技能描述
581
+     * 效果id
460 582
      */
461
-    readonly desc: string
583
+    readonly skillShowId: number
462 584
     /**
463
-     * 冲突的技能id
585
+     * 飘字id
464 586
      */
465
-    readonly conflictSkillId: number
587
+    readonly floatingTextId: number
466 588
 
467 589
     resolve(tables:Tables) {
468 590
         
@@ -478,6 +600,8 @@ export class Skill {
478 600
         
479 601
         
480 602
         
603
+        
604
+        
481 605
     }
482 606
 }
483 607
 
@@ -541,101 +665,91 @@ export class Hero {
541 665
 
542 666
 
543 667
 
544
-export class Item {
668
+export class Skill {
545 669
 
546 670
     constructor(_buf_: ByteBuf) {
547 671
         this.idx = _buf_.ReadInt()
548
-        this.type = _buf_.ReadInt()
549
-        this.name = _buf_.ReadString()
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()
550 684
     }
551 685
 
552 686
     /**
553
-     * 道具ID
687
+     * 主键id
554 688
      */
555 689
     readonly idx: number
556 690
     /**
691
+     * 备注
692
+     */
693
+    readonly remark: string
694
+    /**
695
+     * 技能ID
696
+     */
697
+    readonly skillId: number
698
+    /**
557 699
      * 类型
558 700
      */
559
-    readonly type: number
701
+    readonly skillType: number
560 702
     /**
561
-     * 道具名
703
+     * 冷却时间
562 704
      */
563
-    readonly name: string
564
-
565
-    resolve(tables:Tables) {
566
-        
567
-        
568
-        
569
-    }
570
-}
571
-
572
-
573
-
574
-
575
-
576
-export class HeroQualityWorth {
577
-
578
-    constructor(_buf_: ByteBuf) {
579
-        this.idx = _buf_.ReadInt()
580
-        this.quality = _buf_.ReadInt()
581
-        this.gold = _buf_.ReadInt()
582
-        this.gem = _buf_.ReadInt()
583
-    }
584
-
705
+    readonly cd: number
585 706
     /**
586
-     * 唯一id
707
+     * 格子范围
587 708
      */
588
-    readonly idx: number
709
+    readonly gridRange: number
589 710
     /**
590
-     * 品质
711
+     * 攻击距离
591 712
      */
592
-    readonly quality: Quality
713
+    readonly range: number
593 714
     /**
594
-     * 局内金币
715
+     * 技能触发条件
595 716
      */
596
-    readonly gold: number
717
+    readonly triggerCondition: string
597 718
     /**
598
-     * 局内宝石
719
+     * 效果列表
599 720
      */
600
-    readonly gem: number
601
-
602
-    resolve(tables:Tables) {
603
-        
604
-        
605
-        
606
-        
607
-    }
608
-}
609
-
610
-
611
-
612
-
613
-
614
-export class System {
615
-
616
-    constructor(_buf_: ByteBuf) {
617
-        this.idx = _buf_.ReadInt()
618
-        this.mainKey = _buf_.ReadString()
619
-        this.value = _buf_.ReadString()
620
-    }
621
-
721
+    readonly effects: string
622 722
     /**
623
-     * IDX
723
+     * buff
624 724
      */
625
-    readonly idx: number
725
+    readonly buffId: string
626 726
     /**
627
-     * 常量主键
727
+     * 技能名字
628 728
      */
629
-    readonly mainKey: string
729
+    readonly skillName: string
630 730
     /**
631
-     * 常量值
731
+     * 技能描述
632 732
      */
633
-    readonly value: string
733
+    readonly desc: string
734
+    /**
735
+     * 冲突的技能id
736
+     */
737
+    readonly conflictSkillId: number
634 738
 
635 739
     resolve(tables:Tables) {
636 740
         
637 741
         
638 742
         
743
+        
744
+        
745
+        
746
+        
747
+        
748
+        
749
+        
750
+        
751
+        
752
+        
639 753
     }
640 754
 }
641 755
 
@@ -723,120 +837,6 @@ export class Wave {
723 837
 
724 838
 
725 839
 
726
-export class BattleSummonWeight {
727
-
728
-    constructor(_buf_: ByteBuf) {
729
-        this.idx = _buf_.ReadInt()
730
-        this.quality = _buf_.ReadInt()
731
-        this.weight = _buf_.ReadInt()
732
-    }
733
-
734
-    /**
735
-     * 唯一id
736
-     */
737
-    readonly idx: number
738
-    /**
739
-     * 品质
740
-     */
741
-    readonly quality: Quality
742
-    /**
743
-     * 权重
744
-     */
745
-    readonly weight: number
746
-
747
-    resolve(tables:Tables) {
748
-        
749
-        
750
-        
751
-    }
752
-}
753
-
754
-
755
-
756
-
757
-
758
-export class BattleSpacialSummon {
759
-
760
-    constructor(_buf_: ByteBuf) {
761
-        this.idx = _buf_.ReadInt()
762
-        this.quality = _buf_.ReadInt()
763
-        this.weight = _buf_.ReadInt()
764
-        this.costgem = _buf_.ReadInt()
765
-    }
766
-
767
-    /**
768
-     * 唯一id
769
-     */
770
-    readonly idx: number
771
-    /**
772
-     * 品质
773
-     */
774
-    readonly quality: Quality
775
-    /**
776
-     * 权重
777
-     */
778
-    readonly weight: number
779
-    /**
780
-     * 消耗宝石数量
781
-     */
782
-    readonly costgem: number
783
-
784
-    resolve(tables:Tables) {
785
-        
786
-        
787
-        
788
-        
789
-    }
790
-}
791
-
792
-
793
-
794
-
795
-
796
-export class WaveRewards {
797
-
798
-    constructor(_buf_: ByteBuf) {
799
-        this.idx = _buf_.ReadInt()
800
-        this.waveMin = _buf_.ReadInt()
801
-        this.waveMax = _buf_.ReadInt()
802
-        this.level = _buf_.ReadInt()
803
-        { 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);}}
804
-    }
805
-
806
-    /**
807
-     * idx
808
-     */
809
-    readonly idx: number
810
-    /**
811
-     * 波数下限
812
-     */
813
-    readonly waveMin: number
814
-    /**
815
-     * 波数上限
816
-     */
817
-    readonly waveMax: number
818
-    /**
819
-     * 难度
820
-     */
821
-    readonly level: number
822
-    /**
823
-     * 奖励列表
824
-     */
825
-    readonly rewards: Common.Reward[]
826
-
827
-    resolve(tables:Tables) {
828
-        
829
-        
830
-        
831
-        
832
-        for (let _e of this.rewards) { _e?.resolve(tables); }
833
-    }
834
-}
835
-
836
-
837
-
838
-
839
-
840 840
 export class HeroLevel {
841 841
 
842 842
     constructor(_buf_: ByteBuf) {