Explorar o código

auto config export

Hua hai 1 ano
pai
achega
fb7c258399
Modificáronse 1 ficheiros con 131 adicións e 125 borrados
  1. 131 125
      schema/schema.ts

+ 131 - 125
schema/schema.ts

@@ -393,55 +393,37 @@ export class SkillBuff {
393
 
393
 
394
 
394
 
395
 
395
 
396
-export class Hero {
396
+export class HeroQualityWorth {
397
 
397
 
398
     constructor(_buf_: ByteBuf) {
398
     constructor(_buf_: ByteBuf) {
399
-        this.id = _buf_.ReadInt()
399
+        this.idx = _buf_.ReadInt()
400
         this.quality = _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()
401
+        this.gold = _buf_.ReadInt()
402
+        this.gem = _buf_.ReadInt()
406
     }
403
     }
407
 
404
 
408
     /**
405
     /**
409
-     * 英雄ID
406
+     * 唯一id
410
      */
407
      */
411
-    readonly id: number
408
+    readonly idx: number
412
     /**
409
     /**
413
      * 品质
410
      * 品质
414
      */
411
      */
415
     readonly quality: Quality
412
     readonly quality: Quality
416
     /**
413
     /**
417
-     * 攻击类型
418
-     */
419
-    readonly attacktype: AttackType
420
-    /**
421
-     * 名字
422
-     */
423
-    readonly name: string
424
-    /**
425
-     * 技能列表
426
-     */
427
-    readonly skills: number[]
428
-    /**
429
-     * 合成英雄公式
414
+     * 局内金币
430
      */
415
      */
431
-    readonly composeheros: number[]
416
+    readonly gold: number
432
     /**
417
     /**
433
-     * 是否测试
418
+     * 局内宝石
434
      */
419
      */
435
-    readonly isShow: number
420
+    readonly gem: number
436
 
421
 
437
     resolve(tables:Tables) {
422
     resolve(tables:Tables) {
438
         
423
         
439
         
424
         
440
         
425
         
441
         
426
         
442
-        
443
-        
444
-        
445
     }
427
     }
446
 }
428
 }
447
 
429
 
@@ -449,7 +431,7 @@ export class Hero {
449
 
431
 
450
 
432
 
451
 
433
 
452
-export class BattleSpacialSummonWeight {
434
+export class BattleSummonWeight {
453
 
435
 
454
     constructor(_buf_: ByteBuf) {
436
     constructor(_buf_: ByteBuf) {
455
         this.idx = _buf_.ReadInt()
437
         this.idx = _buf_.ReadInt()
@@ -481,6 +463,38 @@ export class BattleSpacialSummonWeight {
481
 
463
 
482
 
464
 
483
 
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
+        
491
+    }
492
+}
493
+
494
+
495
+
496
+
497
+
484
 export class Item {
498
 export class Item {
485
 
499
 
486
     constructor(_buf_: ByteBuf) {
500
     constructor(_buf_: ByteBuf) {
@@ -557,31 +571,55 @@ export class WaveRewards {
557
 
571
 
558
 
572
 
559
 
573
 
560
-export class System {
574
+export class Hero {
561
 
575
 
562
     constructor(_buf_: ByteBuf) {
576
     constructor(_buf_: ByteBuf) {
563
-        this.idx = _buf_.ReadInt()
564
-        this.mainKey = _buf_.ReadString()
565
-        this.value = _buf_.ReadString()
577
+        this.id = _buf_.ReadInt()
578
+        this.quality = _buf_.ReadInt()
579
+        this.attacktype = _buf_.ReadInt()
580
+        this.name = _buf_.ReadString()
581
+        { 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);}}
582
+        { 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);}}
583
+        this.isShow = _buf_.ReadInt()
566
     }
584
     }
567
 
585
 
568
     /**
586
     /**
569
-     * IDX
587
+     * 英雄ID
570
      */
588
      */
571
-    readonly idx: number
589
+    readonly id: number
572
     /**
590
     /**
573
-     * 常量主键
591
+     * 品质
574
      */
592
      */
575
-    readonly mainKey: string
593
+    readonly quality: Quality
576
     /**
594
     /**
577
-     * 常量值
595
+     * 攻击类型
578
      */
596
      */
579
-    readonly value: string
597
+    readonly attacktype: AttackType
598
+    /**
599
+     * 名字
600
+     */
601
+    readonly name: string
602
+    /**
603
+     * 技能列表
604
+     */
605
+    readonly skills: number[]
606
+    /**
607
+     * 合成英雄公式
608
+     */
609
+    readonly composeheros: number[]
610
+    /**
611
+     * 是否测试
612
+     */
613
+    readonly isShow: number
580
 
614
 
581
     resolve(tables:Tables) {
615
     resolve(tables:Tables) {
582
         
616
         
583
         
617
         
584
         
618
         
619
+        
620
+        
621
+        
622
+        
585
     }
623
     }
586
 }
624
 }
587
 
625
 
@@ -681,76 +719,6 @@ export class Skill {
681
 
719
 
682
 
720
 
683
 
721
 
684
-export class HeroQualityWorth {
685
-
686
-    constructor(_buf_: ByteBuf) {
687
-        this.idx = _buf_.ReadInt()
688
-        this.quality = _buf_.ReadInt()
689
-        this.gold = _buf_.ReadInt()
690
-        this.gem = _buf_.ReadInt()
691
-    }
692
-
693
-    /**
694
-     * 唯一id
695
-     */
696
-    readonly idx: number
697
-    /**
698
-     * 品质
699
-     */
700
-    readonly quality: Quality
701
-    /**
702
-     * 局内金币
703
-     */
704
-    readonly gold: number
705
-    /**
706
-     * 局内宝石
707
-     */
708
-    readonly gem: number
709
-
710
-    resolve(tables:Tables) {
711
-        
712
-        
713
-        
714
-        
715
-    }
716
-}
717
-
718
-
719
-
720
-
721
-
722
-export class BattleSummonWeight {
723
-
724
-    constructor(_buf_: ByteBuf) {
725
-        this.idx = _buf_.ReadInt()
726
-        this.quality = _buf_.ReadInt()
727
-        this.weight = _buf_.ReadInt()
728
-    }
729
-
730
-    /**
731
-     * 唯一id
732
-     */
733
-    readonly idx: number
734
-    /**
735
-     * 品质
736
-     */
737
-    readonly quality: Quality
738
-    /**
739
-     * 权重
740
-     */
741
-    readonly weight: number
742
-
743
-    resolve(tables:Tables) {
744
-        
745
-        
746
-        
747
-    }
748
-}
749
-
750
-
751
-
752
-
753
-
754
 export class Wave {
722
 export class Wave {
755
 
723
 
756
     constructor(_buf_: ByteBuf) {
724
     constructor(_buf_: ByteBuf) {
@@ -831,6 +799,44 @@ export class Wave {
831
 
799
 
832
 
800
 
833
 
801
 
802
+export class BattleSpacialSummon {
803
+
804
+    constructor(_buf_: ByteBuf) {
805
+        this.idx = _buf_.ReadInt()
806
+        this.quality = _buf_.ReadInt()
807
+        this.weight = _buf_.ReadInt()
808
+        this.costgem = _buf_.ReadInt()
809
+    }
810
+
811
+    /**
812
+     * 唯一id
813
+     */
814
+    readonly idx: number
815
+    /**
816
+     * 品质
817
+     */
818
+    readonly quality: Quality
819
+    /**
820
+     * 权重
821
+     */
822
+    readonly weight: number
823
+    /**
824
+     * 消耗宝石数量
825
+     */
826
+    readonly costgem: number
827
+
828
+    resolve(tables:Tables) {
829
+        
830
+        
831
+        
832
+        
833
+    }
834
+}
835
+
836
+
837
+
838
+
839
+
834
 export class HeroLevel {
840
 export class HeroLevel {
835
 
841
 
836
     constructor(_buf_: ByteBuf) {
842
     constructor(_buf_: ByteBuf) {
@@ -1255,26 +1261,26 @@ export class TbBattleSummonWeight {
1255
 
1261
 
1256
 
1262
 
1257
 /**
1263
 /**
1258
- * 赌博召唤权重表.xlsx
1264
+ * 赌博召唤表.xlsx
1259
  */
1265
  */
1260
-export class TbBattleSpacialSummonWeight {
1261
-    private _dataMap: Map<number, BattleSpacialSummonWeight>
1262
-    private _dataList: BattleSpacialSummonWeight[]
1266
+export class TbBattleSpacialSummon {
1267
+    private _dataMap: Map<number, BattleSpacialSummon>
1268
+    private _dataList: BattleSpacialSummon[]
1263
     constructor(_buf_: ByteBuf) {
1269
     constructor(_buf_: ByteBuf) {
1264
-        this._dataMap = new Map<number, BattleSpacialSummonWeight>()
1270
+        this._dataMap = new Map<number, BattleSpacialSummon>()
1265
         this._dataList = []
1271
         this._dataList = []
1266
         for(let n = _buf_.ReadInt(); n > 0; n--) {
1272
         for(let n = _buf_.ReadInt(); n > 0; n--) {
1267
-            let _v: BattleSpacialSummonWeight
1268
-            _v = new BattleSpacialSummonWeight(_buf_)
1273
+            let _v: BattleSpacialSummon
1274
+            _v = new BattleSpacialSummon(_buf_)
1269
             this._dataList.push(_v)
1275
             this._dataList.push(_v)
1270
             this._dataMap.set(_v.idx, _v)
1276
             this._dataMap.set(_v.idx, _v)
1271
         }
1277
         }
1272
     }
1278
     }
1273
 
1279
 
1274
-    getDataMap(): Map<number, BattleSpacialSummonWeight> { return this._dataMap; }
1275
-    getDataList(): BattleSpacialSummonWeight[] { return this._dataList; }
1280
+    getDataMap(): Map<number, BattleSpacialSummon> { return this._dataMap; }
1281
+    getDataList(): BattleSpacialSummon[] { return this._dataList; }
1276
 
1282
 
1277
-    get(key: number): BattleSpacialSummonWeight | undefined {
1283
+    get(key: number): BattleSpacialSummon | undefined {
1278
         return this._dataMap.get(key); 
1284
         return this._dataMap.get(key); 
1279
     }
1285
     }
1280
 
1286
 
@@ -1343,11 +1349,11 @@ export class Tables {
1343
      * 战斗召唤权重表.xlsx
1349
      * 战斗召唤权重表.xlsx
1344
      */
1350
      */
1345
     get TbBattleSummonWeight(): TbBattleSummonWeight  { return this._TbBattleSummonWeight;}
1351
     get TbBattleSummonWeight(): TbBattleSummonWeight  { return this._TbBattleSummonWeight;}
1346
-    private _TbBattleSpacialSummonWeight: TbBattleSpacialSummonWeight
1352
+    private _TbBattleSpacialSummon: TbBattleSpacialSummon
1347
     /**
1353
     /**
1348
-     * 赌博召唤权重表.xlsx
1354
+     * 赌博召唤表.xlsx
1349
      */
1355
      */
1350
-    get TbBattleSpacialSummonWeight(): TbBattleSpacialSummonWeight  { return this._TbBattleSpacialSummonWeight;}
1356
+    get TbBattleSpacialSummon(): TbBattleSpacialSummon  { return this._TbBattleSpacialSummon;}
1351
 
1357
 
1352
     static getTableNames(): string[] {
1358
     static getTableNames(): string[] {
1353
         let names: string[] = [];
1359
         let names: string[] = [];
@@ -1361,7 +1367,7 @@ export class Tables {
1361
         names.push('tbsystem');
1367
         names.push('tbsystem');
1362
         names.push('tbheroqualityworth');
1368
         names.push('tbheroqualityworth');
1363
         names.push('tbbattlesummonweight');
1369
         names.push('tbbattlesummonweight');
1364
-        names.push('tbbattlespacialsummonweight');
1370
+        names.push('tbbattlespacialsummon');
1365
         return names;
1371
         return names;
1366
     }
1372
     }
1367
 
1373
 
@@ -1376,7 +1382,7 @@ export class Tables {
1376
         this._TbSystem = new TbSystem(loader('tbsystem'))
1382
         this._TbSystem = new TbSystem(loader('tbsystem'))
1377
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1383
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1378
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1384
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1379
-        this._TbBattleSpacialSummonWeight = new TbBattleSpacialSummonWeight(loader('tbbattlespacialsummonweight'))
1385
+        this._TbBattleSpacialSummon = new TbBattleSpacialSummon(loader('tbbattlespacialsummon'))
1380
 
1386
 
1381
         this._TbHero.resolve(this)
1387
         this._TbHero.resolve(this)
1382
         this._TbHeroLevel.resolve(this)
1388
         this._TbHeroLevel.resolve(this)
@@ -1388,7 +1394,7 @@ export class Tables {
1388
         this._TbSystem.resolve(this)
1394
         this._TbSystem.resolve(this)
1389
         this._TbHeroQualityWorth.resolve(this)
1395
         this._TbHeroQualityWorth.resolve(this)
1390
         this._TbBattleSummonWeight.resolve(this)
1396
         this._TbBattleSummonWeight.resolve(this)
1391
-        this._TbBattleSpacialSummonWeight.resolve(this)
1397
+        this._TbBattleSpacialSummon.resolve(this)
1392
     }
1398
     }
1393
 }
1399
 }
1394
 
1400