Browse Source

auto config export

Hua 1 year ago
parent
commit
7a8a0eba96
1 changed files with 264 additions and 182 deletions
  1. 264 182
      schema/schema.ts

+ 264 - 182
schema/schema.ts

@@ -289,56 +289,6 @@ export class Cost {
289
 
289
 
290
 
290
 
291
 
291
 
292
-export class Hero {
293
-
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()
301
-    }
302
-
303
-    /**
304
-     * 英雄ID
305
-     */
306
-    readonly id: number
307
-    /**
308
-     * 品质
309
-     */
310
-    readonly quality: Quality
311
-    /**
312
-     * 攻击类型
313
-     */
314
-    readonly attacktype: AttackType
315
-    /**
316
-     * 名字
317
-     */
318
-    readonly name: string
319
-    /**
320
-     * 技能列表
321
-     */
322
-    readonly skills: number[]
323
-    /**
324
-     * 是否测试
325
-     */
326
-    readonly isShow: number
327
-
328
-    resolve(tables:Tables) {
329
-        
330
-        
331
-        
332
-        
333
-        
334
-        
335
-    }
336
-}
337
-
338
-
339
-
340
-
341
-
342
 export class SkillBuff {
292
 export class SkillBuff {
343
 
293
 
344
     constructor(_buf_: ByteBuf) {
294
     constructor(_buf_: ByteBuf) {
@@ -443,76 +393,46 @@ export class SkillBuff {
443
 
393
 
444
 
394
 
445
 
395
 
446
-export class Skill {
396
+export class Hero {
447
 
397
 
448
     constructor(_buf_: ByteBuf) {
398
     constructor(_buf_: ByteBuf) {
449
-        this.idx = _buf_.ReadInt()
450
-        this.remark = _buf_.ReadString()
451
-        this.skillId = _buf_.ReadInt()
452
-        this.skillType = _buf_.ReadInt()
453
-        this.cd = _buf_.ReadInt()
454
-        this.gridRange = _buf_.ReadInt()
455
-        this.range = _buf_.ReadInt()
456
-        this.triggerCondition = _buf_.ReadString()
457
-        this.effects = _buf_.ReadString()
458
-        this.buffId = _buf_.ReadString()
459
-        this.skillName = _buf_.ReadString()
460
-        this.desc = _buf_.ReadString()
461
-        this.conflictSkillId = _buf_.ReadInt()
399
+        this.id = _buf_.ReadInt()
400
+        this.quality = _buf_.ReadInt()
401
+        this.attacktype = _buf_.ReadInt()
402
+        this.name = _buf_.ReadString()
403
+        { 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);}}
404
+        { 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);}}
405
+        this.isShow = _buf_.ReadInt()
462
     }
406
     }
463
 
407
 
464
     /**
408
     /**
465
-     * 主键id
466
-     */
467
-    readonly idx: number
468
-    /**
469
-     * 备注
470
-     */
471
-    readonly remark: string
472
-    /**
473
-     * 技能ID
474
-     */
475
-    readonly skillId: number
476
-    /**
477
-     * 类型
478
-     */
479
-    readonly skillType: number
480
-    /**
481
-     * 冷却时间
482
-     */
483
-    readonly cd: number
484
-    /**
485
-     * 格子范围
486
-     */
487
-    readonly gridRange: number
488
-    /**
489
-     * 攻击距离
409
+     * 英雄ID
490
      */
410
      */
491
-    readonly range: number
411
+    readonly id: number
492
     /**
412
     /**
493
-     * 技能触发条件
413
+     * 品质
494
      */
414
      */
495
-    readonly triggerCondition: string
415
+    readonly quality: Quality
496
     /**
416
     /**
497
-     * 效果列表
417
+     * 攻击类型
498
      */
418
      */
499
-    readonly effects: string
419
+    readonly attacktype: AttackType
500
     /**
420
     /**
501
-     * buff
421
+     * 名字
502
      */
422
      */
503
-    readonly buffId: string
423
+    readonly name: string
504
     /**
424
     /**
505
-     * 技能名字
425
+     * 技能列表
506
      */
426
      */
507
-    readonly skillName: string
427
+    readonly skills: number[]
508
     /**
428
     /**
509
-     * 技能描述
429
+     * 合成英雄公式
510
      */
430
      */
511
-    readonly desc: string
431
+    readonly composeheros: number[]
512
     /**
432
     /**
513
-     * 冲突的技能id
433
+     * 是否测试
514
      */
434
      */
515
-    readonly conflictSkillId: number
435
+    readonly isShow: number
516
 
436
 
517
     resolve(tables:Tables) {
437
     resolve(tables:Tables) {
518
         
438
         
@@ -522,12 +442,6 @@ export class Skill {
522
         
442
         
523
         
443
         
524
         
444
         
525
-        
526
-        
527
-        
528
-        
529
-        
530
-        
531
     }
445
     }
532
 }
446
 }
533
 
447
 
@@ -535,20 +449,12 @@ export class Skill {
535
 
449
 
536
 
450
 
537
 
451
 
538
-export class Wave {
452
+export class BattleSpacialSummonWeight {
539
 
453
 
540
     constructor(_buf_: ByteBuf) {
454
     constructor(_buf_: ByteBuf) {
541
         this.idx = _buf_.ReadInt()
455
         this.idx = _buf_.ReadInt()
542
-        this.waveIndex = _buf_.ReadInt()
543
-        this.level = _buf_.ReadInt()
544
-        this.model = _buf_.ReadInt()
545
-        this.counter = _buf_.ReadInt()
546
-        this.hp = _buf_.ReadInt()
547
-        this.speed = _buf_.ReadInt()
548
-        this.gap = _buf_.ReadInt()
549
-        this.isboss = _buf_.ReadInt()
550
-        this.perAddCoid = _buf_.ReadInt()
551
-        this.perAddGem = _buf_.ReadInt()
456
+        this.quality = _buf_.ReadInt()
457
+        this.weight = _buf_.ReadInt()
552
     }
458
     }
553
 
459
 
554
     /**
460
     /**
@@ -556,58 +462,50 @@ export class Wave {
556
      */
462
      */
557
     readonly idx: number
463
     readonly idx: number
558
     /**
464
     /**
559
-     * 波数
560
-     */
561
-    readonly waveIndex: number
562
-    /**
563
-     * 难度
564
-     */
565
-    readonly level: number
566
-    /**
567
-     * 怪物模型
568
-     */
569
-    readonly model: number
570
-    /**
571
-     * 数量
572
-     */
573
-    readonly counter: number
574
-    /**
575
-     * 血量
576
-     */
577
-    readonly hp: number
578
-    /**
579
-     * 速度
465
+     * 品质
580
      */
466
      */
581
-    readonly speed: number
467
+    readonly quality: Quality
582
     /**
468
     /**
583
-     * 间距
469
+     * 权重
584
      */
470
      */
585
-    readonly gap: number
471
+    readonly weight: number
472
+
473
+    resolve(tables:Tables) {
474
+        
475
+        
476
+        
477
+    }
478
+}
479
+
480
+
481
+
482
+
483
+
484
+export class Item {
485
+
486
+    constructor(_buf_: ByteBuf) {
487
+        this.idx = _buf_.ReadInt()
488
+        this.type = _buf_.ReadInt()
489
+        this.name = _buf_.ReadString()
490
+    }
491
+
586
     /**
492
     /**
587
-     * 是否是boss
493
+     * 道具ID
588
      */
494
      */
589
-    readonly isboss: number
495
+    readonly idx: number
590
     /**
496
     /**
591
-     * 每只怪增加局内金币
497
+     * 类型
592
      */
498
      */
593
-    readonly perAddCoid: number
499
+    readonly type: number
594
     /**
500
     /**
595
-     * 每只怪增加局内宝石
501
+     * 道具名
596
      */
502
      */
597
-    readonly perAddGem: number
503
+    readonly name: string
598
 
504
 
599
     resolve(tables:Tables) {
505
     resolve(tables:Tables) {
600
         
506
         
601
         
507
         
602
         
508
         
603
-        
604
-        
605
-        
606
-        
607
-        
608
-        
609
-        
610
-        
611
     }
509
     }
612
 }
510
 }
613
 
511
 
@@ -659,31 +557,123 @@ export class WaveRewards {
659
 
557
 
660
 
558
 
661
 
559
 
662
-export class Item {
560
+export class System {
663
 
561
 
664
     constructor(_buf_: ByteBuf) {
562
     constructor(_buf_: ByteBuf) {
665
         this.idx = _buf_.ReadInt()
563
         this.idx = _buf_.ReadInt()
666
-        this.type = _buf_.ReadInt()
667
-        this.name = _buf_.ReadString()
564
+        this.mainKey = _buf_.ReadString()
565
+        this.value = _buf_.ReadString()
668
     }
566
     }
669
 
567
 
670
     /**
568
     /**
671
-     * 道具ID
569
+     * IDX
570
+     */
571
+    readonly idx: number
572
+    /**
573
+     * 常量主键
574
+     */
575
+    readonly mainKey: string
576
+    /**
577
+     * 常量值
578
+     */
579
+    readonly value: string
580
+
581
+    resolve(tables:Tables) {
582
+        
583
+        
584
+        
585
+    }
586
+}
587
+
588
+
589
+
590
+
591
+
592
+export class Skill {
593
+
594
+    constructor(_buf_: ByteBuf) {
595
+        this.idx = _buf_.ReadInt()
596
+        this.remark = _buf_.ReadString()
597
+        this.skillId = _buf_.ReadInt()
598
+        this.skillType = _buf_.ReadInt()
599
+        this.cd = _buf_.ReadInt()
600
+        this.gridRange = _buf_.ReadInt()
601
+        this.range = _buf_.ReadInt()
602
+        this.triggerCondition = _buf_.ReadString()
603
+        this.effects = _buf_.ReadString()
604
+        this.buffId = _buf_.ReadString()
605
+        this.skillName = _buf_.ReadString()
606
+        this.desc = _buf_.ReadString()
607
+        this.conflictSkillId = _buf_.ReadInt()
608
+    }
609
+
610
+    /**
611
+     * 主键id
672
      */
612
      */
673
     readonly idx: number
613
     readonly idx: number
674
     /**
614
     /**
615
+     * 备注
616
+     */
617
+    readonly remark: string
618
+    /**
619
+     * 技能ID
620
+     */
621
+    readonly skillId: number
622
+    /**
675
      * 类型
623
      * 类型
676
      */
624
      */
677
-    readonly type: number
625
+    readonly skillType: number
678
     /**
626
     /**
679
-     * 道具名
627
+     * 冷却时间
680
      */
628
      */
681
-    readonly name: string
629
+    readonly cd: number
630
+    /**
631
+     * 格子范围
632
+     */
633
+    readonly gridRange: number
634
+    /**
635
+     * 攻击距离
636
+     */
637
+    readonly range: number
638
+    /**
639
+     * 技能触发条件
640
+     */
641
+    readonly triggerCondition: string
642
+    /**
643
+     * 效果列表
644
+     */
645
+    readonly effects: string
646
+    /**
647
+     * buff
648
+     */
649
+    readonly buffId: string
650
+    /**
651
+     * 技能名字
652
+     */
653
+    readonly skillName: string
654
+    /**
655
+     * 技能描述
656
+     */
657
+    readonly desc: string
658
+    /**
659
+     * 冲突的技能id
660
+     */
661
+    readonly conflictSkillId: number
682
 
662
 
683
     resolve(tables:Tables) {
663
     resolve(tables:Tables) {
684
         
664
         
685
         
665
         
686
         
666
         
667
+        
668
+        
669
+        
670
+        
671
+        
672
+        
673
+        
674
+        
675
+        
676
+        
687
     }
677
     }
688
 }
678
 }
689
 
679
 
@@ -691,31 +681,37 @@ export class Item {
691
 
681
 
692
 
682
 
693
 
683
 
694
-export class System {
684
+export class HeroQualityWorth {
695
 
685
 
696
     constructor(_buf_: ByteBuf) {
686
     constructor(_buf_: ByteBuf) {
697
         this.idx = _buf_.ReadInt()
687
         this.idx = _buf_.ReadInt()
698
-        this.mainKey = _buf_.ReadString()
699
-        this.value = _buf_.ReadString()
688
+        this.quality = _buf_.ReadInt()
689
+        this.gold = _buf_.ReadInt()
690
+        this.gem = _buf_.ReadInt()
700
     }
691
     }
701
 
692
 
702
     /**
693
     /**
703
-     * IDX
694
+     * 唯一id
704
      */
695
      */
705
     readonly idx: number
696
     readonly idx: number
706
     /**
697
     /**
707
-     * 常量主键
698
+     * 品质
708
      */
699
      */
709
-    readonly mainKey: string
700
+    readonly quality: Quality
710
     /**
701
     /**
711
-     * 常量值
702
+     * 局内金币
712
      */
703
      */
713
-    readonly value: string
704
+    readonly gold: number
705
+    /**
706
+     * 局内宝石
707
+     */
708
+    readonly gem: number
714
 
709
 
715
     resolve(tables:Tables) {
710
     resolve(tables:Tables) {
716
         
711
         
717
         
712
         
718
         
713
         
714
+        
719
     }
715
     }
720
 }
716
 }
721
 
717
 
@@ -755,13 +751,20 @@ export class BattleSummonWeight {
755
 
751
 
756
 
752
 
757
 
753
 
758
-export class HeroQualityWorth {
754
+export class Wave {
759
 
755
 
760
     constructor(_buf_: ByteBuf) {
756
     constructor(_buf_: ByteBuf) {
761
         this.idx = _buf_.ReadInt()
757
         this.idx = _buf_.ReadInt()
762
-        this.quality = _buf_.ReadInt()
763
-        this.gold = _buf_.ReadInt()
764
-        this.gem = _buf_.ReadInt()
758
+        this.waveIndex = _buf_.ReadInt()
759
+        this.level = _buf_.ReadInt()
760
+        this.model = _buf_.ReadInt()
761
+        this.counter = _buf_.ReadInt()
762
+        this.hp = _buf_.ReadInt()
763
+        this.speed = _buf_.ReadInt()
764
+        this.gap = _buf_.ReadInt()
765
+        this.isboss = _buf_.ReadInt()
766
+        this.perAddCoid = _buf_.ReadInt()
767
+        this.perAddGem = _buf_.ReadInt()
765
     }
768
     }
766
 
769
 
767
     /**
770
     /**
@@ -769,23 +772,58 @@ export class HeroQualityWorth {
769
      */
772
      */
770
     readonly idx: number
773
     readonly idx: number
771
     /**
774
     /**
772
-     * 品质
775
+     * 波数
773
      */
776
      */
774
-    readonly quality: Quality
777
+    readonly waveIndex: number
775
     /**
778
     /**
776
-     * 局内金币
779
+     * 难度
777
      */
780
      */
778
-    readonly gold: number
781
+    readonly level: number
779
     /**
782
     /**
780
-     * 局内宝石
783
+     * 怪物模型
781
      */
784
      */
782
-    readonly gem: number
785
+    readonly model: number
786
+    /**
787
+     * 数量
788
+     */
789
+    readonly counter: number
790
+    /**
791
+     * 血量
792
+     */
793
+    readonly hp: number
794
+    /**
795
+     * 速度
796
+     */
797
+    readonly speed: number
798
+    /**
799
+     * 间距
800
+     */
801
+    readonly gap: number
802
+    /**
803
+     * 是否是boss
804
+     */
805
+    readonly isboss: number
806
+    /**
807
+     * 每只怪增加局内金币
808
+     */
809
+    readonly perAddCoid: number
810
+    /**
811
+     * 每只怪增加局内宝石
812
+     */
813
+    readonly perAddGem: number
783
 
814
 
784
     resolve(tables:Tables) {
815
     resolve(tables:Tables) {
785
         
816
         
786
         
817
         
787
         
818
         
788
         
819
         
820
+        
821
+        
822
+        
823
+        
824
+        
825
+        
826
+        
789
     }
827
     }
790
 }
828
 }
791
 
829
 
@@ -1216,6 +1254,42 @@ export class TbBattleSummonWeight {
1216
 
1254
 
1217
 
1255
 
1218
 
1256
 
1257
+/**
1258
+ * 赌博召唤权重表.xlsx
1259
+ */
1260
+export class TbBattleSpacialSummonWeight {
1261
+    private _dataMap: Map<number, BattleSpacialSummonWeight>
1262
+    private _dataList: BattleSpacialSummonWeight[]
1263
+    constructor(_buf_: ByteBuf) {
1264
+        this._dataMap = new Map<number, BattleSpacialSummonWeight>()
1265
+        this._dataList = []
1266
+        for(let n = _buf_.ReadInt(); n > 0; n--) {
1267
+            let _v: BattleSpacialSummonWeight
1268
+            _v = new BattleSpacialSummonWeight(_buf_)
1269
+            this._dataList.push(_v)
1270
+            this._dataMap.set(_v.idx, _v)
1271
+        }
1272
+    }
1273
+
1274
+    getDataMap(): Map<number, BattleSpacialSummonWeight> { return this._dataMap; }
1275
+    getDataList(): BattleSpacialSummonWeight[] { return this._dataList; }
1276
+
1277
+    get(key: number): BattleSpacialSummonWeight | undefined {
1278
+        return this._dataMap.get(key); 
1279
+    }
1280
+
1281
+    resolve(tables:Tables) {
1282
+        for(let  data of this._dataList)
1283
+        {
1284
+            data.resolve(tables)
1285
+        }
1286
+    }
1287
+
1288
+}
1289
+
1290
+
1291
+
1292
+
1219
 type ByteBufLoader = (file: string) => ByteBuf
1293
 type ByteBufLoader = (file: string) => ByteBuf
1220
 
1294
 
1221
 export class Tables {
1295
 export class Tables {
@@ -1269,6 +1343,11 @@ export class Tables {
1269
      * 战斗召唤权重表.xlsx
1343
      * 战斗召唤权重表.xlsx
1270
      */
1344
      */
1271
     get TbBattleSummonWeight(): TbBattleSummonWeight  { return this._TbBattleSummonWeight;}
1345
     get TbBattleSummonWeight(): TbBattleSummonWeight  { return this._TbBattleSummonWeight;}
1346
+    private _TbBattleSpacialSummonWeight: TbBattleSpacialSummonWeight
1347
+    /**
1348
+     * 赌博召唤权重表.xlsx
1349
+     */
1350
+    get TbBattleSpacialSummonWeight(): TbBattleSpacialSummonWeight  { return this._TbBattleSpacialSummonWeight;}
1272
 
1351
 
1273
     static getTableNames(): string[] {
1352
     static getTableNames(): string[] {
1274
         let names: string[] = [];
1353
         let names: string[] = [];
@@ -1282,6 +1361,7 @@ export class Tables {
1282
         names.push('tbsystem');
1361
         names.push('tbsystem');
1283
         names.push('tbheroqualityworth');
1362
         names.push('tbheroqualityworth');
1284
         names.push('tbbattlesummonweight');
1363
         names.push('tbbattlesummonweight');
1364
+        names.push('tbbattlespacialsummonweight');
1285
         return names;
1365
         return names;
1286
     }
1366
     }
1287
 
1367
 
@@ -1296,6 +1376,7 @@ export class Tables {
1296
         this._TbSystem = new TbSystem(loader('tbsystem'))
1376
         this._TbSystem = new TbSystem(loader('tbsystem'))
1297
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1377
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1298
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1378
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1379
+        this._TbBattleSpacialSummonWeight = new TbBattleSpacialSummonWeight(loader('tbbattlespacialsummonweight'))
1299
 
1380
 
1300
         this._TbHero.resolve(this)
1381
         this._TbHero.resolve(this)
1301
         this._TbHeroLevel.resolve(this)
1382
         this._TbHeroLevel.resolve(this)
@@ -1307,6 +1388,7 @@ export class Tables {
1307
         this._TbSystem.resolve(this)
1388
         this._TbSystem.resolve(this)
1308
         this._TbHeroQualityWorth.resolve(this)
1389
         this._TbHeroQualityWorth.resolve(this)
1309
         this._TbBattleSummonWeight.resolve(this)
1390
         this._TbBattleSummonWeight.resolve(this)
1391
+        this._TbBattleSpacialSummonWeight.resolve(this)
1310
     }
1392
     }
1311
 }
1393
 }
1312
 
1394