Browse Source

auto config export

Hua 1 year ago
parent
commit
c83be9d0e7
1 changed files with 191 additions and 185 deletions
  1. 191 185
      schema/schema.ts

+ 191 - 185
schema/schema.ts

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