Procházet zdrojové kódy

auto config export

Hua před 1 rokem
rodič
revize
cc19be91d2
1 změnil soubory, kde provedl 167 přidání a 167 odebrání
  1. 167 167
      schema/schema.ts

+ 167 - 167
schema/schema.ts

@@ -289,135 +289,43 @@ export class Cost {
289
 
289
 
290
 
290
 
291
 
291
 
292
-export class SkillBuff {
292
+export class WaveRewards {
293
 
293
 
294
     constructor(_buf_: ByteBuf) {
294
     constructor(_buf_: ByteBuf) {
295
         this.idx = _buf_.ReadInt()
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.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);}}
310
     }
300
     }
311
 
301
 
312
     /**
302
     /**
313
-     * buffid
303
+     * idx
314
      */
304
      */
315
     readonly idx: number
305
     readonly idx: number
316
     /**
306
     /**
317
-     * 备注
318
-     */
319
-    readonly remark: string
320
-    /**
321
-     * buff类型
322
-     */
323
-    readonly type: number
324
-    /**
325
-     * buff参数
326
-     */
327
-    readonly parameters: string
328
-    /**
329
-     * 触发概率
330
-     */
331
-    readonly probability: number
332
-    /**
333
-     * 触发条件
334
-     */
335
-    readonly triggerCondition: string
336
-    /**
337
-     * 效果类型
338
-     */
339
-    readonly effectType: number
340
-    /**
341
-     * 持续时间
342
-     */
343
-    readonly duration: number
344
-    /**
345
-     * 叠加次数
346
-     */
347
-    readonly overlapTimes: number
348
-    /**
349
-     * 唯一增益
350
-     */
351
-    readonly uniqueGain: boolean
352
-    /**
353
-     * 是否是光环
354
-     */
355
-    readonly halo: boolean
356
-    /**
357
-     * buff增加的属性
307
+     * 波数下限
358
      */
308
      */
359
-    readonly attributes: string
309
+    readonly waveMin: number
360
     /**
310
     /**
361
-     * 是否合并
311
+     * 波数上限
362
      */
312
      */
363
-    readonly mixBufficon: number
313
+    readonly waveMax: number
364
     /**
314
     /**
365
-     * 效果id
315
+     * 难度
366
      */
316
      */
367
-    readonly skillShowId: number
317
+    readonly level: number
368
     /**
318
     /**
369
-     * 飘字id
319
+     * 奖励列表
370
      */
320
      */
371
-    readonly floatingTextId: number
321
+    readonly rewards: Common.Reward[]
372
 
322
 
373
     resolve(tables:Tables) {
323
     resolve(tables:Tables) {
374
         
324
         
375
         
325
         
376
         
326
         
377
         
327
         
378
-        
379
-        
380
-        
381
-        
382
-        
383
-        
384
-        
385
-        
386
-        
387
-        
388
-        
389
-    }
390
-}
391
-
392
-
393
-
394
-
395
-
396
-export class BattleSummonWeight {
397
-
398
-    constructor(_buf_: ByteBuf) {
399
-        this.idx = _buf_.ReadInt()
400
-        this.quality = _buf_.ReadInt()
401
-        this.weight = _buf_.ReadInt()
402
-    }
403
-
404
-    /**
405
-     * 唯一id
406
-     */
407
-    readonly idx: number
408
-    /**
409
-     * 品质
410
-     */
411
-    readonly quality: Quality
412
-    /**
413
-     * 权重
414
-     */
415
-    readonly weight: number
416
-
417
-    resolve(tables:Tables) {
418
-        
419
-        
420
-        
328
+        for (let _e of this.rewards) { _e?.resolve(tables); }
421
     }
329
     }
422
 }
330
 }
423
 
331
 
@@ -463,26 +371,26 @@ export class HeroQualityWorth {
463
 
371
 
464
 
372
 
465
 
373
 
466
-export class Item {
374
+export class System {
467
 
375
 
468
     constructor(_buf_: ByteBuf) {
376
     constructor(_buf_: ByteBuf) {
469
         this.idx = _buf_.ReadInt()
377
         this.idx = _buf_.ReadInt()
470
-        this.type = _buf_.ReadInt()
471
-        this.name = _buf_.ReadString()
378
+        this.mainKey = _buf_.ReadString()
379
+        this.value = _buf_.ReadString()
472
     }
380
     }
473
 
381
 
474
     /**
382
     /**
475
-     * 道具ID
383
+     * IDX
476
      */
384
      */
477
     readonly idx: number
385
     readonly idx: number
478
     /**
386
     /**
479
-     * 类型
387
+     * 常量主键
480
      */
388
      */
481
-    readonly type: number
389
+    readonly mainKey: string
482
     /**
390
     /**
483
-     * 道具名
391
+     * 常量值
484
      */
392
      */
485
-    readonly name: string
393
+    readonly value: string
486
 
394
 
487
     resolve(tables:Tables) {
395
     resolve(tables:Tables) {
488
         
396
         
@@ -495,31 +403,55 @@ export class Item {
495
 
403
 
496
 
404
 
497
 
405
 
498
-export class System {
406
+export class Hero {
499
 
407
 
500
     constructor(_buf_: ByteBuf) {
408
     constructor(_buf_: ByteBuf) {
501
-        this.idx = _buf_.ReadInt()
502
-        this.mainKey = _buf_.ReadString()
503
-        this.value = _buf_.ReadString()
409
+        this.id = _buf_.ReadInt()
410
+        this.quality = _buf_.ReadInt()
411
+        this.attacktype = _buf_.ReadInt()
412
+        this.name = _buf_.ReadString()
413
+        { 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);}}
414
+        { 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);}}
415
+        this.isShow = _buf_.ReadInt()
504
     }
416
     }
505
 
417
 
506
     /**
418
     /**
507
-     * IDX
419
+     * 英雄ID
508
      */
420
      */
509
-    readonly idx: number
421
+    readonly id: number
510
     /**
422
     /**
511
-     * 常量主键
423
+     * 品质
512
      */
424
      */
513
-    readonly mainKey: string
425
+    readonly quality: Quality
514
     /**
426
     /**
515
-     * 常量值
427
+     * 攻击类型
516
      */
428
      */
517
-    readonly value: string
429
+    readonly attacktype: AttackType
430
+    /**
431
+     * 名字
432
+     */
433
+    readonly name: string
434
+    /**
435
+     * 技能列表
436
+     */
437
+    readonly skills: number[]
438
+    /**
439
+     * 合成英雄公式
440
+     */
441
+    readonly composeheros: number[]
442
+    /**
443
+     * 是否测试
444
+     */
445
+    readonly isShow: number
518
 
446
 
519
     resolve(tables:Tables) {
447
     resolve(tables:Tables) {
520
         
448
         
521
         
449
         
522
         
450
         
451
+        
452
+        
453
+        
454
+        
523
     }
455
     }
524
 }
456
 }
525
 
457
 
@@ -619,43 +551,31 @@ export class Skill {
619
 
551
 
620
 
552
 
621
 
553
 
622
-export class WaveRewards {
554
+export class Item {
623
 
555
 
624
     constructor(_buf_: ByteBuf) {
556
     constructor(_buf_: ByteBuf) {
625
         this.idx = _buf_.ReadInt()
557
         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);}}
558
+        this.type = _buf_.ReadInt()
559
+        this.name = _buf_.ReadString()
630
     }
560
     }
631
 
561
 
632
     /**
562
     /**
633
-     * idx
563
+     * 道具ID
634
      */
564
      */
635
     readonly idx: number
565
     readonly idx: number
636
     /**
566
     /**
637
-     * 波数下限
638
-     */
639
-    readonly waveMin: number
640
-    /**
641
-     * 波数上限
642
-     */
643
-    readonly waveMax: number
644
-    /**
645
-     * 难度
567
+     * 类型
646
      */
568
      */
647
-    readonly level: number
569
+    readonly type: number
648
     /**
570
     /**
649
-     * 奖励列表
571
+     * 道具名
650
      */
572
      */
651
-    readonly rewards: Common.Reward[]
573
+    readonly name: string
652
 
574
 
653
     resolve(tables:Tables) {
575
     resolve(tables:Tables) {
654
         
576
         
655
         
577
         
656
         
578
         
657
-        
658
-        for (let _e of this.rewards) { _e?.resolve(tables); }
659
     }
579
     }
660
 }
580
 }
661
 
581
 
@@ -701,46 +621,86 @@ export class BattleSpacialSummon {
701
 
621
 
702
 
622
 
703
 
623
 
704
-export class Hero {
624
+export class SkillBuff {
705
 
625
 
706
     constructor(_buf_: ByteBuf) {
626
     constructor(_buf_: ByteBuf) {
707
-        this.id = _buf_.ReadInt()
708
-        this.quality = _buf_.ReadInt()
709
-        this.attacktype = _buf_.ReadInt()
710
-        this.name = _buf_.ReadString()
711
-        { 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);}}
712
-        { 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);}}
713
-        this.isShow = _buf_.ReadInt()
627
+        this.idx = _buf_.ReadInt()
628
+        this.remark = _buf_.ReadString()
629
+        this.type = _buf_.ReadInt()
630
+        this.parameters = _buf_.ReadString()
631
+        this.probability = _buf_.ReadInt()
632
+        this.triggerCondition = _buf_.ReadString()
633
+        this.effectType = _buf_.ReadInt()
634
+        this.duration = _buf_.ReadInt()
635
+        this.overlapTimes = _buf_.ReadInt()
636
+        this.uniqueGain = _buf_.ReadBool()
637
+        this.halo = _buf_.ReadBool()
638
+        this.attributes = _buf_.ReadString()
639
+        this.mixBufficon = _buf_.ReadInt()
640
+        this.skillShowId = _buf_.ReadInt()
641
+        this.floatingTextId = _buf_.ReadInt()
714
     }
642
     }
715
 
643
 
716
     /**
644
     /**
717
-     * 英雄ID
645
+     * buffid
718
      */
646
      */
719
-    readonly id: number
647
+    readonly idx: number
720
     /**
648
     /**
721
-     * 品质
649
+     * 备注
722
      */
650
      */
723
-    readonly quality: Quality
651
+    readonly remark: string
724
     /**
652
     /**
725
-     * 攻击类型
653
+     * buff类型
726
      */
654
      */
727
-    readonly attacktype: AttackType
655
+    readonly type: number
728
     /**
656
     /**
729
-     * 名字
657
+     * buff参数
730
      */
658
      */
731
-    readonly name: string
659
+    readonly parameters: string
732
     /**
660
     /**
733
-     * 技能列表
661
+     * 触发概率
734
      */
662
      */
735
-    readonly skills: number[]
663
+    readonly probability: number
736
     /**
664
     /**
737
-     * 合成英雄公式
665
+     * 触发条件
738
      */
666
      */
739
-    readonly composeheros: number[]
667
+    readonly triggerCondition: string
740
     /**
668
     /**
741
-     * 是否测试
669
+     * 效果类型
742
      */
670
      */
743
-    readonly isShow: number
671
+    readonly effectType: number
672
+    /**
673
+     * 持续时间
674
+     */
675
+    readonly duration: number
676
+    /**
677
+     * 叠加次数
678
+     */
679
+    readonly overlapTimes: number
680
+    /**
681
+     * 唯一增益
682
+     */
683
+    readonly uniqueGain: boolean
684
+    /**
685
+     * 是否是光环
686
+     */
687
+    readonly halo: boolean
688
+    /**
689
+     * buff增加的属性
690
+     */
691
+    readonly attributes: string
692
+    /**
693
+     * 是否合并
694
+     */
695
+    readonly mixBufficon: number
696
+    /**
697
+     * 效果id
698
+     */
699
+    readonly skillShowId: number
700
+    /**
701
+     * 飘字id
702
+     */
703
+    readonly floatingTextId: number
744
 
704
 
745
     resolve(tables:Tables) {
705
     resolve(tables:Tables) {
746
         
706
         
@@ -750,6 +710,46 @@ export class Hero {
750
         
710
         
751
         
711
         
752
         
712
         
713
+        
714
+        
715
+        
716
+        
717
+        
718
+        
719
+        
720
+        
721
+    }
722
+}
723
+
724
+
725
+
726
+
727
+
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
     }
753
     }
754
 }
754
 }
755
 
755