Bläddra i källkod

auto config export

Hua 1 år sedan
förälder
incheckning
e40976bd99
1 ändrade filer med 190 tillägg och 78 borttagningar
  1. 190 78
      schema/schema.ts

+ 190 - 78
schema/schema.ts

@@ -289,43 +289,37 @@ export class Cost {
289
 
289
 
290
 
290
 
291
 
291
 
292
-export class WaveRewards {
292
+export class HeroQualityWorth {
293
 
293
 
294
     constructor(_buf_: ByteBuf) {
294
     constructor(_buf_: ByteBuf) {
295
         this.idx = _buf_.ReadInt()
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.quality = _buf_.ReadInt()
297
+        this.gold = _buf_.ReadInt()
298
+        this.gem = _buf_.ReadInt()
300
     }
299
     }
301
 
300
 
302
     /**
301
     /**
303
-     * idx
302
+     * 唯一id
304
      */
303
      */
305
     readonly idx: number
304
     readonly idx: number
306
     /**
305
     /**
307
-     * 波数下限
308
-     */
309
-    readonly waveMin: number
310
-    /**
311
-     * 波数上限
306
+     * 品质
312
      */
307
      */
313
-    readonly waveMax: number
308
+    readonly quality: Quality
314
     /**
309
     /**
315
-     * 难度
310
+     * 局内金币
316
      */
311
      */
317
-    readonly level: number
312
+    readonly gold: number
318
     /**
313
     /**
319
-     * 奖励列表
314
+     * 局内宝石
320
      */
315
      */
321
-    readonly rewards: Common.Reward[]
316
+    readonly gem: number
322
 
317
 
323
     resolve(tables:Tables) {
318
     resolve(tables:Tables) {
324
         
319
         
325
         
320
         
326
         
321
         
327
         
322
         
328
-        for (let _e of this.rewards) { _e?.resolve(tables); }
329
     }
323
     }
330
 }
324
 }
331
 
325
 
@@ -333,13 +327,13 @@ export class WaveRewards {
333
 
327
 
334
 
328
 
335
 
329
 
336
-export class HeroQualityWorth {
330
+export class BattleSpacialSummon {
337
 
331
 
338
     constructor(_buf_: ByteBuf) {
332
     constructor(_buf_: ByteBuf) {
339
         this.idx = _buf_.ReadInt()
333
         this.idx = _buf_.ReadInt()
340
         this.quality = _buf_.ReadInt()
334
         this.quality = _buf_.ReadInt()
341
-        this.gold = _buf_.ReadInt()
342
-        this.gem = _buf_.ReadInt()
335
+        this.weight = _buf_.ReadInt()
336
+        this.costgem = _buf_.ReadInt()
343
     }
337
     }
344
 
338
 
345
     /**
339
     /**
@@ -351,13 +345,13 @@ export class HeroQualityWorth {
351
      */
345
      */
352
     readonly quality: Quality
346
     readonly quality: Quality
353
     /**
347
     /**
354
-     * 局内金币
348
+     * 权重
355
      */
349
      */
356
-    readonly gold: number
350
+    readonly weight: number
357
     /**
351
     /**
358
-     * 局内宝石
352
+     * 消耗宝石数量
359
      */
353
      */
360
-    readonly gem: number
354
+    readonly costgem: number
361
 
355
 
362
     resolve(tables:Tables) {
356
     resolve(tables:Tables) {
363
         
357
         
@@ -403,6 +397,38 @@ export class System {
403
 
397
 
404
 
398
 
405
 
399
 
400
+export class BattleSummonWeight {
401
+
402
+    constructor(_buf_: ByteBuf) {
403
+        this.idx = _buf_.ReadInt()
404
+        this.quality = _buf_.ReadInt()
405
+        this.weight = _buf_.ReadInt()
406
+    }
407
+
408
+    /**
409
+     * 唯一id
410
+     */
411
+    readonly idx: number
412
+    /**
413
+     * 品质
414
+     */
415
+    readonly quality: Quality
416
+    /**
417
+     * 权重
418
+     */
419
+    readonly weight: number
420
+
421
+    resolve(tables:Tables) {
422
+        
423
+        
424
+        
425
+    }
426
+}
427
+
428
+
429
+
430
+
431
+
406
 export class Hero {
432
 export class Hero {
407
 
433
 
408
     constructor(_buf_: ByteBuf) {
434
     constructor(_buf_: ByteBuf) {
@@ -551,31 +577,43 @@ export class Skill {
551
 
577
 
552
 
578
 
553
 
579
 
554
-export class Item {
580
+export class WaveRewards {
555
 
581
 
556
     constructor(_buf_: ByteBuf) {
582
     constructor(_buf_: ByteBuf) {
557
         this.idx = _buf_.ReadInt()
583
         this.idx = _buf_.ReadInt()
558
-        this.type = _buf_.ReadInt()
559
-        this.name = _buf_.ReadString()
584
+        this.waveMin = _buf_.ReadInt()
585
+        this.waveMax = _buf_.ReadInt()
586
+        this.level = _buf_.ReadInt()
587
+        { 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);}}
560
     }
588
     }
561
 
589
 
562
     /**
590
     /**
563
-     * 道具ID
591
+     * idx
564
      */
592
      */
565
     readonly idx: number
593
     readonly idx: number
566
     /**
594
     /**
567
-     * 类型
595
+     * 波数下限
568
      */
596
      */
569
-    readonly type: number
597
+    readonly waveMin: number
570
     /**
598
     /**
571
-     * 道具名
599
+     * 波数上限
572
      */
600
      */
573
-    readonly name: string
601
+    readonly waveMax: number
602
+    /**
603
+     * 难度
604
+     */
605
+    readonly level: number
606
+    /**
607
+     * 奖励列表
608
+     */
609
+    readonly rewards: Common.Reward[]
574
 
610
 
575
     resolve(tables:Tables) {
611
     resolve(tables:Tables) {
576
         
612
         
577
         
613
         
578
         
614
         
615
+        
616
+        for (let _e of this.rewards) { _e?.resolve(tables); }
579
     }
617
     }
580
 }
618
 }
581
 
619
 
@@ -583,37 +621,31 @@ export class Item {
583
 
621
 
584
 
622
 
585
 
623
 
586
-export class BattleSpacialSummon {
624
+export class Item {
587
 
625
 
588
     constructor(_buf_: ByteBuf) {
626
     constructor(_buf_: ByteBuf) {
589
         this.idx = _buf_.ReadInt()
627
         this.idx = _buf_.ReadInt()
590
-        this.quality = _buf_.ReadInt()
591
-        this.weight = _buf_.ReadInt()
592
-        this.costgem = _buf_.ReadInt()
628
+        this.type = _buf_.ReadInt()
629
+        this.name = _buf_.ReadString()
593
     }
630
     }
594
 
631
 
595
     /**
632
     /**
596
-     * 唯一id
633
+     * 道具ID
597
      */
634
      */
598
     readonly idx: number
635
     readonly idx: number
599
     /**
636
     /**
600
-     * 品质
601
-     */
602
-    readonly quality: Quality
603
-    /**
604
-     * 权重
637
+     * 类型
605
      */
638
      */
606
-    readonly weight: number
639
+    readonly type: number
607
     /**
640
     /**
608
-     * 消耗宝石数量
641
+     * 道具名
609
      */
642
      */
610
-    readonly costgem: number
643
+    readonly name: string
611
 
644
 
612
     resolve(tables:Tables) {
645
     resolve(tables:Tables) {
613
         
646
         
614
         
647
         
615
         
648
         
616
-        
617
     }
649
     }
618
 }
650
 }
619
 
651
 
@@ -725,38 +757,6 @@ export class SkillBuff {
725
 
757
 
726
 
758
 
727
 
759
 
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
 export class Wave {
760
 export class Wave {
761
 
761
 
762
     constructor(_buf_: ByteBuf) {
762
     constructor(_buf_: ByteBuf) {
@@ -837,6 +837,74 @@ export class Wave {
837
 
837
 
838
 
838
 
839
 
839
 
840
+export class Attr {
841
+
842
+    constructor(_buf_: ByteBuf) {
843
+        this.idx = _buf_.ReadInt()
844
+        this.type = _buf_.ReadString()
845
+        this.showLogic = _buf_.ReadInt()
846
+        this.sort = _buf_.ReadInt()
847
+        this.icon = _buf_.ReadString()
848
+        this.fightFactor = _buf_.ReadFloat()
849
+        this.scoreFactor = _buf_.ReadFloat()
850
+        this.showType = _buf_.ReadInt()
851
+        this.baseValue = _buf_.ReadLongAsNumber()
852
+    }
853
+
854
+    /**
855
+     * 序列
856
+     */
857
+    readonly idx: number
858
+    /**
859
+     * 属性ID
860
+     */
861
+    readonly type: string
862
+    /**
863
+     * 显示逻辑
864
+     */
865
+    readonly showLogic: number
866
+    /**
867
+     * 排序
868
+     */
869
+    readonly sort: number
870
+    /**
871
+     * 图标
872
+     */
873
+    readonly icon: string
874
+    /**
875
+     * 战力系数
876
+     */
877
+    readonly fightFactor: number
878
+    /**
879
+     * 评分系数
880
+     */
881
+    readonly scoreFactor: number
882
+    /**
883
+     * 显示类型
884
+     */
885
+    readonly showType: number
886
+    /**
887
+     * 基础值
888
+     */
889
+    readonly baseValue: number
890
+
891
+    resolve(tables:Tables) {
892
+        
893
+        
894
+        
895
+        
896
+        
897
+        
898
+        
899
+        
900
+        
901
+    }
902
+}
903
+
904
+
905
+
906
+
907
+
840
 export class HeroLevel {
908
 export class HeroLevel {
841
 
909
 
842
     constructor(_buf_: ByteBuf) {
910
     constructor(_buf_: ByteBuf) {
@@ -1302,6 +1370,42 @@ export class TbBattleSpacialSummon {
1302
 
1370
 
1303
 
1371
 
1304
 
1372
 
1373
+/**
1374
+ * 赌博召唤表.xlsx
1375
+ */
1376
+export class TbAttr {
1377
+    private _dataMap: Map<number, Attr>
1378
+    private _dataList: Attr[]
1379
+    constructor(_buf_: ByteBuf) {
1380
+        this._dataMap = new Map<number, Attr>()
1381
+        this._dataList = []
1382
+        for(let n = _buf_.ReadInt(); n > 0; n--) {
1383
+            let _v: Attr
1384
+            _v = new Attr(_buf_)
1385
+            this._dataList.push(_v)
1386
+            this._dataMap.set(_v.idx, _v)
1387
+        }
1388
+    }
1389
+
1390
+    getDataMap(): Map<number, Attr> { return this._dataMap; }
1391
+    getDataList(): Attr[] { return this._dataList; }
1392
+
1393
+    get(key: number): Attr | undefined {
1394
+        return this._dataMap.get(key); 
1395
+    }
1396
+
1397
+    resolve(tables:Tables) {
1398
+        for(let  data of this._dataList)
1399
+        {
1400
+            data.resolve(tables)
1401
+        }
1402
+    }
1403
+
1404
+}
1405
+
1406
+
1407
+
1408
+
1305
 type ByteBufLoader = (file: string) => ByteBuf
1409
 type ByteBufLoader = (file: string) => ByteBuf
1306
 
1410
 
1307
 export class Tables {
1411
 export class Tables {
@@ -1360,6 +1464,11 @@ export class Tables {
1360
      * 赌博召唤表.xlsx
1464
      * 赌博召唤表.xlsx
1361
      */
1465
      */
1362
     get TbBattleSpacialSummon(): TbBattleSpacialSummon  { return this._TbBattleSpacialSummon;}
1466
     get TbBattleSpacialSummon(): TbBattleSpacialSummon  { return this._TbBattleSpacialSummon;}
1467
+    private _TbAttr: TbAttr
1468
+    /**
1469
+     * 赌博召唤表.xlsx
1470
+     */
1471
+    get TbAttr(): TbAttr  { return this._TbAttr;}
1363
 
1472
 
1364
     static getTableNames(): string[] {
1473
     static getTableNames(): string[] {
1365
         let names: string[] = [];
1474
         let names: string[] = [];
@@ -1374,6 +1483,7 @@ export class Tables {
1374
         names.push('tbheroqualityworth');
1483
         names.push('tbheroqualityworth');
1375
         names.push('tbbattlesummonweight');
1484
         names.push('tbbattlesummonweight');
1376
         names.push('tbbattlespacialsummon');
1485
         names.push('tbbattlespacialsummon');
1486
+        names.push('tbattr');
1377
         return names;
1487
         return names;
1378
     }
1488
     }
1379
 
1489
 
@@ -1389,6 +1499,7 @@ export class Tables {
1389
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1499
         this._TbHeroQualityWorth = new TbHeroQualityWorth(loader('tbheroqualityworth'))
1390
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1500
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1391
         this._TbBattleSpacialSummon = new TbBattleSpacialSummon(loader('tbbattlespacialsummon'))
1501
         this._TbBattleSpacialSummon = new TbBattleSpacialSummon(loader('tbbattlespacialsummon'))
1502
+        this._TbAttr = new TbAttr(loader('tbattr'))
1392
 
1503
 
1393
         this._TbHero.resolve(this)
1504
         this._TbHero.resolve(this)
1394
         this._TbHeroLevel.resolve(this)
1505
         this._TbHeroLevel.resolve(this)
@@ -1401,6 +1512,7 @@ export class Tables {
1401
         this._TbHeroQualityWorth.resolve(this)
1512
         this._TbHeroQualityWorth.resolve(this)
1402
         this._TbBattleSummonWeight.resolve(this)
1513
         this._TbBattleSummonWeight.resolve(this)
1403
         this._TbBattleSpacialSummon.resolve(this)
1514
         this._TbBattleSpacialSummon.resolve(this)
1515
+        this._TbAttr.resolve(this)
1404
     }
1516
     }
1405
 }
1517
 }
1406
 
1518