Przeglądaj źródła

auto config export

Hua 10 miesięcy temu
rodzic
commit
709f37e24b
1 zmienionych plików z 259 dodań i 171 usunięć
  1. 259 171
      schema/schema.ts

+ 259 - 171
schema/schema.ts

@@ -289,103 +289,113 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class SkillBuff {
292
+export class BattleSpacialSummon {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.remark = _buf_.ReadString()
297
-        this.type = _buf_.ReadInt()
298
-        this.parameters = _buf_.ReadString()
299
-        this.probability = _buf_.ReadInt()
300
-        this.triggerCondition = _buf_.ReadString()
301
-        this.effectType = _buf_.ReadInt()
302
-        this.duration = _buf_.ReadInt()
303
-        this.overlapTimes = _buf_.ReadInt()
304
-        this.uniqueGain = _buf_.ReadBool()
305
-        this.halo = _buf_.ReadBool()
306
-        this.attributes = _buf_.ReadString()
307
-        this.mixBufficon = _buf_.ReadInt()
308
-        this.skillShowId = _buf_.ReadInt()
309
-        this.floatingTextId = _buf_.ReadInt()
296
+        this.quality = _buf_.ReadInt()
297
+        this.weight = _buf_.ReadInt()
298
+        this.costgem = _buf_.ReadInt()
310 299
     }
311 300
 
312 301
     /**
313
-     * buffid
302
+     * 唯一id
314 303
      */
315 304
     readonly idx: number
316 305
     /**
317
-     * 备注
318
-     */
319
-    readonly remark: string
320
-    /**
321
-     * buff类型
322
-     */
323
-    readonly type: number
324
-    /**
325
-     * buff参数
326
-     */
327
-    readonly parameters: string
328
-    /**
329
-     * 触发概率
306
+     * 品质
330 307
      */
331
-    readonly probability: number
308
+    readonly quality: Quality
332 309
     /**
333
-     * 触发条件
310
+     * 权重
334 311
      */
335
-    readonly triggerCondition: string
312
+    readonly weight: number
336 313
     /**
337
-     * 效果类型
314
+     * 消耗宝石数量
338 315
      */
339
-    readonly effectType: number
316
+    readonly costgem: number
317
+
318
+    resolve(tables:Tables) {
319
+        
320
+        
321
+        
322
+        
323
+    }
324
+}
325
+
326
+
327
+
328
+
329
+
330
+export class Item {
331
+
332
+    constructor(_buf_: ByteBuf) {
333
+        this.idx = _buf_.ReadInt()
334
+        this.type = _buf_.ReadInt()
335
+        this.name = _buf_.ReadString()
336
+    }
337
+
340 338
     /**
341
-     * 持续时间
339
+     * 道具ID
342 340
      */
343
-    readonly duration: number
341
+    readonly idx: number
344 342
     /**
345
-     * 叠加次数
343
+     * 类型
346 344
      */
347
-    readonly overlapTimes: number
345
+    readonly type: number
348 346
     /**
349
-     * 唯一增益
347
+     * 道具名
350 348
      */
351
-    readonly uniqueGain: boolean
349
+    readonly name: string
350
+
351
+    resolve(tables:Tables) {
352
+        
353
+        
354
+        
355
+    }
356
+}
357
+
358
+
359
+
360
+
361
+
362
+export class WaveRewards {
363
+
364
+    constructor(_buf_: ByteBuf) {
365
+        this.idx = _buf_.ReadInt()
366
+        this.waveMin = _buf_.ReadInt()
367
+        this.waveMax = _buf_.ReadInt()
368
+        this.level = _buf_.ReadInt()
369
+        { 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);}}
370
+    }
371
+
352 372
     /**
353
-     * 是否是光环
373
+     * idx
354 374
      */
355
-    readonly halo: boolean
375
+    readonly idx: number
356 376
     /**
357
-     * buff增加的属性
377
+     * 波数下限
358 378
      */
359
-    readonly attributes: string
379
+    readonly waveMin: number
360 380
     /**
361
-     * 是否合并
381
+     * 波数上限
362 382
      */
363
-    readonly mixBufficon: number
383
+    readonly waveMax: number
364 384
     /**
365
-     * 效果id
385
+     * 难度
366 386
      */
367
-    readonly skillShowId: number
387
+    readonly level: number
368 388
     /**
369
-     * 飘字id
389
+     * 奖励列表
370 390
      */
371
-    readonly floatingTextId: number
391
+    readonly rewards: Common.Reward[]
372 392
 
373 393
     resolve(tables:Tables) {
374 394
         
375 395
         
376 396
         
377 397
         
378
-        
379
-        
380
-        
381
-        
382
-        
383
-        
384
-        
385
-        
386
-        
387
-        
388
-        
398
+        for (let _e of this.rewards) { _e?.resolve(tables); }
389 399
     }
390 400
 }
391 401
 
@@ -393,31 +403,37 @@ export class SkillBuff {
393 403
 
394 404
 
395 405
 
396
-export class Item {
406
+export class HeroQualityWorth {
397 407
 
398 408
     constructor(_buf_: ByteBuf) {
399 409
         this.idx = _buf_.ReadInt()
400
-        this.type = _buf_.ReadInt()
401
-        this.name = _buf_.ReadString()
410
+        this.quality = _buf_.ReadInt()
411
+        this.gold = _buf_.ReadInt()
412
+        this.gem = _buf_.ReadInt()
402 413
     }
403 414
 
404 415
     /**
405
-     * 道具ID
416
+     * 唯一id
406 417
      */
407 418
     readonly idx: number
408 419
     /**
409
-     * 类型
420
+     * 品质
410 421
      */
411
-    readonly type: number
422
+    readonly quality: Quality
412 423
     /**
413
-     * 道具名
424
+     * 局内金币
414 425
      */
415
-    readonly name: string
426
+    readonly gold: number
427
+    /**
428
+     * 局内宝石
429
+     */
430
+    readonly gem: number
416 431
 
417 432
     resolve(tables:Tables) {
418 433
         
419 434
         
420 435
         
436
+        
421 437
     }
422 438
 }
423 439
 
@@ -425,26 +441,28 @@ export class Item {
425 441
 
426 442
 
427 443
 
428
-export class Skill {
444
+export class SkillBuff {
429 445
 
430 446
     constructor(_buf_: ByteBuf) {
431 447
         this.idx = _buf_.ReadInt()
432 448
         this.remark = _buf_.ReadString()
433
-        this.skillId = _buf_.ReadInt()
434
-        this.skillType = _buf_.ReadInt()
435
-        this.cd = _buf_.ReadInt()
436
-        this.gridRange = _buf_.ReadInt()
437
-        this.range = _buf_.ReadInt()
449
+        this.type = _buf_.ReadInt()
450
+        this.parameters = _buf_.ReadString()
451
+        this.probability = _buf_.ReadInt()
438 452
         this.triggerCondition = _buf_.ReadString()
439
-        this.effects = _buf_.ReadString()
440
-        this.buffId = _buf_.ReadString()
441
-        this.skillName = _buf_.ReadString()
442
-        this.desc = _buf_.ReadString()
443
-        this.conflictSkillId = _buf_.ReadInt()
453
+        this.effectType = _buf_.ReadInt()
454
+        this.duration = _buf_.ReadInt()
455
+        this.overlapTimes = _buf_.ReadInt()
456
+        this.uniqueGain = _buf_.ReadBool()
457
+        this.halo = _buf_.ReadBool()
458
+        this.attributes = _buf_.ReadString()
459
+        this.mixBufficon = _buf_.ReadInt()
460
+        this.skillShowId = _buf_.ReadInt()
461
+        this.floatingTextId = _buf_.ReadInt()
444 462
     }
445 463
 
446 464
     /**
447
-     * 主键id
465
+     * buffid
448 466
      */
449 467
     readonly idx: number
450 468
     /**
@@ -452,49 +470,57 @@ export class Skill {
452 470
      */
453 471
     readonly remark: string
454 472
     /**
455
-     * 技能ID
473
+     * buff类型
456 474
      */
457
-    readonly skillId: number
475
+    readonly type: number
458 476
     /**
459
-     * 类型
477
+     * buff参数
460 478
      */
461
-    readonly skillType: number
479
+    readonly parameters: string
462 480
     /**
463
-     * 冷却时间
481
+     * 触发概率
464 482
      */
465
-    readonly cd: number
483
+    readonly probability: number
466 484
     /**
467
-     * 格子范围
485
+     * 触发条件
468 486
      */
469
-    readonly gridRange: number
487
+    readonly triggerCondition: string
470 488
     /**
471
-     * 攻击距离
489
+     * 效果类型
472 490
      */
473
-    readonly range: number
491
+    readonly effectType: number
474 492
     /**
475
-     * 技能触发条件
493
+     * 持续时间
476 494
      */
477
-    readonly triggerCondition: string
495
+    readonly duration: number
478 496
     /**
479
-     * 效果列表
497
+     * 叠加次数
480 498
      */
481
-    readonly effects: string
499
+    readonly overlapTimes: number
482 500
     /**
483
-     * buff
501
+     * 唯一增益
484 502
      */
485
-    readonly buffId: string
503
+    readonly uniqueGain: boolean
486 504
     /**
487
-     * 技能名字
505
+     * 是否是光环
488 506
      */
489
-    readonly skillName: string
507
+    readonly halo: boolean
490 508
     /**
491
-     * 技能描述
509
+     * buff增加的属性
492 510
      */
493
-    readonly desc: string
511
+    readonly attributes: string
494 512
     /**
495
-     * 冲突的技能id
513
+     * 是否合并
496 514
      */
497
-    readonly conflictSkillId: number
515
+    readonly mixBufficon: number
516
+    /**
517
+     * 效果id
518
+     */
519
+    readonly skillShowId: number
520
+    /**
521
+     * 飘字id
522
+     */
523
+    readonly floatingTextId: number
498 524
 
499 525
     resolve(tables:Tables) {
500 526
         
@@ -510,36 +536,6 @@ export class Skill {
510 536
         
511 537
         
512 538
         
513
-    }
514
-}
515
-
516
-
517
-
518
-
519
-
520
-export class BattleSummonWeight {
521
-
522
-    constructor(_buf_: ByteBuf) {
523
-        this.idx = _buf_.ReadInt()
524
-        this.quality = _buf_.ReadInt()
525
-        this.weight = _buf_.ReadInt()
526
-    }
527
-
528
-    /**
529
-     * 唯一id
530
-     */
531
-    readonly idx: number
532
-    /**
533
-     * 品质
534
-     */
535
-    readonly quality: Quality
536
-    /**
537
-     * 权重
538
-     */
539
-    readonly weight: number
540
-
541
-    resolve(tables:Tables) {
542
-        
543 539
         
544 540
         
545 541
     }
@@ -549,13 +545,14 @@ export class BattleSummonWeight {
549 545
 
550 546
 
551 547
 
552
-export class HeroQualityWorth {
548
+export class StrengthenLevel {
553 549
 
554 550
     constructor(_buf_: ByteBuf) {
555 551
         this.idx = _buf_.ReadInt()
556 552
         this.quality = _buf_.ReadInt()
557
-        this.gold = _buf_.ReadInt()
558
-        this.gem = _buf_.ReadInt()
553
+        this.level = _buf_.ReadInt()
554
+        { 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);}}
555
+        this.attributes = _buf_.ReadString()
559 556
     }
560 557
 
561 558
     /**
@@ -567,18 +564,23 @@ export class HeroQualityWorth {
567 564
      */
568 565
     readonly quality: Quality
569 566
     /**
570
-     * 局内金币
567
+     * 等级
571 568
      */
572
-    readonly gold: number
569
+    readonly level: number
573 570
     /**
574
-     * 局内宝石
571
+     * 消耗
575 572
      */
576
-    readonly gem: number
573
+    readonly rewards: Common.Reward[]
574
+    /**
575
+     * buff增加的属性
576
+     */
577
+    readonly attributes: string
577 578
 
578 579
     resolve(tables:Tables) {
579 580
         
580 581
         
581 582
         
583
+        for (let _e of this.rewards) { _e?.resolve(tables); }
582 584
         
583 585
     }
584 586
 }
@@ -619,43 +621,31 @@ export class System {
619 621
 
620 622
 
621 623
 
622
-export class WaveRewards {
624
+export class BattleSummonWeight {
623 625
 
624 626
     constructor(_buf_: ByteBuf) {
625 627
         this.idx = _buf_.ReadInt()
626
-        this.waveMin = _buf_.ReadInt()
627
-        this.waveMax = _buf_.ReadInt()
628
-        this.level = _buf_.ReadInt()
629
-        { 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);}}
628
+        this.quality = _buf_.ReadInt()
629
+        this.weight = _buf_.ReadInt()
630 630
     }
631 631
 
632 632
     /**
633
-     * idx
633
+     * 唯一id
634 634
      */
635 635
     readonly idx: number
636 636
     /**
637
-     * 波数下限
638
-     */
639
-    readonly waveMin: number
640
-    /**
641
-     * 波数上限
642
-     */
643
-    readonly waveMax: number
644
-    /**
645
-     * 难度
637
+     * 品质
646 638
      */
647
-    readonly level: number
639
+    readonly quality: Quality
648 640
     /**
649
-     * 奖励列表
641
+     * 权重
650 642
      */
651
-    readonly rewards: Common.Reward[]
643
+    readonly weight: number
652 644
 
653 645
     resolve(tables:Tables) {
654 646
         
655 647
         
656 648
         
657
-        
658
-        for (let _e of this.rewards) { _e?.resolve(tables); }
659 649
     }
660 650
 }
661 651
 
@@ -663,37 +653,91 @@ export class WaveRewards {
663 653
 
664 654
 
665 655
 
666
-export class BattleSpacialSummon {
656
+export class Skill {
667 657
 
668 658
     constructor(_buf_: ByteBuf) {
669 659
         this.idx = _buf_.ReadInt()
670
-        this.quality = _buf_.ReadInt()
671
-        this.weight = _buf_.ReadInt()
672
-        this.costgem = _buf_.ReadInt()
660
+        this.remark = _buf_.ReadString()
661
+        this.skillId = _buf_.ReadInt()
662
+        this.skillType = _buf_.ReadInt()
663
+        this.cd = _buf_.ReadInt()
664
+        this.gridRange = _buf_.ReadInt()
665
+        this.range = _buf_.ReadInt()
666
+        this.triggerCondition = _buf_.ReadString()
667
+        this.effects = _buf_.ReadString()
668
+        this.buffId = _buf_.ReadString()
669
+        this.skillName = _buf_.ReadString()
670
+        this.desc = _buf_.ReadString()
671
+        this.conflictSkillId = _buf_.ReadInt()
673 672
     }
674 673
 
675 674
     /**
676
-     * 唯一id
675
+     * 主键id
677 676
      */
678 677
     readonly idx: number
679 678
     /**
680
-     * 品质
679
+     * 备注
681 680
      */
682
-    readonly quality: Quality
681
+    readonly remark: string
683 682
     /**
684
-     * 权重
683
+     * 技能ID
685 684
      */
686
-    readonly weight: number
685
+    readonly skillId: number
687 686
     /**
688
-     * 消耗宝石数量
687
+     * 类型
689 688
      */
690
-    readonly costgem: number
689
+    readonly skillType: number
690
+    /**
691
+     * 冷却时间
692
+     */
693
+    readonly cd: number
694
+    /**
695
+     * 格子范围
696
+     */
697
+    readonly gridRange: number
698
+    /**
699
+     * 攻击距离
700
+     */
701
+    readonly range: number
702
+    /**
703
+     * 技能触发条件
704
+     */
705
+    readonly triggerCondition: string
706
+    /**
707
+     * 效果列表
708
+     */
709
+    readonly effects: string
710
+    /**
711
+     * buff
712
+     */
713
+    readonly buffId: string
714
+    /**
715
+     * 技能名字
716
+     */
717
+    readonly skillName: string
718
+    /**
719
+     * 技能描述
720
+     */
721
+    readonly desc: string
722
+    /**
723
+     * 冲突的技能id
724
+     */
725
+    readonly conflictSkillId: number
691 726
 
692 727
     resolve(tables:Tables) {
693 728
         
694 729
         
695 730
         
696 731
         
732
+        
733
+        
734
+        
735
+        
736
+        
737
+        
738
+        
739
+        
740
+        
697 741
     }
698 742
 }
699 743
 
@@ -1406,6 +1450,42 @@ export class TbAttr {
1406 1450
 
1407 1451
 
1408 1452
 
1453
+/**
1454
+ * 赌博召唤表.xlsx
1455
+ */
1456
+export class TbStrengthenLevel {
1457
+    private _dataMap: Map<number, StrengthenLevel>
1458
+    private _dataList: StrengthenLevel[]
1459
+    constructor(_buf_: ByteBuf) {
1460
+        this._dataMap = new Map<number, StrengthenLevel>()
1461
+        this._dataList = []
1462
+        for(let n = _buf_.ReadInt(); n > 0; n--) {
1463
+            let _v: StrengthenLevel
1464
+            _v = new StrengthenLevel(_buf_)
1465
+            this._dataList.push(_v)
1466
+            this._dataMap.set(_v.idx, _v)
1467
+        }
1468
+    }
1469
+
1470
+    getDataMap(): Map<number, StrengthenLevel> { return this._dataMap; }
1471
+    getDataList(): StrengthenLevel[] { return this._dataList; }
1472
+
1473
+    get(key: number): StrengthenLevel | undefined {
1474
+        return this._dataMap.get(key); 
1475
+    }
1476
+
1477
+    resolve(tables:Tables) {
1478
+        for(let  data of this._dataList)
1479
+        {
1480
+            data.resolve(tables)
1481
+        }
1482
+    }
1483
+
1484
+}
1485
+
1486
+
1487
+
1488
+
1409 1489
 type ByteBufLoader = (file: string) => ByteBuf
1410 1490
 
1411 1491
 export class Tables {
@@ -1469,6 +1549,11 @@ export class Tables {
1469 1549
      * 赌博召唤表.xlsx
1470 1550
      */
1471 1551
     get TbAttr(): TbAttr  { return this._TbAttr;}
1552
+    private _TbStrengthenLevel: TbStrengthenLevel
1553
+    /**
1554
+     * 赌博召唤表.xlsx
1555
+     */
1556
+    get TbStrengthenLevel(): TbStrengthenLevel  { return this._TbStrengthenLevel;}
1472 1557
 
1473 1558
     static getTableNames(): string[] {
1474 1559
         let names: string[] = [];
@@ -1484,6 +1569,7 @@ export class Tables {
1484 1569
         names.push('tbbattlesummonweight');
1485 1570
         names.push('tbbattlespacialsummon');
1486 1571
         names.push('tbattr');
1572
+        names.push('tbstrengthenlevel');
1487 1573
         return names;
1488 1574
     }
1489 1575
 
@@ -1500,6 +1586,7 @@ export class Tables {
1500 1586
         this._TbBattleSummonWeight = new TbBattleSummonWeight(loader('tbbattlesummonweight'))
1501 1587
         this._TbBattleSpacialSummon = new TbBattleSpacialSummon(loader('tbbattlespacialsummon'))
1502 1588
         this._TbAttr = new TbAttr(loader('tbattr'))
1589
+        this._TbStrengthenLevel = new TbStrengthenLevel(loader('tbstrengthenlevel'))
1503 1590
 
1504 1591
         this._TbHero.resolve(this)
1505 1592
         this._TbHeroLevel.resolve(this)
@@ -1513,6 +1600,7 @@ export class Tables {
1513 1600
         this._TbBattleSummonWeight.resolve(this)
1514 1601
         this._TbBattleSpacialSummon.resolve(this)
1515 1602
         this._TbAttr.resolve(this)
1603
+        this._TbStrengthenLevel.resolve(this)
1516 1604
     }
1517 1605
 }
1518 1606