|
@@ -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 BattleSummonWeight {
|
325
|
293
|
|
326
|
294
|
constructor(_buf_: ByteBuf) {
|
|
@@ -353,44 +321,6 @@ export class BattleSummonWeight {
|
353
|
321
|
|
354
|
322
|
|
355
|
323
|
|
356
|
|
-export class HeroQualityWorth {
|
357
|
|
-
|
358
|
|
- constructor(_buf_: ByteBuf) {
|
359
|
|
- this.idx = _buf_.ReadInt()
|
360
|
|
- this.quality = _buf_.ReadInt()
|
361
|
|
- this.gold = _buf_.ReadInt()
|
362
|
|
- this.gem = _buf_.ReadInt()
|
363
|
|
- }
|
364
|
|
-
|
365
|
|
- /**
|
366
|
|
- * 唯一id
|
367
|
|
- */
|
368
|
|
- readonly idx: number
|
369
|
|
- /**
|
370
|
|
- * 品质
|
371
|
|
- */
|
372
|
|
- readonly quality: Quality
|
373
|
|
- /**
|
374
|
|
- * 局内金币
|
375
|
|
- */
|
376
|
|
- readonly gold: number
|
377
|
|
- /**
|
378
|
|
- * 局内宝石
|
379
|
|
- */
|
380
|
|
- readonly gem: number
|
381
|
|
-
|
382
|
|
- resolve(tables:Tables) {
|
383
|
|
-
|
384
|
|
-
|
385
|
|
-
|
386
|
|
-
|
387
|
|
- }
|
388
|
|
-}
|
389
|
|
-
|
390
|
|
-
|
391
|
|
-
|
392
|
|
-
|
393
|
|
-
|
394
|
324
|
export class WaveRewards {
|
395
|
325
|
|
396
|
326
|
constructor(_buf_: ByteBuf) {
|
|
@@ -435,62 +365,6 @@ export class WaveRewards {
|
435
|
365
|
|
436
|
366
|
|
437
|
367
|
|
438
|
|
-export class Hero {
|
439
|
|
-
|
440
|
|
- constructor(_buf_: ByteBuf) {
|
441
|
|
- this.id = _buf_.ReadInt()
|
442
|
|
- this.quality = _buf_.ReadInt()
|
443
|
|
- this.attacktype = _buf_.ReadInt()
|
444
|
|
- this.name = _buf_.ReadString()
|
445
|
|
- { 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);}}
|
446
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
|
447
|
|
- this.isShow = _buf_.ReadInt()
|
448
|
|
- }
|
449
|
|
-
|
450
|
|
- /**
|
451
|
|
- * 英雄ID
|
452
|
|
- */
|
453
|
|
- readonly id: number
|
454
|
|
- /**
|
455
|
|
- * 品质
|
456
|
|
- */
|
457
|
|
- readonly quality: Quality
|
458
|
|
- /**
|
459
|
|
- * 攻击类型
|
460
|
|
- */
|
461
|
|
- readonly attacktype: AttackType
|
462
|
|
- /**
|
463
|
|
- * 名字
|
464
|
|
- */
|
465
|
|
- readonly name: string
|
466
|
|
- /**
|
467
|
|
- * 技能列表
|
468
|
|
- */
|
469
|
|
- readonly skills: number[]
|
470
|
|
- /**
|
471
|
|
- * 合成英雄公式
|
472
|
|
- */
|
473
|
|
- readonly composeheros: number[]
|
474
|
|
- /**
|
475
|
|
- * 是否测试
|
476
|
|
- */
|
477
|
|
- readonly isShow: number
|
478
|
|
-
|
479
|
|
- resolve(tables:Tables) {
|
480
|
|
-
|
481
|
|
-
|
482
|
|
-
|
483
|
|
-
|
484
|
|
-
|
485
|
|
-
|
486
|
|
-
|
487
|
|
- }
|
488
|
|
-}
|
489
|
|
-
|
490
|
|
-
|
491
|
|
-
|
492
|
|
-
|
493
|
|
-
|
494
|
368
|
export class SkillBuff {
|
495
|
369
|
|
496
|
370
|
constructor(_buf_: ByteBuf) {
|
|
@@ -633,6 +507,76 @@ export class BattleSpacialSummon {
|
633
|
507
|
|
634
|
508
|
|
635
|
509
|
|
|
510
|
+export class HeroQualityWorth {
|
|
511
|
+
|
|
512
|
+ constructor(_buf_: ByteBuf) {
|
|
513
|
+ this.idx = _buf_.ReadInt()
|
|
514
|
+ this.quality = _buf_.ReadInt()
|
|
515
|
+ this.gold = _buf_.ReadInt()
|
|
516
|
+ this.gem = _buf_.ReadInt()
|
|
517
|
+ }
|
|
518
|
+
|
|
519
|
+ /**
|
|
520
|
+ * 唯一id
|
|
521
|
+ */
|
|
522
|
+ readonly idx: number
|
|
523
|
+ /**
|
|
524
|
+ * 品质
|
|
525
|
+ */
|
|
526
|
+ readonly quality: Quality
|
|
527
|
+ /**
|
|
528
|
+ * 局内金币
|
|
529
|
+ */
|
|
530
|
+ readonly gold: number
|
|
531
|
+ /**
|
|
532
|
+ * 局内宝石
|
|
533
|
+ */
|
|
534
|
+ readonly gem: number
|
|
535
|
+
|
|
536
|
+ resolve(tables:Tables) {
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+ }
|
|
542
|
+}
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+export class Item {
|
|
549
|
+
|
|
550
|
+ constructor(_buf_: ByteBuf) {
|
|
551
|
+ this.idx = _buf_.ReadInt()
|
|
552
|
+ this.type = _buf_.ReadInt()
|
|
553
|
+ this.name = _buf_.ReadString()
|
|
554
|
+ }
|
|
555
|
+
|
|
556
|
+ /**
|
|
557
|
+ * 道具ID
|
|
558
|
+ */
|
|
559
|
+ readonly idx: number
|
|
560
|
+ /**
|
|
561
|
+ * 类型
|
|
562
|
+ */
|
|
563
|
+ readonly type: number
|
|
564
|
+ /**
|
|
565
|
+ * 道具名
|
|
566
|
+ */
|
|
567
|
+ readonly name: string
|
|
568
|
+
|
|
569
|
+ resolve(tables:Tables) {
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+ }
|
|
574
|
+}
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
636
|
580
|
export class Wave {
|
637
|
581
|
|
638
|
582
|
constructor(_buf_: ByteBuf) {
|
|
@@ -805,6 +749,62 @@ export class Skill {
|
805
|
749
|
|
806
|
750
|
|
807
|
751
|
|
|
752
|
+export class Hero {
|
|
753
|
+
|
|
754
|
+ constructor(_buf_: ByteBuf) {
|
|
755
|
+ this.id = _buf_.ReadInt()
|
|
756
|
+ this.quality = _buf_.ReadInt()
|
|
757
|
+ this.attacktype = _buf_.ReadInt()
|
|
758
|
+ this.name = _buf_.ReadString()
|
|
759
|
+ { 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);}}
|
|
760
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
|
|
761
|
+ this.isShow = _buf_.ReadInt()
|
|
762
|
+ }
|
|
763
|
+
|
|
764
|
+ /**
|
|
765
|
+ * 英雄ID
|
|
766
|
+ */
|
|
767
|
+ readonly id: number
|
|
768
|
+ /**
|
|
769
|
+ * 品质
|
|
770
|
+ */
|
|
771
|
+ readonly quality: Quality
|
|
772
|
+ /**
|
|
773
|
+ * 攻击类型
|
|
774
|
+ */
|
|
775
|
+ readonly attacktype: AttackType
|
|
776
|
+ /**
|
|
777
|
+ * 名字
|
|
778
|
+ */
|
|
779
|
+ readonly name: string
|
|
780
|
+ /**
|
|
781
|
+ * 技能列表
|
|
782
|
+ */
|
|
783
|
+ readonly skills: number[]
|
|
784
|
+ /**
|
|
785
|
+ * 合成英雄公式
|
|
786
|
+ */
|
|
787
|
+ readonly composeheros: number[]
|
|
788
|
+ /**
|
|
789
|
+ * 是否测试
|
|
790
|
+ */
|
|
791
|
+ readonly isShow: number
|
|
792
|
+
|
|
793
|
+ resolve(tables:Tables) {
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+ }
|
|
802
|
+}
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
808
|
808
|
export class System {
|
809
|
809
|
|
810
|
810
|
constructor(_buf_: ByteBuf) {
|