Hua преди 1 година
родител
ревизия
95e167bd64
променени са 1 файла, в които са добавени 159 реда и са изтрити 159 реда
  1. 159 159
      schema/schema.ts

+ 159 - 159
schema/schema.ts

@@ -263,79 +263,31 @@ export class Reward {
263 263
 
264 264
 
265 265
 
266
-export class Wave {
266
+export class Item {
267 267
 
268 268
     constructor(_buf_: ByteBuf) {
269 269
         this.idx = _buf_.ReadInt()
270
-        this.waveIndex = _buf_.ReadInt()
271
-        this.level = _buf_.ReadInt()
272
-        this.model = _buf_.ReadInt()
273
-        this.counter = _buf_.ReadInt()
274
-        this.hp = _buf_.ReadInt()
275
-        this.speed = _buf_.ReadInt()
276
-        this.gap = _buf_.ReadInt()
277
-        this.isboss = _buf_.ReadInt()
278
-        this.perAddCoid = _buf_.ReadInt()
279
-        this.perAddGem = _buf_.ReadInt()
270
+        this.type = _buf_.ReadInt()
271
+        this.name = _buf_.ReadString()
280 272
     }
281 273
 
282 274
     /**
283
-     * 唯一id
275
+     * 道具ID
284 276
      */
285 277
     readonly idx: number
286 278
     /**
287
-     * 波数
288
-     */
289
-    readonly waveIndex: number
290
-    /**
291
-     * 难度
292
-     */
293
-    readonly level: number
294
-    /**
295
-     * 怪物模型
296
-     */
297
-    readonly model: number
298
-    /**
299
-     * 数量
300
-     */
301
-    readonly counter: number
302
-    /**
303
-     * 血量
304
-     */
305
-    readonly hp: number
306
-    /**
307
-     * 速度
308
-     */
309
-    readonly speed: number
310
-    /**
311
-     * 间距
312
-     */
313
-    readonly gap: number
314
-    /**
315
-     * 是否是boss
316
-     */
317
-    readonly isboss: number
318
-    /**
319
-     * 每只怪增加局内金币
279
+     * 类型
320 280
      */
321
-    readonly perAddCoid: number
281
+    readonly type: number
322 282
     /**
323
-     * 每只怪增加局内宝石
283
+     * 道具名
324 284
      */
325
-    readonly perAddGem: number
285
+    readonly name: string
326 286
 
327 287
     resolve(tables:Tables) {
328 288
         
329 289
         
330 290
         
331
-        
332
-        
333
-        
334
-        
335
-        
336
-        
337
-        
338
-        
339 291
     }
340 292
 }
341 293
 
@@ -429,6 +381,88 @@ export class Skill {
429 381
 
430 382
 
431 383
 
384
+export class System {
385
+
386
+    constructor(_buf_: ByteBuf) {
387
+        this.idx = _buf_.ReadInt()
388
+        this.mainKey = _buf_.ReadString()
389
+        this.value = _buf_.ReadString()
390
+    }
391
+
392
+    /**
393
+     * IDX
394
+     */
395
+    readonly idx: number
396
+    /**
397
+     * 常量主键
398
+     */
399
+    readonly mainKey: string
400
+    /**
401
+     * 常量值
402
+     */
403
+    readonly value: string
404
+
405
+    resolve(tables:Tables) {
406
+        
407
+        
408
+        
409
+    }
410
+}
411
+
412
+
413
+
414
+
415
+
416
+export class HeroLevel {
417
+
418
+    constructor(_buf_: ByteBuf) {
419
+        this.id = _buf_.ReadInt()
420
+        this.level = _buf_.ReadInt()
421
+        { 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);}}
422
+        this.unlockSkillDesc = _buf_.ReadString()
423
+        this.atk = _buf_.ReadInt()
424
+        this.atkSpeed = _buf_.ReadInt()
425
+    }
426
+
427
+    /**
428
+     * 英雄ID
429
+     */
430
+    readonly id: number
431
+    /**
432
+     * 等级
433
+     */
434
+    readonly level: number
435
+    /**
436
+     * 英雄解锁技能
437
+     */
438
+    readonly unlockSkill: number[]
439
+    /**
440
+     * 解锁技能描述
441
+     */
442
+    readonly unlockSkillDesc: string
443
+    /**
444
+     * 攻击力
445
+     */
446
+    readonly atk: number
447
+    /**
448
+     * 攻击速度
449
+     */
450
+    readonly atkSpeed: number
451
+
452
+    resolve(tables:Tables) {
453
+        
454
+        
455
+        
456
+        
457
+        
458
+        
459
+    }
460
+}
461
+
462
+
463
+
464
+
465
+
432 466
 export class SkillBuff {
433 467
 
434 468
     constructor(_buf_: ByteBuf) {
@@ -533,43 +567,43 @@ export class SkillBuff {
533 567
 
534 568
 
535 569
 
536
-export class Hero {
570
+export class WaveRewards {
537 571
 
538 572
     constructor(_buf_: ByteBuf) {
539
-        this.id = _buf_.ReadInt()
540
-        this.quality = _buf_.ReadInt()
541
-        this.attacktype = _buf_.ReadInt()
542
-        this.name = _buf_.ReadString()
543
-        { 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);}}
573
+        this.idx = _buf_.ReadInt()
574
+        this.waveMin = _buf_.ReadInt()
575
+        this.waveMax = _buf_.ReadInt()
576
+        this.level = _buf_.ReadInt()
577
+        { 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);}}
544 578
     }
545 579
 
546 580
     /**
547
-     * 英雄ID
581
+     * idx
548 582
      */
549
-    readonly id: number
583
+    readonly idx: number
550 584
     /**
551
-     * 品质
585
+     * 波数下限
552 586
      */
553
-    readonly quality: Hero.Quality
587
+    readonly waveMin: number
554 588
     /**
555
-     * 攻击类型
589
+     * 波数上限
556 590
      */
557
-    readonly attacktype: Hero.AttackType
591
+    readonly waveMax: number
558 592
     /**
559
-     * 名字
593
+     * 难度
560 594
      */
561
-    readonly name: string
595
+    readonly level: number
562 596
     /**
563
-     * 技能列表
597
+     * 奖励列表
564 598
      */
565
-    readonly skills: number[]
599
+    readonly rewards: Common.Reward[]
566 600
 
567 601
     resolve(tables:Tables) {
568 602
         
569 603
         
570 604
         
571 605
         
572
-        
606
+        for (let _e of this.rewards) { _e?.resolve(tables); }
573 607
     }
574 608
 }
575 609
 
@@ -577,15 +611,14 @@ export class Hero {
577 611
 
578 612
 
579 613
 
580
-export class HeroLevel {
614
+export class Hero {
581 615
 
582 616
     constructor(_buf_: ByteBuf) {
583 617
         this.id = _buf_.ReadInt()
584
-        this.level = _buf_.ReadInt()
585
-        { 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);}}
586
-        this.unlockSkillDesc = _buf_.ReadString()
587
-        this.atk = _buf_.ReadInt()
588
-        this.atkSpeed = _buf_.ReadInt()
618
+        this.quality = _buf_.ReadInt()
619
+        this.attacktype = _buf_.ReadInt()
620
+        this.name = _buf_.ReadString()
621
+        { 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);}}
589 622
     }
590 623
 
591 624
     /**
@@ -593,25 +626,21 @@ export class HeroLevel {
593 626
      */
594 627
     readonly id: number
595 628
     /**
596
-     * 等级
597
-     */
598
-    readonly level: number
599
-    /**
600
-     * 英雄解锁技能
629
+     * 品质
601 630
      */
602
-    readonly unlockSkill: number[]
631
+    readonly quality: Hero.Quality
603 632
     /**
604
-     * 解锁技能描述
633
+     * 攻击类型
605 634
      */
606
-    readonly unlockSkillDesc: string
635
+    readonly attacktype: Hero.AttackType
607 636
     /**
608
-     * 攻击力
637
+     * 名字
609 638
      */
610
-    readonly atk: number
639
+    readonly name: string
611 640
     /**
612
-     * 攻击速度
641
+     * 技能列表
613 642
      */
614
-    readonly atkSpeed: number
643
+    readonly skills: number[]
615 644
 
616 645
     resolve(tables:Tables) {
617 646
         
@@ -619,7 +648,6 @@ export class HeroLevel {
619 648
         
620 649
         
621 650
         
622
-        
623 651
     }
624 652
 }
625 653
 
@@ -627,107 +655,79 @@ export class HeroLevel {
627 655
 
628 656
 
629 657
 
630
-export class Item {
658
+export class Wave {
631 659
 
632 660
     constructor(_buf_: ByteBuf) {
633 661
         this.idx = _buf_.ReadInt()
634
-        this.type = _buf_.ReadInt()
635
-        this.name = _buf_.ReadString()
662
+        this.waveIndex = _buf_.ReadInt()
663
+        this.level = _buf_.ReadInt()
664
+        this.model = _buf_.ReadInt()
665
+        this.counter = _buf_.ReadInt()
666
+        this.hp = _buf_.ReadInt()
667
+        this.speed = _buf_.ReadInt()
668
+        this.gap = _buf_.ReadInt()
669
+        this.isboss = _buf_.ReadInt()
670
+        this.perAddCoid = _buf_.ReadInt()
671
+        this.perAddGem = _buf_.ReadInt()
636 672
     }
637 673
 
638 674
     /**
639
-     * 道具ID
675
+     * 唯一id
640 676
      */
641 677
     readonly idx: number
642 678
     /**
643
-     * 类型
679
+     * 波数
644 680
      */
645
-    readonly type: number
681
+    readonly waveIndex: number
646 682
     /**
647
-     * 道具名
683
+     * 难度
648 684
      */
649
-    readonly name: string
650
-
651
-    resolve(tables:Tables) {
652
-        
653
-        
654
-        
655
-    }
656
-}
657
-
658
-
659
-
660
-
661
-
662
-export class System {
663
-
664
-    constructor(_buf_: ByteBuf) {
665
-        this.idx = _buf_.ReadInt()
666
-        this.mainKey = _buf_.ReadString()
667
-        this.value = _buf_.ReadString()
668
-    }
669
-
685
+    readonly level: number
670 686
     /**
671
-     * IDX
687
+     * 怪物模型
672 688
      */
673
-    readonly idx: number
689
+    readonly model: number
674 690
     /**
675
-     * 常量主键
691
+     * 数量
676 692
      */
677
-    readonly mainKey: string
693
+    readonly counter: number
678 694
     /**
679
-     * 常量值
695
+     * 血量
680 696
      */
681
-    readonly value: string
682
-
683
-    resolve(tables:Tables) {
684
-        
685
-        
686
-        
687
-    }
688
-}
689
-
690
-
691
-
692
-
693
-
694
-export class WaveRewards {
695
-
696
-    constructor(_buf_: ByteBuf) {
697
-        this.idx = _buf_.ReadInt()
698
-        this.waveMin = _buf_.ReadInt()
699
-        this.waveMax = _buf_.ReadInt()
700
-        this.level = _buf_.ReadInt()
701
-        { 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);}}
702
-    }
703
-
697
+    readonly hp: number
704 698
     /**
705
-     * idx
699
+     * 速度
706 700
      */
707
-    readonly idx: number
701
+    readonly speed: number
708 702
     /**
709
-     * 波数下限
703
+     * 间距
710 704
      */
711
-    readonly waveMin: number
705
+    readonly gap: number
712 706
     /**
713
-     * 波数上限
707
+     * 是否是boss
714 708
      */
715
-    readonly waveMax: number
709
+    readonly isboss: number
716 710
     /**
717
-     * 难度
711
+     * 每只怪增加局内金币
718 712
      */
719
-    readonly level: number
713
+    readonly perAddCoid: number
720 714
     /**
721
-     * 奖励列表
715
+     * 每只怪增加局内宝石
722 716
      */
723
-    readonly rewards: Common.Reward[]
717
+    readonly perAddGem: number
724 718
 
725 719
     resolve(tables:Tables) {
726 720
         
727 721
         
728 722
         
729 723
         
730
-        for (let _e of this.rewards) { _e?.resolve(tables); }
724
+        
725
+        
726
+        
727
+        
728
+        
729
+        
730
+        
731 731
     }
732 732
 }
733 733