Browse Source

auto config export

Hua 11 months ago
parent
commit
9893959f42
1 changed files with 122 additions and 122 deletions
  1. 122 122
      schema/schema.ts

+ 122 - 122
schema/schema.ts

@@ -289,85 +289,43 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Skill {
292
+export class WaveRewards {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.remark = _buf_.ReadString()
297
-        this.skillId = _buf_.ReadInt()
296
+        this.waveMin = _buf_.ReadInt()
297
+        this.waveMax = _buf_.ReadInt()
298 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()
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);}}
307 300
     }
308 301
 
309 302
     /**
310
-     * 主键id
303
+     * idx
311 304
      */
312 305
     readonly idx: number
313 306
     /**
314
-     * 备注
307
+     * 波数下限
315 308
      */
316
-    readonly remark: string
309
+    readonly waveMin: number
317 310
     /**
318
-     * 技能ID
311
+     * 波数上限
319 312
      */
320
-    readonly skillId: number
313
+    readonly waveMax: number
321 314
     /**
322
-     * 等级
315
+     * 难度
323 316
      */
324 317
     readonly level: number
325 318
     /**
326
-     * 类型
327
-     */
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
319
+     * 奖励列表
355 320
      */
356
-    readonly conflictSkillId: number
321
+    readonly rewards: Common.Reward[]
357 322
 
358 323
     resolve(tables:Tables) {
359 324
         
360 325
         
361 326
         
362 327
         
363
-        
364
-        
365
-        
366
-        
367
-        
368
-        
369
-        
370
-        
328
+        for (let _e of this.rewards) { _e?.resolve(tables); }
371 329
     }
372 330
 }
373 331
 
@@ -479,43 +437,85 @@ export class SkillBuff {
479 437
 
480 438
 
481 439
 
482
-export class WaveRewards {
440
+export class Skill {
483 441
 
484 442
     constructor(_buf_: ByteBuf) {
485 443
         this.idx = _buf_.ReadInt()
486
-        this.waveMin = _buf_.ReadInt()
487
-        this.waveMax = _buf_.ReadInt()
444
+        this.remark = _buf_.ReadString()
445
+        this.skillId = _buf_.ReadInt()
488 446
         this.level = _buf_.ReadInt()
489
-        { 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);}}
447
+        this.skillType = _buf_.ReadInt()
448
+        this.cd = _buf_.ReadInt()
449
+        this.triggerCondition = _buf_.ReadString()
450
+        this.effects = _buf_.ReadString()
451
+        this.buffId = _buf_.ReadString()
452
+        this.skillName = _buf_.ReadString()
453
+        this.desc = _buf_.ReadString()
454
+        this.conflictSkillId = _buf_.ReadInt()
490 455
     }
491 456
 
492 457
     /**
493
-     * idx
458
+     * 主键id
494 459
      */
495 460
     readonly idx: number
496 461
     /**
497
-     * 波数下限
462
+     * 备注
498 463
      */
499
-    readonly waveMin: number
464
+    readonly remark: string
500 465
     /**
501
-     * 波数上限
466
+     * 技能ID
502 467
      */
503
-    readonly waveMax: number
468
+    readonly skillId: number
504 469
     /**
505
-     * 难度
470
+     * 等级
506 471
      */
507 472
     readonly level: number
508 473
     /**
509
-     * 奖励列表
474
+     * 类型
510 475
      */
511
-    readonly rewards: Common.Reward[]
476
+    readonly skillType: number
477
+    /**
478
+     * 冷却时间
479
+     */
480
+    readonly cd: number
481
+    /**
482
+     * 技能触发条件
483
+     */
484
+    readonly triggerCondition: string
485
+    /**
486
+     * 效果列表
487
+     */
488
+    readonly effects: string
489
+    /**
490
+     * buff
491
+     */
492
+    readonly buffId: string
493
+    /**
494
+     * 技能名字
495
+     */
496
+    readonly skillName: string
497
+    /**
498
+     * 技能描述
499
+     */
500
+    readonly desc: string
501
+    /**
502
+     * 冲突的技能id
503
+     */
504
+    readonly conflictSkillId: number
512 505
 
513 506
     resolve(tables:Tables) {
514 507
         
515 508
         
516 509
         
517 510
         
518
-        for (let _e of this.rewards) { _e?.resolve(tables); }
511
+        
512
+        
513
+        
514
+        
515
+        
516
+        
517
+        
518
+        
519 519
     }
520 520
 }
521 521
 
@@ -523,43 +523,31 @@ export class WaveRewards {
523 523
 
524 524
 
525 525
 
526
-export class Hero {
526
+export class System {
527 527
 
528 528
     constructor(_buf_: ByteBuf) {
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);}}
529
+        this.idx = _buf_.ReadInt()
530
+        this.mainKey = _buf_.ReadString()
531
+        this.value = _buf_.ReadString()
534 532
     }
535 533
 
536 534
     /**
537
-     * 英雄ID
538
-     */
539
-    readonly id: number
540
-    /**
541
-     * 品质
542
-     */
543
-    readonly quality: Quality
544
-    /**
545
-     * 攻击类型
535
+     * IDX
546 536
      */
547
-    readonly attacktype: AttackType
537
+    readonly idx: number
548 538
     /**
549
-     * 名字
539
+     * 常量主键
550 540
      */
551
-    readonly name: string
541
+    readonly mainKey: string
552 542
     /**
553
-     * 技能列表
543
+     * 常量值
554 544
      */
555
-    readonly skills: number[]
545
+    readonly value: string
556 546
 
557 547
     resolve(tables:Tables) {
558 548
         
559 549
         
560 550
         
561
-        
562
-        
563 551
     }
564 552
 }
565 553
 
@@ -599,6 +587,50 @@ export class Item {
599 587
 
600 588
 
601 589
 
590
+export class Hero {
591
+
592
+    constructor(_buf_: ByteBuf) {
593
+        this.id = _buf_.ReadInt()
594
+        this.quality = _buf_.ReadInt()
595
+        this.attacktype = _buf_.ReadInt()
596
+        this.name = _buf_.ReadString()
597
+        { 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);}}
598
+    }
599
+
600
+    /**
601
+     * 英雄ID
602
+     */
603
+    readonly id: number
604
+    /**
605
+     * 品质
606
+     */
607
+    readonly quality: Quality
608
+    /**
609
+     * 攻击类型
610
+     */
611
+    readonly attacktype: AttackType
612
+    /**
613
+     * 名字
614
+     */
615
+    readonly name: string
616
+    /**
617
+     * 技能列表
618
+     */
619
+    readonly skills: number[]
620
+
621
+    resolve(tables:Tables) {
622
+        
623
+        
624
+        
625
+        
626
+        
627
+    }
628
+}
629
+
630
+
631
+
632
+
633
+
602 634
 export class Wave {
603 635
 
604 636
     constructor(_buf_: ByteBuf) {
@@ -679,38 +711,6 @@ export class Wave {
679 711
 
680 712
 
681 713
 
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 714
 export class HeroLevel {
715 715
 
716 716
     constructor(_buf_: ByteBuf) {