浏览代码

auto config export

Hua 11 月之前
父节点
当前提交
efd6ac4597
共有 1 个文件被更改,包括 174 次插入174 次删除
  1. 174 174
      schema/schema.ts

+ 174 - 174
schema/schema.ts

@@ -289,36 +289,71 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Hero {
292
+export class Skill {
293 293
 
294 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);}}
295
+        this.idx = _buf_.ReadInt()
296
+        this.remark = _buf_.ReadString()
297
+        this.skillId = _buf_.ReadInt()
298
+        this.level = _buf_.ReadInt()
299
+        this.skillType = _buf_.ReadInt()
300
+        this.cd = _buf_.ReadInt()
301
+        this.triggerCondition = _buf_.ReadString()
302
+        this.effects = _buf_.ReadString()
303
+        this.buffId = _buf_.ReadString()
304
+        this.skillName = _buf_.ReadString()
305
+        this.desc = _buf_.ReadString()
306
+        this.conflictSkillId = _buf_.ReadInt()
300 307
     }
301 308
 
302 309
     /**
303
-     * 英雄ID
310
+     * 主键id
304 311
      */
305
-    readonly id: number
312
+    readonly idx: number
306 313
     /**
307
-     * 品质
314
+     * 备注
308 315
      */
309
-    readonly quality: Quality
316
+    readonly remark: string
310 317
     /**
311
-     * 攻击类型
318
+     * 技能ID
312 319
      */
313
-    readonly attacktype: AttackType
320
+    readonly skillId: number
314 321
     /**
315
-     * 名字
322
+     * 等级
316 323
      */
317
-    readonly name: string
324
+    readonly level: number
318 325
     /**
319
-     * 技能列表
326
+     * 类型
320 327
      */
321
-    readonly skills: number[]
328
+    readonly skillType: number
329
+    /**
330
+     * 冷却时间
331
+     */
332
+    readonly cd: number
333
+    /**
334
+     * 技能触发条件
335
+     */
336
+    readonly triggerCondition: string
337
+    /**
338
+     * 效果列表
339
+     */
340
+    readonly effects: string
341
+    /**
342
+     * buff
343
+     */
344
+    readonly buffId: string
345
+    /**
346
+     * 技能名字
347
+     */
348
+    readonly skillName: string
349
+    /**
350
+     * 技能描述
351
+     */
352
+    readonly desc: string
353
+    /**
354
+     * 冲突的技能id
355
+     */
356
+    readonly conflictSkillId: number
322 357
 
323 358
     resolve(tables:Tables) {
324 359
         
@@ -326,6 +361,13 @@ export class Hero {
326 361
         
327 362
         
328 363
         
364
+        
365
+        
366
+        
367
+        
368
+        
369
+        
370
+        
329 371
     }
330 372
 }
331 373
 
@@ -437,154 +479,6 @@ export class SkillBuff {
437 479
 
438 480
 
439 481
 
440
-export class HeroLevel {
441
-
442
-    constructor(_buf_: ByteBuf) {
443
-        this.idx = _buf_.ReadInt()
444
-        this.id = _buf_.ReadInt()
445
-        this.level = _buf_.ReadInt()
446
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
447
-        this.unlockSkillDesc = _buf_.ReadString()
448
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.upgradeconsume = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Cost(_buf_); this.upgradeconsume.push(_e0);}}
449
-        this.atk = _buf_.ReadInt()
450
-        this.atkSpeed = _buf_.ReadInt()
451
-    }
452
-
453
-    /**
454
-     * 序號
455
-     */
456
-    readonly idx: number
457
-    /**
458
-     * 英雄ID
459
-     */
460
-    readonly id: number
461
-    /**
462
-     * 等级
463
-     */
464
-    readonly level: number
465
-    /**
466
-     * 英雄解锁技能
467
-     */
468
-    readonly unlockSkill: number[]
469
-    /**
470
-     * 解锁技能描述
471
-     */
472
-    readonly unlockSkillDesc: string
473
-    /**
474
-     * 升级消耗
475
-     */
476
-    readonly upgradeconsume: Common.Cost[]
477
-    /**
478
-     * 攻击力
479
-     */
480
-    readonly atk: number
481
-    /**
482
-     * 攻击速度
483
-     */
484
-    readonly atkSpeed: number
485
-
486
-    resolve(tables:Tables) {
487
-        
488
-        
489
-        
490
-        
491
-        
492
-        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
493
-        
494
-        
495
-    }
496
-}
497
-
498
-
499
-
500
-
501
-
502
-export class Skill {
503
-
504
-    constructor(_buf_: ByteBuf) {
505
-        this.idx = _buf_.ReadInt()
506
-        this.remark = _buf_.ReadString()
507
-        this.skillId = _buf_.ReadInt()
508
-        this.level = _buf_.ReadInt()
509
-        this.skillType = _buf_.ReadInt()
510
-        this.cd = _buf_.ReadInt()
511
-        this.triggerCondition = _buf_.ReadString()
512
-        this.effects = _buf_.ReadString()
513
-        this.buffId = _buf_.ReadString()
514
-        this.skillName = _buf_.ReadString()
515
-        this.desc = _buf_.ReadString()
516
-        this.conflictSkillId = _buf_.ReadInt()
517
-    }
518
-
519
-    /**
520
-     * 主键id
521
-     */
522
-    readonly idx: number
523
-    /**
524
-     * 备注
525
-     */
526
-    readonly remark: string
527
-    /**
528
-     * 技能ID
529
-     */
530
-    readonly skillId: number
531
-    /**
532
-     * 等级
533
-     */
534
-    readonly level: number
535
-    /**
536
-     * 类型
537
-     */
538
-    readonly skillType: number
539
-    /**
540
-     * 冷却时间
541
-     */
542
-    readonly cd: number
543
-    /**
544
-     * 技能触发条件
545
-     */
546
-    readonly triggerCondition: string
547
-    /**
548
-     * 效果列表
549
-     */
550
-    readonly effects: string
551
-    /**
552
-     * buff
553
-     */
554
-    readonly buffId: string
555
-    /**
556
-     * 技能名字
557
-     */
558
-    readonly skillName: string
559
-    /**
560
-     * 技能描述
561
-     */
562
-    readonly desc: string
563
-    /**
564
-     * 冲突的技能id
565
-     */
566
-    readonly conflictSkillId: number
567
-
568
-    resolve(tables:Tables) {
569
-        
570
-        
571
-        
572
-        
573
-        
574
-        
575
-        
576
-        
577
-        
578
-        
579
-        
580
-        
581
-    }
582
-}
583
-
584
-
585
-
586
-
587
-
588 482
 export class WaveRewards {
589 483
 
590 484
     constructor(_buf_: ByteBuf) {
@@ -629,31 +523,43 @@ export class WaveRewards {
629 523
 
630 524
 
631 525
 
632
-export class System {
526
+export class Hero {
633 527
 
634 528
     constructor(_buf_: ByteBuf) {
635
-        this.idx = _buf_.ReadInt()
636
-        this.mainKey = _buf_.ReadString()
637
-        this.value = _buf_.ReadString()
529
+        this.id = _buf_.ReadInt()
530
+        this.quality = _buf_.ReadInt()
531
+        this.attacktype = _buf_.ReadInt()
532
+        this.name = _buf_.ReadString()
533
+        { 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);}}
638 534
     }
639 535
 
640 536
     /**
641
-     * IDX
537
+     * 英雄ID
642 538
      */
643
-    readonly idx: number
539
+    readonly id: number
644 540
     /**
645
-     * 常量主键
541
+     * 品质
646 542
      */
647
-    readonly mainKey: string
543
+    readonly quality: Quality
648 544
     /**
649
-     * 常量值
545
+     * 攻击类型
650 546
      */
651
-    readonly value: string
547
+    readonly attacktype: AttackType
548
+    /**
549
+     * 名字
550
+     */
551
+    readonly name: string
552
+    /**
553
+     * 技能列表
554
+     */
555
+    readonly skills: number[]
652 556
 
653 557
     resolve(tables:Tables) {
654 558
         
655 559
         
656 560
         
561
+        
562
+        
657 563
     }
658 564
 }
659 565
 
@@ -773,6 +679,100 @@ export class Wave {
773 679
 
774 680
 
775 681
 
682
+export class System {
683
+
684
+    constructor(_buf_: ByteBuf) {
685
+        this.idx = _buf_.ReadInt()
686
+        this.mainKey = _buf_.ReadString()
687
+        this.value = _buf_.ReadString()
688
+    }
689
+
690
+    /**
691
+     * IDX
692
+     */
693
+    readonly idx: number
694
+    /**
695
+     * 常量主键
696
+     */
697
+    readonly mainKey: string
698
+    /**
699
+     * 常量值
700
+     */
701
+    readonly value: string
702
+
703
+    resolve(tables:Tables) {
704
+        
705
+        
706
+        
707
+    }
708
+}
709
+
710
+
711
+
712
+
713
+
714
+export class HeroLevel {
715
+
716
+    constructor(_buf_: ByteBuf) {
717
+        this.idx = _buf_.ReadInt()
718
+        this.id = _buf_.ReadInt()
719
+        this.level = _buf_.ReadInt()
720
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
721
+        this.unlockSkillDesc = _buf_.ReadString()
722
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.upgradeconsume = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Cost(_buf_); this.upgradeconsume.push(_e0);}}
723
+        this.atk = _buf_.ReadInt()
724
+        this.atkSpeed = _buf_.ReadInt()
725
+    }
726
+
727
+    /**
728
+     * 序號
729
+     */
730
+    readonly idx: number
731
+    /**
732
+     * 英雄ID
733
+     */
734
+    readonly id: number
735
+    /**
736
+     * 等级
737
+     */
738
+    readonly level: number
739
+    /**
740
+     * 英雄解锁技能
741
+     */
742
+    readonly unlockSkill: number[]
743
+    /**
744
+     * 解锁技能描述
745
+     */
746
+    readonly unlockSkillDesc: string
747
+    /**
748
+     * 升级消耗
749
+     */
750
+    readonly upgradeconsume: Common.Cost[]
751
+    /**
752
+     * 攻击力
753
+     */
754
+    readonly atk: number
755
+    /**
756
+     * 攻击速度
757
+     */
758
+    readonly atkSpeed: number
759
+
760
+    resolve(tables:Tables) {
761
+        
762
+        
763
+        
764
+        
765
+        
766
+        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
767
+        
768
+        
769
+    }
770
+}
771
+
772
+
773
+
774
+
775
+
776 776
 
777 777
 /**
778 778
  * 英雄表.xlsx