Browse Source

auto config export

Hua 11 months ago
parent
commit
40227a4515
1 changed files with 170 additions and 170 deletions
  1. 170 170
      schema/schema.ts

+ 170 - 170
schema/schema.ts

@@ -289,36 +289,66 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Hero {
292
+export class Wave {
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.waveIndex = _buf_.ReadInt()
297
+        this.level = _buf_.ReadInt()
298
+        this.model = _buf_.ReadInt()
299
+        this.counter = _buf_.ReadInt()
300
+        this.hp = _buf_.ReadInt()
301
+        this.speed = _buf_.ReadInt()
302
+        this.gap = _buf_.ReadInt()
303
+        this.isboss = _buf_.ReadInt()
304
+        this.perAddCoid = _buf_.ReadInt()
305
+        this.perAddGem = _buf_.ReadInt()
300 306
     }
301 307
 
302 308
     /**
303
-     * 英雄ID
309
+     * 唯一id
304 310
      */
305
-    readonly id: number
311
+    readonly idx: number
306 312
     /**
307
-     * 品质
313
+     * 波数
308 314
      */
309
-    readonly quality: Quality
315
+    readonly waveIndex: number
310 316
     /**
311
-     * 攻击类型
317
+     * 难度
312 318
      */
313
-    readonly attacktype: AttackType
319
+    readonly level: number
314 320
     /**
315
-     * 名字
321
+     * 怪物模型
316 322
      */
317
-    readonly name: string
323
+    readonly model: number
318 324
     /**
319
-     * 技能列表
325
+     * 数量
320 326
      */
321
-    readonly skills: number[]
327
+    readonly counter: number
328
+    /**
329
+     * 血量
330
+     */
331
+    readonly hp: number
332
+    /**
333
+     * 速度
334
+     */
335
+    readonly speed: number
336
+    /**
337
+     * 间距
338
+     */
339
+    readonly gap: number
340
+    /**
341
+     * 是否是boss
342
+     */
343
+    readonly isboss: number
344
+    /**
345
+     * 每只怪增加局内金币
346
+     */
347
+    readonly perAddCoid: number
348
+    /**
349
+     * 每只怪增加局内宝石
350
+     */
351
+    readonly perAddGem: number
322 352
 
323 353
     resolve(tables:Tables) {
324 354
         
@@ -326,6 +356,12 @@ export class Hero {
326 356
         
327 357
         
328 358
         
359
+        
360
+        
361
+        
362
+        
363
+        
364
+        
329 365
     }
330 366
 }
331 367
 
@@ -333,60 +369,106 @@ export class Hero {
333 369
 
334 370
 
335 371
 
336
-export class HeroLevel {
372
+export class WaveRewards {
337 373
 
338 374
     constructor(_buf_: ByteBuf) {
339 375
         this.idx = _buf_.ReadInt()
340
-        this.id = _buf_.ReadInt()
376
+        this.waveMin = _buf_.ReadInt()
377
+        this.waveMax = _buf_.ReadInt()
341 378
         this.level = _buf_.ReadInt()
342
-        { 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);}}
343
-        this.unlockSkillDesc = _buf_.ReadString()
344
-        { 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);}}
345
-        this.atk = _buf_.ReadInt()
346
-        this.atkSpeed = _buf_.ReadInt()
379
+        { 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);}}
347 380
     }
348 381
 
349 382
     /**
350
-     * 序號
383
+     * idx
351 384
      */
352 385
     readonly idx: number
353 386
     /**
354
-     * 英雄ID
387
+     * 波数下限
355 388
      */
356
-    readonly id: number
389
+    readonly waveMin: number
357 390
     /**
358
-     * 等级
391
+     * 波数上限
359 392
      */
360
-    readonly level: number
393
+    readonly waveMax: number
361 394
     /**
362
-     * 英雄解锁技能
395
+     * 难度
363 396
      */
364
-    readonly unlockSkill: number[]
397
+    readonly level: number
365 398
     /**
366
-     * 解锁技能描述
399
+     * 奖励列表
367 400
      */
368
-    readonly unlockSkillDesc: string
401
+    readonly rewards: Common.Reward[]
402
+
403
+    resolve(tables:Tables) {
404
+        
405
+        
406
+        
407
+        
408
+        for (let _e of this.rewards) { _e?.resolve(tables); }
409
+    }
410
+}
411
+
412
+
413
+
414
+
415
+
416
+export class System {
417
+
418
+    constructor(_buf_: ByteBuf) {
419
+        this.idx = _buf_.ReadInt()
420
+        this.mainKey = _buf_.ReadString()
421
+        this.value = _buf_.ReadString()
422
+    }
423
+
369 424
     /**
370
-     * 升级消耗
425
+     * IDX
371 426
      */
372
-    readonly upgradeconsume: Common.Cost[]
427
+    readonly idx: number
373 428
     /**
374
-     * 攻击力
429
+     * 常量主键
375 430
      */
376
-    readonly atk: number
431
+    readonly mainKey: string
377 432
     /**
378
-     * 攻击速度
433
+     * 常量值
379 434
      */
380
-    readonly atkSpeed: number
435
+    readonly value: string
381 436
 
382 437
     resolve(tables:Tables) {
383 438
         
384 439
         
385 440
         
441
+    }
442
+}
443
+
444
+
445
+
446
+
447
+
448
+export class Item {
449
+
450
+    constructor(_buf_: ByteBuf) {
451
+        this.idx = _buf_.ReadInt()
452
+        this.type = _buf_.ReadInt()
453
+        this.name = _buf_.ReadString()
454
+    }
455
+
456
+    /**
457
+     * 道具ID
458
+     */
459
+    readonly idx: number
460
+    /**
461
+     * 类型
462
+     */
463
+    readonly type: number
464
+    /**
465
+     * 道具名
466
+     */
467
+    readonly name: string
468
+
469
+    resolve(tables:Tables) {
386 470
         
387 471
         
388
-        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
389
-        
390 472
         
391 473
     }
392 474
 }
@@ -481,66 +563,36 @@ export class Skill {
481 563
 
482 564
 
483 565
 
484
-export class Wave {
566
+export class Hero {
485 567
 
486 568
     constructor(_buf_: ByteBuf) {
487
-        this.idx = _buf_.ReadInt()
488
-        this.waveIndex = _buf_.ReadInt()
489
-        this.level = _buf_.ReadInt()
490
-        this.model = _buf_.ReadInt()
491
-        this.counter = _buf_.ReadInt()
492
-        this.hp = _buf_.ReadInt()
493
-        this.speed = _buf_.ReadInt()
494
-        this.gap = _buf_.ReadInt()
495
-        this.isboss = _buf_.ReadInt()
496
-        this.perAddCoid = _buf_.ReadInt()
497
-        this.perAddGem = _buf_.ReadInt()
569
+        this.id = _buf_.ReadInt()
570
+        this.quality = _buf_.ReadInt()
571
+        this.attacktype = _buf_.ReadInt()
572
+        this.name = _buf_.ReadString()
573
+        { 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);}}
498 574
     }
499 575
 
500 576
     /**
501
-     * 唯一id
502
-     */
503
-    readonly idx: number
504
-    /**
505
-     * 波数
506
-     */
507
-    readonly waveIndex: number
508
-    /**
509
-     * 难度
510
-     */
511
-    readonly level: number
512
-    /**
513
-     * 怪物模型
514
-     */
515
-    readonly model: number
516
-    /**
517
-     * 数量
518
-     */
519
-    readonly counter: number
520
-    /**
521
-     * 血量
522
-     */
523
-    readonly hp: number
524
-    /**
525
-     * 速度
577
+     * 英雄ID
526 578
      */
527
-    readonly speed: number
579
+    readonly id: number
528 580
     /**
529
-     * 间距
581
+     * 品质
530 582
      */
531
-    readonly gap: number
583
+    readonly quality: Quality
532 584
     /**
533
-     * 是否是boss
585
+     * 攻击类型
534 586
      */
535
-    readonly isboss: number
587
+    readonly attacktype: AttackType
536 588
     /**
537
-     * 每只怪增加局内金币
589
+     * 名字
538 590
      */
539
-    readonly perAddCoid: number
591
+    readonly name: string
540 592
     /**
541
-     * 每只怪增加局内宝石
593
+     * 技能列表
542 594
      */
543
-    readonly perAddGem: number
595
+    readonly skills: number[]
544 596
 
545 597
     resolve(tables:Tables) {
546 598
         
@@ -548,56 +600,6 @@ export class Wave {
548 600
         
549 601
         
550 602
         
551
-        
552
-        
553
-        
554
-        
555
-        
556
-        
557
-    }
558
-}
559
-
560
-
561
-
562
-
563
-
564
-export class WaveRewards {
565
-
566
-    constructor(_buf_: ByteBuf) {
567
-        this.idx = _buf_.ReadInt()
568
-        this.waveMin = _buf_.ReadInt()
569
-        this.waveMax = _buf_.ReadInt()
570
-        this.level = _buf_.ReadInt()
571
-        { 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);}}
572
-    }
573
-
574
-    /**
575
-     * idx
576
-     */
577
-    readonly idx: number
578
-    /**
579
-     * 波数下限
580
-     */
581
-    readonly waveMin: number
582
-    /**
583
-     * 波数上限
584
-     */
585
-    readonly waveMax: number
586
-    /**
587
-     * 难度
588
-     */
589
-    readonly level: number
590
-    /**
591
-     * 奖励列表
592
-     */
593
-    readonly rewards: Common.Reward[]
594
-
595
-    resolve(tables:Tables) {
596
-        
597
-        
598
-        
599
-        
600
-        for (let _e of this.rewards) { _e?.resolve(tables); }
601 603
     }
602 604
 }
603 605
 
@@ -709,63 +711,61 @@ export class SkillBuff {
709 711
 
710 712
 
711 713
 
712
-export class System {
714
+export class HeroLevel {
713 715
 
714 716
     constructor(_buf_: ByteBuf) {
715 717
         this.idx = _buf_.ReadInt()
716
-        this.mainKey = _buf_.ReadString()
717
-        this.value = _buf_.ReadString()
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()
718 725
     }
719 726
 
720 727
     /**
721
-     * IDX
728
+     * 序號
722 729
      */
723 730
     readonly idx: number
724 731
     /**
725
-     * 常量主键
732
+     * 英雄ID
726 733
      */
727
-    readonly mainKey: string
734
+    readonly id: number
728 735
     /**
729
-     * 常量值
736
+     * 等级
730 737
      */
731
-    readonly value: string
732
-
733
-    resolve(tables:Tables) {
734
-        
735
-        
736
-        
737
-    }
738
-}
739
-
740
-
741
-
742
-
743
-
744
-export class Item {
745
-
746
-    constructor(_buf_: ByteBuf) {
747
-        this.idx = _buf_.ReadInt()
748
-        this.type = _buf_.ReadInt()
749
-        this.name = _buf_.ReadString()
750
-    }
751
-
738
+    readonly level: number
752 739
     /**
753
-     * 道具ID
740
+     * 英雄解锁技能
754 741
      */
755
-    readonly idx: number
742
+    readonly unlockSkill: number[]
756 743
     /**
757
-     * 类型
744
+     * 解锁技能描述
758 745
      */
759
-    readonly type: number
746
+    readonly unlockSkillDesc: string
760 747
     /**
761
-     * 道具名
748
+     * 升级消耗
762 749
      */
763
-    readonly name: string
750
+    readonly upgradeconsume: Common.Cost[]
751
+    /**
752
+     * 攻击力
753
+     */
754
+    readonly atk: number
755
+    /**
756
+     * 攻击速度
757
+     */
758
+    readonly atkSpeed: number
764 759
 
765 760
     resolve(tables:Tables) {
766 761
         
767 762
         
768 763
         
764
+        
765
+        
766
+        for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
767
+        
768
+        
769 769
     }
770 770
 }
771 771