소스 검색

auto config export

Hua 10 달 전
부모
커밋
bd2cccceb7
1개의 변경된 파일143개의 추가작업 그리고 143개의 파일을 삭제
  1. 143 143
      schema/schema.ts

+ 143 - 143
schema/schema.ts

@@ -289,43 +289,31 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class WaveRewards {
292
+export class System {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.waveMin = _buf_.ReadInt()
297
-        this.waveMax = _buf_.ReadInt()
298
-        this.level = _buf_.ReadInt()
299
-        { 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);}}
296
+        this.mainKey = _buf_.ReadString()
297
+        this.value = _buf_.ReadString()
300 298
     }
301 299
 
302 300
     /**
303
-     * idx
301
+     * IDX
304 302
      */
305 303
     readonly idx: number
306 304
     /**
307
-     * 波数下限
308
-     */
309
-    readonly waveMin: number
310
-    /**
311
-     * 波数上限
312
-     */
313
-    readonly waveMax: number
314
-    /**
315
-     * 难度
305
+     * 常量主键
316 306
      */
317
-    readonly level: number
307
+    readonly mainKey: string
318 308
     /**
319
-     * 奖励列表
309
+     * 常量值
320 310
      */
321
-    readonly rewards: Common.Reward[]
311
+    readonly value: string
322 312
 
323 313
     resolve(tables:Tables) {
324 314
         
325 315
         
326 316
         
327
-        
328
-        for (let _e of this.rewards) { _e?.resolve(tables); }
329 317
     }
330 318
 }
331 319
 
@@ -333,13 +321,12 @@ export class WaveRewards {
333 321
 
334 322
 
335 323
 
336
-export class BattleSpacialSummon {
324
+export class BattleSummonWeight {
337 325
 
338 326
     constructor(_buf_: ByteBuf) {
339 327
         this.idx = _buf_.ReadInt()
340 328
         this.quality = _buf_.ReadInt()
341 329
         this.weight = _buf_.ReadInt()
342
-        this.costgem = _buf_.ReadInt()
343 330
     }
344 331
 
345 332
     /**
@@ -354,16 +341,11 @@ export class BattleSpacialSummon {
354 341
      * 权重
355 342
      */
356 343
     readonly weight: number
357
-    /**
358
-     * 消耗宝石数量
359
-     */
360
-    readonly costgem: number
361 344
 
362 345
     resolve(tables:Tables) {
363 346
         
364 347
         
365 348
         
366
-        
367 349
     }
368 350
 }
369 351
 
@@ -371,123 +353,43 @@ export class BattleSpacialSummon {
371 353
 
372 354
 
373 355
 
374
-export class Skill {
356
+export class WaveRewards {
375 357
 
376 358
     constructor(_buf_: ByteBuf) {
377 359
         this.idx = _buf_.ReadInt()
378
-        this.remark = _buf_.ReadString()
379
-        this.skillId = _buf_.ReadInt()
380
-        this.skillType = _buf_.ReadInt()
381
-        this.cd = _buf_.ReadInt()
382
-        this.gridRange = _buf_.ReadInt()
383
-        this.range = _buf_.ReadInt()
384
-        this.triggerCondition = _buf_.ReadString()
385
-        this.effects = _buf_.ReadString()
386
-        this.buffId = _buf_.ReadString()
387
-        this.skillName = _buf_.ReadString()
388
-        this.desc = _buf_.ReadString()
389
-        this.conflictSkillId = _buf_.ReadInt()
360
+        this.waveMin = _buf_.ReadInt()
361
+        this.waveMax = _buf_.ReadInt()
362
+        this.level = _buf_.ReadInt()
363
+        { 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);}}
390 364
     }
391 365
 
392 366
     /**
393
-     * 主键id
367
+     * idx
394 368
      */
395 369
     readonly idx: number
396 370
     /**
397
-     * 备注
398
-     */
399
-    readonly remark: string
400
-    /**
401
-     * 技能ID
402
-     */
403
-    readonly skillId: number
404
-    /**
405
-     * 类型
406
-     */
407
-    readonly skillType: number
408
-    /**
409
-     * 冷却时间
410
-     */
411
-    readonly cd: number
412
-    /**
413
-     * 格子范围
414
-     */
415
-    readonly gridRange: number
416
-    /**
417
-     * 攻击距离
418
-     */
419
-    readonly range: number
420
-    /**
421
-     * 技能触发条件
422
-     */
423
-    readonly triggerCondition: string
424
-    /**
425
-     * 效果列表
426
-     */
427
-    readonly effects: string
428
-    /**
429
-     * buff
371
+     * 波数下限
430 372
      */
431
-    readonly buffId: string
373
+    readonly waveMin: number
432 374
     /**
433
-     * 技能名字
375
+     * 波数上限
434 376
      */
435
-    readonly skillName: string
377
+    readonly waveMax: number
436 378
     /**
437
-     * 技能描述
379
+     * 难度
438 380
      */
439
-    readonly desc: string
381
+    readonly level: number
440 382
     /**
441
-     * 冲突的技能id
383
+     * 奖励列表
442 384
      */
443
-    readonly conflictSkillId: number
385
+    readonly rewards: Common.Reward[]
444 386
 
445 387
     resolve(tables:Tables) {
446 388
         
447 389
         
448 390
         
449 391
         
450
-        
451
-        
452
-        
453
-        
454
-        
455
-        
456
-        
457
-        
458
-        
459
-    }
460
-}
461
-
462
-
463
-
464
-
465
-
466
-export class System {
467
-
468
-    constructor(_buf_: ByteBuf) {
469
-        this.idx = _buf_.ReadInt()
470
-        this.mainKey = _buf_.ReadString()
471
-        this.value = _buf_.ReadString()
472
-    }
473
-
474
-    /**
475
-     * IDX
476
-     */
477
-    readonly idx: number
478
-    /**
479
-     * 常量主键
480
-     */
481
-    readonly mainKey: string
482
-    /**
483
-     * 常量值
484
-     */
485
-    readonly value: string
486
-
487
-    resolve(tables:Tables) {
488
-        
489
-        
490
-        
392
+        for (let _e of this.rewards) { _e?.resolve(tables); }
491 393
     }
492 394
 }
493 395
 
@@ -637,26 +539,26 @@ export class HeroQualityWorth {
637 539
 
638 540
 
639 541
 
640
-export class BattleSummonWeight {
542
+export class Item {
641 543
 
642 544
     constructor(_buf_: ByteBuf) {
643 545
         this.idx = _buf_.ReadInt()
644
-        this.quality = _buf_.ReadInt()
645
-        this.weight = _buf_.ReadInt()
546
+        this.type = _buf_.ReadInt()
547
+        this.name = _buf_.ReadString()
646 548
     }
647 549
 
648 550
     /**
649
-     * 唯一id
551
+     * 道具ID
650 552
      */
651 553
     readonly idx: number
652 554
     /**
653
-     * 品质
555
+     * 类型
654 556
      */
655
-    readonly quality: Quality
557
+    readonly type: number
656 558
     /**
657
-     * 权重
559
+     * 道具名
658 560
      */
659
-    readonly weight: number
561
+    readonly name: string
660 562
 
661 563
     resolve(tables:Tables) {
662 564
         
@@ -669,31 +571,37 @@ export class BattleSummonWeight {
669 571
 
670 572
 
671 573
 
672
-export class Item {
574
+export class BattleSpacialSummon {
673 575
 
674 576
     constructor(_buf_: ByteBuf) {
675 577
         this.idx = _buf_.ReadInt()
676
-        this.type = _buf_.ReadInt()
677
-        this.name = _buf_.ReadString()
578
+        this.quality = _buf_.ReadInt()
579
+        this.weight = _buf_.ReadInt()
580
+        this.costgem = _buf_.ReadInt()
678 581
     }
679 582
 
680 583
     /**
681
-     * 道具ID
584
+     * 唯一id
682 585
      */
683 586
     readonly idx: number
684 587
     /**
685
-     * 类型
588
+     * 品质
686 589
      */
687
-    readonly type: number
590
+    readonly quality: Quality
688 591
     /**
689
-     * 道具名
592
+     * 权重
690 593
      */
691
-    readonly name: string
594
+    readonly weight: number
595
+    /**
596
+     * 消耗宝石数量
597
+     */
598
+    readonly costgem: number
692 599
 
693 600
     resolve(tables:Tables) {
694 601
         
695 602
         
696 603
         
604
+        
697 605
     }
698 606
 }
699 607
 
@@ -708,7 +616,6 @@ export class Hero {
708 616
         this.quality = _buf_.ReadInt()
709 617
         this.attacktype = _buf_.ReadInt()
710 618
         this.name = _buf_.ReadString()
711
-        this.attackRange = _buf_.ReadInt()
712 619
         { 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);}}
713 620
         { 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);}}
714 621
         this.isShow = _buf_.ReadInt()
@@ -731,10 +638,6 @@ export class Hero {
731 638
      */
732 639
     readonly name: string
733 640
     /**
734
-     * 普攻距离
735
-     */
736
-    readonly attackRange: number
737
-    /**
738 641
      * 技能列表
739 642
      */
740 643
     readonly skills: number[]
@@ -755,6 +658,97 @@ export class Hero {
755 658
         
756 659
         
757 660
         
661
+    }
662
+}
663
+
664
+
665
+
666
+
667
+
668
+export class Skill {
669
+
670
+    constructor(_buf_: ByteBuf) {
671
+        this.idx = _buf_.ReadInt()
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()
684
+    }
685
+
686
+    /**
687
+     * 主键id
688
+     */
689
+    readonly idx: number
690
+    /**
691
+     * 备注
692
+     */
693
+    readonly remark: string
694
+    /**
695
+     * 技能ID
696
+     */
697
+    readonly skillId: number
698
+    /**
699
+     * 类型
700
+     */
701
+    readonly skillType: number
702
+    /**
703
+     * 冷却时间
704
+     */
705
+    readonly cd: number
706
+    /**
707
+     * 格子范围
708
+     */
709
+    readonly gridRange: number
710
+    /**
711
+     * 攻击距离
712
+     */
713
+    readonly range: number
714
+    /**
715
+     * 技能触发条件
716
+     */
717
+    readonly triggerCondition: string
718
+    /**
719
+     * 效果列表
720
+     */
721
+    readonly effects: string
722
+    /**
723
+     * buff
724
+     */
725
+    readonly buffId: string
726
+    /**
727
+     * 技能名字
728
+     */
729
+    readonly skillName: string
730
+    /**
731
+     * 技能描述
732
+     */
733
+    readonly desc: string
734
+    /**
735
+     * 冲突的技能id
736
+     */
737
+    readonly conflictSkillId: number
738
+
739
+    resolve(tables:Tables) {
740
+        
741
+        
742
+        
743
+        
744
+        
745
+        
746
+        
747
+        
748
+        
749
+        
750
+        
751
+        
758 752
         
759 753
     }
760 754
 }
@@ -854,6 +848,7 @@ export class HeroLevel {
854 848
         { 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);}}
855 849
         this.atk = _buf_.ReadInt()
856 850
         this.atkSpeed = _buf_.ReadInt()
851
+        this.atkRange = _buf_.ReadInt()
857 852
     }
858 853
 
859 854
     /**
@@ -888,6 +883,10 @@ export class HeroLevel {
888 883
      * 攻击间隔
889 884
      */
890 885
     readonly atkSpeed: number
886
+    /**
887
+     * 攻击间隔
888
+     */
889
+    readonly atkRange: number
891 890
 
892 891
     resolve(tables:Tables) {
893 892
         
@@ -898,6 +897,7 @@ export class HeroLevel {
898 897
         for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
899 898
         
900 899
         
900
+        
901 901
     }
902 902
 }
903 903