Browse Source

auto config export

Hua 10 months ago
parent
commit
66273770ab
1 changed files with 156 additions and 156 deletions
  1. 156 156
      schema/schema.ts

+ 156 - 156
schema/schema.ts

@@ -289,123 +289,43 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class System {
293
-
294
-    constructor(_buf_: ByteBuf) {
295
-        this.idx = _buf_.ReadInt()
296
-        this.mainKey = _buf_.ReadString()
297
-        this.value = _buf_.ReadString()
298
-    }
299
-
300
-    /**
301
-     * IDX
302
-     */
303
-    readonly idx: number
304
-    /**
305
-     * 常量主键
306
-     */
307
-    readonly mainKey: string
308
-    /**
309
-     * 常量值
310
-     */
311
-    readonly value: string
312
-
313
-    resolve(tables:Tables) {
314
-        
315
-        
316
-        
317
-    }
318
-}
319
-
320
-
321
-
322
-
323
-
324
-export class Skill {
292
+export class WaveRewards {
325 293
 
326 294
     constructor(_buf_: ByteBuf) {
327 295
         this.idx = _buf_.ReadInt()
328
-        this.remark = _buf_.ReadString()
329
-        this.skillId = _buf_.ReadInt()
330
-        this.skillType = _buf_.ReadInt()
331
-        this.cd = _buf_.ReadInt()
332
-        this.gridRange = _buf_.ReadInt()
333
-        this.range = _buf_.ReadInt()
334
-        this.triggerCondition = _buf_.ReadString()
335
-        this.effects = _buf_.ReadString()
336
-        this.buffId = _buf_.ReadString()
337
-        this.skillName = _buf_.ReadString()
338
-        this.desc = _buf_.ReadString()
339
-        this.conflictSkillId = _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);}}
340 300
     }
341 301
 
342 302
     /**
343
-     * 主键id
303
+     * idx
344 304
      */
345 305
     readonly idx: number
346 306
     /**
347
-     * 备注
348
-     */
349
-    readonly remark: string
350
-    /**
351
-     * 技能ID
352
-     */
353
-    readonly skillId: number
354
-    /**
355
-     * 类型
356
-     */
357
-    readonly skillType: number
358
-    /**
359
-     * 冷却时间
360
-     */
361
-    readonly cd: number
362
-    /**
363
-     * 格子范围
364
-     */
365
-    readonly gridRange: number
366
-    /**
367
-     * 攻击距离
368
-     */
369
-    readonly range: number
370
-    /**
371
-     * 技能触发条件
372
-     */
373
-    readonly triggerCondition: string
374
-    /**
375
-     * 效果列表
376
-     */
377
-    readonly effects: string
378
-    /**
379
-     * buff
307
+     * 波数下限
380 308
      */
381
-    readonly buffId: string
309
+    readonly waveMin: number
382 310
     /**
383
-     * 技能名字
311
+     * 波数上限
384 312
      */
385
-    readonly skillName: string
313
+    readonly waveMax: number
386 314
     /**
387
-     * 技能描述
315
+     * 难度
388 316
      */
389
-    readonly desc: string
317
+    readonly level: number
390 318
     /**
391
-     * 冲突的技能id
319
+     * 奖励列表
392 320
      */
393
-    readonly conflictSkillId: number
321
+    readonly rewards: Common.Reward[]
394 322
 
395 323
     resolve(tables:Tables) {
396 324
         
397 325
         
398 326
         
399 327
         
400
-        
401
-        
402
-        
403
-        
404
-        
405
-        
406
-        
407
-        
408
-        
328
+        for (let _e of this.rewards) { _e?.resolve(tables); }
409 329
     }
410 330
 }
411 331
 
@@ -469,69 +389,91 @@ export class Hero {
469 389
 
470 390
 
471 391
 
472
-export class HeroQualityWorth {
392
+export class Skill {
473 393
 
474 394
     constructor(_buf_: ByteBuf) {
475 395
         this.idx = _buf_.ReadInt()
476
-        this.quality = _buf_.ReadInt()
477
-        this.gold = _buf_.ReadInt()
478
-        this.gem = _buf_.ReadInt()
396
+        this.remark = _buf_.ReadString()
397
+        this.skillId = _buf_.ReadInt()
398
+        this.skillType = _buf_.ReadInt()
399
+        this.cd = _buf_.ReadInt()
400
+        this.gridRange = _buf_.ReadInt()
401
+        this.range = _buf_.ReadInt()
402
+        this.triggerCondition = _buf_.ReadString()
403
+        this.effects = _buf_.ReadString()
404
+        this.buffId = _buf_.ReadString()
405
+        this.skillName = _buf_.ReadString()
406
+        this.desc = _buf_.ReadString()
407
+        this.conflictSkillId = _buf_.ReadInt()
479 408
     }
480 409
 
481 410
     /**
482
-     * 唯一id
411
+     * 主键id
483 412
      */
484 413
     readonly idx: number
485 414
     /**
486
-     * 品质
415
+     * 备注
487 416
      */
488
-    readonly quality: Quality
417
+    readonly remark: string
489 418
     /**
490
-     * 局内金币
419
+     * 技能ID
491 420
      */
492
-    readonly gold: number
421
+    readonly skillId: number
493 422
     /**
494
-     * 局内宝石
423
+     * 类型
495 424
      */
496
-    readonly gem: number
497
-
498
-    resolve(tables:Tables) {
499
-        
500
-        
501
-        
502
-        
503
-    }
504
-}
505
-
506
-
507
-
508
-
509
-
510
-export class Item {
511
-
512
-    constructor(_buf_: ByteBuf) {
513
-        this.idx = _buf_.ReadInt()
514
-        this.type = _buf_.ReadInt()
515
-        this.name = _buf_.ReadString()
516
-    }
517
-
425
+    readonly skillType: number
518 426
     /**
519
-     * 道具ID
427
+     * 冷却时间
520 428
      */
521
-    readonly idx: number
429
+    readonly cd: number
522 430
     /**
523
-     * 类型
431
+     * 格子范围
524 432
      */
525
-    readonly type: number
433
+    readonly gridRange: number
526 434
     /**
527
-     * 道具名
435
+     * 攻击距离
528 436
      */
529
-    readonly name: string
437
+    readonly range: number
438
+    /**
439
+     * 技能触发条件
440
+     */
441
+    readonly triggerCondition: string
442
+    /**
443
+     * 效果列表
444
+     */
445
+    readonly effects: string
446
+    /**
447
+     * buff
448
+     */
449
+    readonly buffId: string
450
+    /**
451
+     * 技能名字
452
+     */
453
+    readonly skillName: string
454
+    /**
455
+     * 技能描述
456
+     */
457
+    readonly desc: string
458
+    /**
459
+     * 冲突的技能id
460
+     */
461
+    readonly conflictSkillId: number
530 462
 
531 463
     resolve(tables:Tables) {
532 464
         
533 465
         
534 466
         
467
+        
468
+        
469
+        
470
+        
471
+        
472
+        
473
+        
474
+        
475
+        
476
+        
535 477
     }
536 478
 }
537 479
 
@@ -643,26 +585,26 @@ export class SkillBuff {
643 585
 
644 586
 
645 587
 
646
-export class BattleSummonWeight {
588
+export class System {
647 589
 
648 590
     constructor(_buf_: ByteBuf) {
649 591
         this.idx = _buf_.ReadInt()
650
-        this.quality = _buf_.ReadInt()
651
-        this.weight = _buf_.ReadInt()
592
+        this.mainKey = _buf_.ReadString()
593
+        this.value = _buf_.ReadString()
652 594
     }
653 595
 
654 596
     /**
655
-     * 唯一id
597
+     * IDX
656 598
      */
657 599
     readonly idx: number
658 600
     /**
659
-     * 品质
601
+     * 常量主键
660 602
      */
661
-    readonly quality: Quality
603
+    readonly mainKey: string
662 604
     /**
663
-     * 权重
605
+     * 常量值
664 606
      */
665
-    readonly weight: number
607
+    readonly value: string
666 608
 
667 609
     resolve(tables:Tables) {
668 610
         
@@ -675,43 +617,69 @@ export class BattleSummonWeight {
675 617
 
676 618
 
677 619
 
678
-export class WaveRewards {
620
+export class Item {
679 621
 
680 622
     constructor(_buf_: ByteBuf) {
681 623
         this.idx = _buf_.ReadInt()
682
-        this.waveMin = _buf_.ReadInt()
683
-        this.waveMax = _buf_.ReadInt()
684
-        this.level = _buf_.ReadInt()
685
-        { 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);}}
624
+        this.type = _buf_.ReadInt()
625
+        this.name = _buf_.ReadString()
686 626
     }
687 627
 
688 628
     /**
689
-     * idx
629
+     * 道具ID
690 630
      */
691 631
     readonly idx: number
692 632
     /**
693
-     * 波数下限
633
+     * 类型
694 634
      */
695
-    readonly waveMin: number
635
+    readonly type: number
696 636
     /**
697
-     * 波数上限
637
+     * 道具名
698 638
      */
699
-    readonly waveMax: number
639
+    readonly name: string
640
+
641
+    resolve(tables:Tables) {
642
+        
643
+        
644
+        
645
+    }
646
+}
647
+
648
+
649
+
650
+
651
+
652
+export class HeroQualityWorth {
653
+
654
+    constructor(_buf_: ByteBuf) {
655
+        this.idx = _buf_.ReadInt()
656
+        this.quality = _buf_.ReadInt()
657
+        this.gold = _buf_.ReadInt()
658
+        this.gem = _buf_.ReadInt()
659
+    }
660
+
700 661
     /**
701
-     * 难度
662
+     * 唯一id
702 663
      */
703
-    readonly level: number
664
+    readonly idx: number
704 665
     /**
705
-     * 奖励列表
666
+     * 品质
706 667
      */
707
-    readonly rewards: Common.Reward[]
668
+    readonly quality: Quality
669
+    /**
670
+     * 局内金币
671
+     */
672
+    readonly gold: number
673
+    /**
674
+     * 局内宝石
675
+     */
676
+    readonly gem: number
708 677
 
709 678
     resolve(tables:Tables) {
710 679
         
711 680
         
712 681
         
713 682
         
714
-        for (let _e of this.rewards) { _e?.resolve(tables); }
715 683
     }
716 684
 }
717 685
 
@@ -757,6 +725,38 @@ export class BattleSpacialSummon {
757 725
 
758 726
 
759 727
 
728
+export class BattleSummonWeight {
729
+
730
+    constructor(_buf_: ByteBuf) {
731
+        this.idx = _buf_.ReadInt()
732
+        this.quality = _buf_.ReadInt()
733
+        this.weight = _buf_.ReadInt()
734
+    }
735
+
736
+    /**
737
+     * 唯一id
738
+     */
739
+    readonly idx: number
740
+    /**
741
+     * 品质
742
+     */
743
+    readonly quality: Quality
744
+    /**
745
+     * 权重
746
+     */
747
+    readonly weight: number
748
+
749
+    resolve(tables:Tables) {
750
+        
751
+        
752
+        
753
+    }
754
+}
755
+
756
+
757
+
758
+
759
+
760 760
 export class Wave {
761 761
 
762 762
     constructor(_buf_: ByteBuf) {