|
@@ -289,38 +289,6 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class Item {
|
293
|
|
-
|
294
|
|
- constructor(_buf_: ByteBuf) {
|
295
|
|
- this.idx = _buf_.ReadInt()
|
296
|
|
- this.type = _buf_.ReadInt()
|
297
|
|
- this.name = _buf_.ReadString()
|
298
|
|
- }
|
299
|
|
-
|
300
|
|
- /**
|
301
|
|
- * 道具ID
|
302
|
|
- */
|
303
|
|
- readonly idx: number
|
304
|
|
- /**
|
305
|
|
- * 类型
|
306
|
|
- */
|
307
|
|
- readonly type: number
|
308
|
|
- /**
|
309
|
|
- * 道具名
|
310
|
|
- */
|
311
|
|
- readonly name: string
|
312
|
|
-
|
313
|
|
- resolve(tables:Tables) {
|
314
|
|
-
|
315
|
|
-
|
316
|
|
-
|
317
|
|
- }
|
318
|
|
-}
|
319
|
|
-
|
320
|
|
-
|
321
|
|
-
|
322
|
|
-
|
323
|
|
-
|
324
|
292
|
export class Hero {
|
325
|
293
|
|
326
|
294
|
constructor(_buf_: ByteBuf) {
|
|
@@ -365,43 +333,31 @@ export class Hero {
|
365
|
333
|
|
366
|
334
|
|
367
|
335
|
|
368
|
|
-export class WaveRewards {
|
|
336
|
+export class Item {
|
369
|
337
|
|
370
|
338
|
constructor(_buf_: ByteBuf) {
|
371
|
339
|
this.idx = _buf_.ReadInt()
|
372
|
|
- this.waveMin = _buf_.ReadInt()
|
373
|
|
- this.waveMax = _buf_.ReadInt()
|
374
|
|
- this.level = _buf_.ReadInt()
|
375
|
|
- { 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);}}
|
|
340
|
+ this.type = _buf_.ReadInt()
|
|
341
|
+ this.name = _buf_.ReadString()
|
376
|
342
|
}
|
377
|
343
|
|
378
|
344
|
/**
|
379
|
|
- * idx
|
|
345
|
+ * 道具ID
|
380
|
346
|
*/
|
381
|
347
|
readonly idx: number
|
382
|
348
|
/**
|
383
|
|
- * 波数下限
|
384
|
|
- */
|
385
|
|
- readonly waveMin: number
|
386
|
|
- /**
|
387
|
|
- * 波数上限
|
388
|
|
- */
|
389
|
|
- readonly waveMax: number
|
390
|
|
- /**
|
391
|
|
- * 难度
|
|
349
|
+ * 类型
|
392
|
350
|
*/
|
393
|
|
- readonly level: number
|
|
351
|
+ readonly type: number
|
394
|
352
|
/**
|
395
|
|
- * 奖励列表
|
|
353
|
+ * 道具名
|
396
|
354
|
*/
|
397
|
|
- readonly rewards: Common.Reward[]
|
|
355
|
+ readonly name: string
|
398
|
356
|
|
399
|
357
|
resolve(tables:Tables) {
|
400
|
358
|
|
401
|
359
|
|
402
|
360
|
|
403
|
|
-
|
404
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
405
|
361
|
}
|
406
|
362
|
}
|
407
|
363
|
|
|
@@ -495,6 +451,148 @@ export class Skill {
|
495
|
451
|
|
496
|
452
|
|
497
|
453
|
|
|
454
|
+export class HeroLevel {
|
|
455
|
+
|
|
456
|
+ constructor(_buf_: ByteBuf) {
|
|
457
|
+ this.idx = _buf_.ReadInt()
|
|
458
|
+ this.id = _buf_.ReadInt()
|
|
459
|
+ this.level = _buf_.ReadInt()
|
|
460
|
+ { 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);}}
|
|
461
|
+ this.unlockSkillDesc = _buf_.ReadString()
|
|
462
|
+ { 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);}}
|
|
463
|
+ this.atk = _buf_.ReadInt()
|
|
464
|
+ this.atkSpeed = _buf_.ReadInt()
|
|
465
|
+ }
|
|
466
|
+
|
|
467
|
+ /**
|
|
468
|
+ * 序號
|
|
469
|
+ */
|
|
470
|
+ readonly idx: number
|
|
471
|
+ /**
|
|
472
|
+ * 英雄ID
|
|
473
|
+ */
|
|
474
|
+ readonly id: number
|
|
475
|
+ /**
|
|
476
|
+ * 等级
|
|
477
|
+ */
|
|
478
|
+ readonly level: number
|
|
479
|
+ /**
|
|
480
|
+ * 英雄解锁技能
|
|
481
|
+ */
|
|
482
|
+ readonly unlockSkill: number[]
|
|
483
|
+ /**
|
|
484
|
+ * 解锁技能描述
|
|
485
|
+ */
|
|
486
|
+ readonly unlockSkillDesc: string
|
|
487
|
+ /**
|
|
488
|
+ * 升级消耗
|
|
489
|
+ */
|
|
490
|
+ readonly upgradeconsume: Common.Cost[]
|
|
491
|
+ /**
|
|
492
|
+ * 攻击力
|
|
493
|
+ */
|
|
494
|
+ readonly atk: number
|
|
495
|
+ /**
|
|
496
|
+ * 攻击速度
|
|
497
|
+ */
|
|
498
|
+ readonly atkSpeed: number
|
|
499
|
+
|
|
500
|
+ resolve(tables:Tables) {
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+ for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+ }
|
|
510
|
+}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+export class Wave {
|
|
517
|
+
|
|
518
|
+ constructor(_buf_: ByteBuf) {
|
|
519
|
+ this.idx = _buf_.ReadInt()
|
|
520
|
+ this.waveIndex = _buf_.ReadInt()
|
|
521
|
+ this.level = _buf_.ReadInt()
|
|
522
|
+ this.model = _buf_.ReadInt()
|
|
523
|
+ this.counter = _buf_.ReadInt()
|
|
524
|
+ this.hp = _buf_.ReadInt()
|
|
525
|
+ this.speed = _buf_.ReadInt()
|
|
526
|
+ this.gap = _buf_.ReadInt()
|
|
527
|
+ this.isboss = _buf_.ReadInt()
|
|
528
|
+ this.perAddCoid = _buf_.ReadInt()
|
|
529
|
+ this.perAddGem = _buf_.ReadInt()
|
|
530
|
+ }
|
|
531
|
+
|
|
532
|
+ /**
|
|
533
|
+ * 唯一id
|
|
534
|
+ */
|
|
535
|
+ readonly idx: number
|
|
536
|
+ /**
|
|
537
|
+ * 波数
|
|
538
|
+ */
|
|
539
|
+ readonly waveIndex: number
|
|
540
|
+ /**
|
|
541
|
+ * 难度
|
|
542
|
+ */
|
|
543
|
+ readonly level: number
|
|
544
|
+ /**
|
|
545
|
+ * 怪物模型
|
|
546
|
+ */
|
|
547
|
+ readonly model: number
|
|
548
|
+ /**
|
|
549
|
+ * 数量
|
|
550
|
+ */
|
|
551
|
+ readonly counter: number
|
|
552
|
+ /**
|
|
553
|
+ * 血量
|
|
554
|
+ */
|
|
555
|
+ readonly hp: number
|
|
556
|
+ /**
|
|
557
|
+ * 速度
|
|
558
|
+ */
|
|
559
|
+ readonly speed: number
|
|
560
|
+ /**
|
|
561
|
+ * 间距
|
|
562
|
+ */
|
|
563
|
+ readonly gap: number
|
|
564
|
+ /**
|
|
565
|
+ * 是否是boss
|
|
566
|
+ */
|
|
567
|
+ readonly isboss: number
|
|
568
|
+ /**
|
|
569
|
+ * 每只怪增加局内金币
|
|
570
|
+ */
|
|
571
|
+ readonly perAddCoid: number
|
|
572
|
+ /**
|
|
573
|
+ * 每只怪增加局内宝石
|
|
574
|
+ */
|
|
575
|
+ readonly perAddGem: number
|
|
576
|
+
|
|
577
|
+ resolve(tables:Tables) {
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+ }
|
|
590
|
+}
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
498
|
596
|
export class System {
|
499
|
597
|
|
500
|
598
|
constructor(_buf_: ByteBuf) {
|
|
@@ -631,141 +729,43 @@ export class SkillBuff {
|
631
|
729
|
|
632
|
730
|
|
633
|
731
|
|
634
|
|
-export class Wave {
|
|
732
|
+export class WaveRewards {
|
635
|
733
|
|
636
|
734
|
constructor(_buf_: ByteBuf) {
|
637
|
735
|
this.idx = _buf_.ReadInt()
|
638
|
|
- this.waveIndex = _buf_.ReadInt()
|
|
736
|
+ this.waveMin = _buf_.ReadInt()
|
|
737
|
+ this.waveMax = _buf_.ReadInt()
|
639
|
738
|
this.level = _buf_.ReadInt()
|
640
|
|
- this.model = _buf_.ReadInt()
|
641
|
|
- this.counter = _buf_.ReadInt()
|
642
|
|
- this.hp = _buf_.ReadInt()
|
643
|
|
- this.speed = _buf_.ReadInt()
|
644
|
|
- this.gap = _buf_.ReadInt()
|
645
|
|
- this.isboss = _buf_.ReadInt()
|
646
|
|
- this.perAddCoid = _buf_.ReadInt()
|
647
|
|
- this.perAddGem = _buf_.ReadInt()
|
|
739
|
+ { 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);}}
|
648
|
740
|
}
|
649
|
741
|
|
650
|
742
|
/**
|
651
|
|
- * 唯一id
|
|
743
|
+ * idx
|
652
|
744
|
*/
|
653
|
745
|
readonly idx: number
|
654
|
746
|
/**
|
655
|
|
- * 波数
|
656
|
|
- */
|
657
|
|
- readonly waveIndex: number
|
658
|
|
- /**
|
659
|
|
- * 难度
|
660
|
|
- */
|
661
|
|
- readonly level: number
|
662
|
|
- /**
|
663
|
|
- * 怪物模型
|
664
|
|
- */
|
665
|
|
- readonly model: number
|
666
|
|
- /**
|
667
|
|
- * 数量
|
668
|
|
- */
|
669
|
|
- readonly counter: number
|
670
|
|
- /**
|
671
|
|
- * 血量
|
672
|
|
- */
|
673
|
|
- readonly hp: number
|
674
|
|
- /**
|
675
|
|
- * 速度
|
676
|
|
- */
|
677
|
|
- readonly speed: number
|
678
|
|
- /**
|
679
|
|
- * 间距
|
680
|
|
- */
|
681
|
|
- readonly gap: number
|
682
|
|
- /**
|
683
|
|
- * 是否是boss
|
684
|
|
- */
|
685
|
|
- readonly isboss: number
|
686
|
|
- /**
|
687
|
|
- * 每只怪增加局内金币
|
688
|
|
- */
|
689
|
|
- readonly perAddCoid: number
|
690
|
|
- /**
|
691
|
|
- * 每只怪增加局内宝石
|
692
|
|
- */
|
693
|
|
- readonly perAddGem: number
|
694
|
|
-
|
695
|
|
- resolve(tables:Tables) {
|
696
|
|
-
|
697
|
|
-
|
698
|
|
-
|
699
|
|
-
|
700
|
|
-
|
701
|
|
-
|
702
|
|
-
|
703
|
|
-
|
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
|
|
- * 序號
|
|
747
|
+ * 波数下限
|
729
|
748
|
*/
|
730
|
|
- readonly idx: number
|
|
749
|
+ readonly waveMin: number
|
731
|
750
|
/**
|
732
|
|
- * 英雄ID
|
|
751
|
+ * 波数上限
|
733
|
752
|
*/
|
734
|
|
- readonly id: number
|
|
753
|
+ readonly waveMax: number
|
735
|
754
|
/**
|
736
|
|
- * 等级
|
|
755
|
+ * 难度
|
737
|
756
|
*/
|
738
|
757
|
readonly level: number
|
739
|
758
|
/**
|
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
|
|
- * 攻击速度
|
|
759
|
+ * 奖励列表
|
757
|
760
|
*/
|
758
|
|
- readonly atkSpeed: number
|
|
761
|
+ readonly rewards: Common.Reward[]
|
759
|
762
|
|
760
|
763
|
resolve(tables:Tables) {
|
761
|
764
|
|
762
|
765
|
|
763
|
766
|
|
764
|
767
|
|
765
|
|
-
|
766
|
|
- for (let _e of this.upgradeconsume) { _e?.resolve(tables); }
|
767
|
|
-
|
768
|
|
-
|
|
768
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
769
|
769
|
}
|
770
|
770
|
}
|
771
|
771
|
|