|
@@ -289,31 +289,37 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class System {
|
|
292
|
+export class BattleSpacialSummon {
|
293
|
293
|
|
294
|
294
|
constructor(_buf_: ByteBuf) {
|
295
|
295
|
this.idx = _buf_.ReadInt()
|
296
|
|
- this.mainKey = _buf_.ReadString()
|
297
|
|
- this.value = _buf_.ReadString()
|
|
296
|
+ this.quality = _buf_.ReadInt()
|
|
297
|
+ this.weight = _buf_.ReadInt()
|
|
298
|
+ this.costgem = _buf_.ReadInt()
|
298
|
299
|
}
|
299
|
300
|
|
300
|
301
|
/**
|
301
|
|
- * IDX
|
|
302
|
+ * 唯一id
|
302
|
303
|
*/
|
303
|
304
|
readonly idx: number
|
304
|
305
|
/**
|
305
|
|
- * 常量主键
|
|
306
|
+ * 品质
|
306
|
307
|
*/
|
307
|
|
- readonly mainKey: string
|
|
308
|
+ readonly quality: Quality
|
308
|
309
|
/**
|
309
|
|
- * 常量值
|
|
310
|
+ * 权重
|
310
|
311
|
*/
|
311
|
|
- readonly value: string
|
|
312
|
+ readonly weight: number
|
|
313
|
+ /**
|
|
314
|
+ * 消耗宝石数量
|
|
315
|
+ */
|
|
316
|
+ readonly costgem: number
|
312
|
317
|
|
313
|
318
|
resolve(tables:Tables) {
|
314
|
319
|
|
315
|
320
|
|
316
|
321
|
|
|
322
|
+
|
317
|
323
|
}
|
318
|
324
|
}
|
319
|
325
|
|
|
@@ -359,6 +365,110 @@ export class HeroQualityWorth {
|
359
|
365
|
|
360
|
366
|
|
361
|
367
|
|
|
368
|
+export class SkillBuff {
|
|
369
|
+
|
|
370
|
+ constructor(_buf_: ByteBuf) {
|
|
371
|
+ this.idx = _buf_.ReadInt()
|
|
372
|
+ this.remark = _buf_.ReadString()
|
|
373
|
+ this.type = _buf_.ReadInt()
|
|
374
|
+ this.parameters = _buf_.ReadString()
|
|
375
|
+ this.probability = _buf_.ReadInt()
|
|
376
|
+ this.triggerCondition = _buf_.ReadString()
|
|
377
|
+ this.effectType = _buf_.ReadInt()
|
|
378
|
+ this.duration = _buf_.ReadInt()
|
|
379
|
+ this.overlapTimes = _buf_.ReadInt()
|
|
380
|
+ this.uniqueGain = _buf_.ReadBool()
|
|
381
|
+ this.halo = _buf_.ReadBool()
|
|
382
|
+ this.attributes = _buf_.ReadString()
|
|
383
|
+ this.mixBufficon = _buf_.ReadInt()
|
|
384
|
+ this.skillShowId = _buf_.ReadInt()
|
|
385
|
+ this.floatingTextId = _buf_.ReadInt()
|
|
386
|
+ }
|
|
387
|
+
|
|
388
|
+ /**
|
|
389
|
+ * buffid
|
|
390
|
+ */
|
|
391
|
+ readonly idx: number
|
|
392
|
+ /**
|
|
393
|
+ * 备注
|
|
394
|
+ */
|
|
395
|
+ readonly remark: string
|
|
396
|
+ /**
|
|
397
|
+ * buff类型
|
|
398
|
+ */
|
|
399
|
+ readonly type: number
|
|
400
|
+ /**
|
|
401
|
+ * buff参数
|
|
402
|
+ */
|
|
403
|
+ readonly parameters: string
|
|
404
|
+ /**
|
|
405
|
+ * 触发概率
|
|
406
|
+ */
|
|
407
|
+ readonly probability: number
|
|
408
|
+ /**
|
|
409
|
+ * 触发条件
|
|
410
|
+ */
|
|
411
|
+ readonly triggerCondition: string
|
|
412
|
+ /**
|
|
413
|
+ * 效果类型
|
|
414
|
+ */
|
|
415
|
+ readonly effectType: number
|
|
416
|
+ /**
|
|
417
|
+ * 持续时间
|
|
418
|
+ */
|
|
419
|
+ readonly duration: number
|
|
420
|
+ /**
|
|
421
|
+ * 叠加次数
|
|
422
|
+ */
|
|
423
|
+ readonly overlapTimes: number
|
|
424
|
+ /**
|
|
425
|
+ * 唯一增益
|
|
426
|
+ */
|
|
427
|
+ readonly uniqueGain: boolean
|
|
428
|
+ /**
|
|
429
|
+ * 是否是光环
|
|
430
|
+ */
|
|
431
|
+ readonly halo: boolean
|
|
432
|
+ /**
|
|
433
|
+ * buff增加的属性
|
|
434
|
+ */
|
|
435
|
+ readonly attributes: string
|
|
436
|
+ /**
|
|
437
|
+ * 是否合并
|
|
438
|
+ */
|
|
439
|
+ readonly mixBufficon: number
|
|
440
|
+ /**
|
|
441
|
+ * 效果id
|
|
442
|
+ */
|
|
443
|
+ readonly skillShowId: number
|
|
444
|
+ /**
|
|
445
|
+ * 飘字id
|
|
446
|
+ */
|
|
447
|
+ readonly floatingTextId: number
|
|
448
|
+
|
|
449
|
+ resolve(tables:Tables) {
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+ }
|
|
466
|
+}
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
362
|
472
|
export class BattleSummonWeight {
|
363
|
473
|
|
364
|
474
|
constructor(_buf_: ByteBuf) {
|
|
@@ -391,6 +501,70 @@ export class BattleSummonWeight {
|
391
|
501
|
|
392
|
502
|
|
393
|
503
|
|
|
504
|
+export class Item {
|
|
505
|
+
|
|
506
|
+ constructor(_buf_: ByteBuf) {
|
|
507
|
+ this.idx = _buf_.ReadInt()
|
|
508
|
+ this.type = _buf_.ReadInt()
|
|
509
|
+ this.name = _buf_.ReadString()
|
|
510
|
+ }
|
|
511
|
+
|
|
512
|
+ /**
|
|
513
|
+ * 道具ID
|
|
514
|
+ */
|
|
515
|
+ readonly idx: number
|
|
516
|
+ /**
|
|
517
|
+ * 类型
|
|
518
|
+ */
|
|
519
|
+ readonly type: number
|
|
520
|
+ /**
|
|
521
|
+ * 道具名
|
|
522
|
+ */
|
|
523
|
+ readonly name: string
|
|
524
|
+
|
|
525
|
+ resolve(tables:Tables) {
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+ }
|
|
530
|
+}
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+export class System {
|
|
537
|
+
|
|
538
|
+ constructor(_buf_: ByteBuf) {
|
|
539
|
+ this.idx = _buf_.ReadInt()
|
|
540
|
+ this.mainKey = _buf_.ReadString()
|
|
541
|
+ this.value = _buf_.ReadString()
|
|
542
|
+ }
|
|
543
|
+
|
|
544
|
+ /**
|
|
545
|
+ * IDX
|
|
546
|
+ */
|
|
547
|
+ readonly idx: number
|
|
548
|
+ /**
|
|
549
|
+ * 常量主键
|
|
550
|
+ */
|
|
551
|
+ readonly mainKey: string
|
|
552
|
+ /**
|
|
553
|
+ * 常量值
|
|
554
|
+ */
|
|
555
|
+ readonly value: string
|
|
556
|
+
|
|
557
|
+ resolve(tables:Tables) {
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+ }
|
|
562
|
+}
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
394
|
568
|
export class Skill {
|
395
|
569
|
|
396
|
570
|
constructor(_buf_: ByteBuf) {
|
|
@@ -483,31 +657,43 @@ export class Skill {
|
483
|
657
|
|
484
|
658
|
|
485
|
659
|
|
486
|
|
-export class Item {
|
|
660
|
+export class WaveRewards {
|
487
|
661
|
|
488
|
662
|
constructor(_buf_: ByteBuf) {
|
489
|
663
|
this.idx = _buf_.ReadInt()
|
490
|
|
- this.type = _buf_.ReadInt()
|
491
|
|
- this.name = _buf_.ReadString()
|
|
664
|
+ this.waveMin = _buf_.ReadInt()
|
|
665
|
+ this.waveMax = _buf_.ReadInt()
|
|
666
|
+ this.level = _buf_.ReadInt()
|
|
667
|
+ { 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);}}
|
492
|
668
|
}
|
493
|
669
|
|
494
|
670
|
/**
|
495
|
|
- * 道具ID
|
|
671
|
+ * idx
|
496
|
672
|
*/
|
497
|
673
|
readonly idx: number
|
498
|
674
|
/**
|
499
|
|
- * 类型
|
|
675
|
+ * 波数下限
|
500
|
676
|
*/
|
501
|
|
- readonly type: number
|
|
677
|
+ readonly waveMin: number
|
502
|
678
|
/**
|
503
|
|
- * 道具名
|
|
679
|
+ * 波数上限
|
504
|
680
|
*/
|
505
|
|
- readonly name: string
|
|
681
|
+ readonly waveMax: number
|
|
682
|
+ /**
|
|
683
|
+ * 难度
|
|
684
|
+ */
|
|
685
|
+ readonly level: number
|
|
686
|
+ /**
|
|
687
|
+ * 奖励列表
|
|
688
|
+ */
|
|
689
|
+ readonly rewards: Common.Reward[]
|
506
|
690
|
|
507
|
691
|
resolve(tables:Tables) {
|
508
|
692
|
|
509
|
693
|
|
510
|
694
|
|
|
695
|
+
|
|
696
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
511
|
697
|
}
|
512
|
698
|
}
|
513
|
699
|
|
|
@@ -571,110 +757,6 @@ export class Hero {
|
571
|
757
|
|
572
|
758
|
|
573
|
759
|
|
574
|
|
-export class SkillBuff {
|
575
|
|
-
|
576
|
|
- constructor(_buf_: ByteBuf) {
|
577
|
|
- this.idx = _buf_.ReadInt()
|
578
|
|
- this.remark = _buf_.ReadString()
|
579
|
|
- this.type = _buf_.ReadInt()
|
580
|
|
- this.parameters = _buf_.ReadString()
|
581
|
|
- this.probability = _buf_.ReadInt()
|
582
|
|
- this.triggerCondition = _buf_.ReadString()
|
583
|
|
- this.effectType = _buf_.ReadInt()
|
584
|
|
- this.duration = _buf_.ReadInt()
|
585
|
|
- this.overlapTimes = _buf_.ReadInt()
|
586
|
|
- this.uniqueGain = _buf_.ReadBool()
|
587
|
|
- this.halo = _buf_.ReadBool()
|
588
|
|
- this.attributes = _buf_.ReadString()
|
589
|
|
- this.mixBufficon = _buf_.ReadInt()
|
590
|
|
- this.skillShowId = _buf_.ReadInt()
|
591
|
|
- this.floatingTextId = _buf_.ReadInt()
|
592
|
|
- }
|
593
|
|
-
|
594
|
|
- /**
|
595
|
|
- * buffid
|
596
|
|
- */
|
597
|
|
- readonly idx: number
|
598
|
|
- /**
|
599
|
|
- * 备注
|
600
|
|
- */
|
601
|
|
- readonly remark: string
|
602
|
|
- /**
|
603
|
|
- * buff类型
|
604
|
|
- */
|
605
|
|
- readonly type: number
|
606
|
|
- /**
|
607
|
|
- * buff参数
|
608
|
|
- */
|
609
|
|
- readonly parameters: string
|
610
|
|
- /**
|
611
|
|
- * 触发概率
|
612
|
|
- */
|
613
|
|
- readonly probability: number
|
614
|
|
- /**
|
615
|
|
- * 触发条件
|
616
|
|
- */
|
617
|
|
- readonly triggerCondition: string
|
618
|
|
- /**
|
619
|
|
- * 效果类型
|
620
|
|
- */
|
621
|
|
- readonly effectType: number
|
622
|
|
- /**
|
623
|
|
- * 持续时间
|
624
|
|
- */
|
625
|
|
- readonly duration: number
|
626
|
|
- /**
|
627
|
|
- * 叠加次数
|
628
|
|
- */
|
629
|
|
- readonly overlapTimes: number
|
630
|
|
- /**
|
631
|
|
- * 唯一增益
|
632
|
|
- */
|
633
|
|
- readonly uniqueGain: boolean
|
634
|
|
- /**
|
635
|
|
- * 是否是光环
|
636
|
|
- */
|
637
|
|
- readonly halo: boolean
|
638
|
|
- /**
|
639
|
|
- * buff增加的属性
|
640
|
|
- */
|
641
|
|
- readonly attributes: string
|
642
|
|
- /**
|
643
|
|
- * 是否合并
|
644
|
|
- */
|
645
|
|
- readonly mixBufficon: number
|
646
|
|
- /**
|
647
|
|
- * 效果id
|
648
|
|
- */
|
649
|
|
- readonly skillShowId: number
|
650
|
|
- /**
|
651
|
|
- * 飘字id
|
652
|
|
- */
|
653
|
|
- readonly floatingTextId: number
|
654
|
|
-
|
655
|
|
- resolve(tables:Tables) {
|
656
|
|
-
|
657
|
|
-
|
658
|
|
-
|
659
|
|
-
|
660
|
|
-
|
661
|
|
-
|
662
|
|
-
|
663
|
|
-
|
664
|
|
-
|
665
|
|
-
|
666
|
|
-
|
667
|
|
-
|
668
|
|
-
|
669
|
|
-
|
670
|
|
-
|
671
|
|
- }
|
672
|
|
-}
|
673
|
|
-
|
674
|
|
-
|
675
|
|
-
|
676
|
|
-
|
677
|
|
-
|
678
|
760
|
export class Wave {
|
679
|
761
|
|
680
|
762
|
constructor(_buf_: ByteBuf) {
|
|
@@ -755,88 +837,6 @@ export class Wave {
|
755
|
837
|
|
756
|
838
|
|
757
|
839
|
|
758
|
|
-export class BattleSpacialSummon {
|
759
|
|
-
|
760
|
|
- constructor(_buf_: ByteBuf) {
|
761
|
|
- this.idx = _buf_.ReadInt()
|
762
|
|
- this.quality = _buf_.ReadInt()
|
763
|
|
- this.weight = _buf_.ReadInt()
|
764
|
|
- this.costgem = _buf_.ReadInt()
|
765
|
|
- }
|
766
|
|
-
|
767
|
|
- /**
|
768
|
|
- * 唯一id
|
769
|
|
- */
|
770
|
|
- readonly idx: number
|
771
|
|
- /**
|
772
|
|
- * 品质
|
773
|
|
- */
|
774
|
|
- readonly quality: Quality
|
775
|
|
- /**
|
776
|
|
- * 权重
|
777
|
|
- */
|
778
|
|
- readonly weight: number
|
779
|
|
- /**
|
780
|
|
- * 消耗宝石数量
|
781
|
|
- */
|
782
|
|
- readonly costgem: number
|
783
|
|
-
|
784
|
|
- resolve(tables:Tables) {
|
785
|
|
-
|
786
|
|
-
|
787
|
|
-
|
788
|
|
-
|
789
|
|
- }
|
790
|
|
-}
|
791
|
|
-
|
792
|
|
-
|
793
|
|
-
|
794
|
|
-
|
795
|
|
-
|
796
|
|
-export class WaveRewards {
|
797
|
|
-
|
798
|
|
- constructor(_buf_: ByteBuf) {
|
799
|
|
- this.idx = _buf_.ReadInt()
|
800
|
|
- this.waveMin = _buf_.ReadInt()
|
801
|
|
- this.waveMax = _buf_.ReadInt()
|
802
|
|
- this.level = _buf_.ReadInt()
|
803
|
|
- { 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);}}
|
804
|
|
- }
|
805
|
|
-
|
806
|
|
- /**
|
807
|
|
- * idx
|
808
|
|
- */
|
809
|
|
- readonly idx: number
|
810
|
|
- /**
|
811
|
|
- * 波数下限
|
812
|
|
- */
|
813
|
|
- readonly waveMin: number
|
814
|
|
- /**
|
815
|
|
- * 波数上限
|
816
|
|
- */
|
817
|
|
- readonly waveMax: number
|
818
|
|
- /**
|
819
|
|
- * 难度
|
820
|
|
- */
|
821
|
|
- readonly level: number
|
822
|
|
- /**
|
823
|
|
- * 奖励列表
|
824
|
|
- */
|
825
|
|
- readonly rewards: Common.Reward[]
|
826
|
|
-
|
827
|
|
- resolve(tables:Tables) {
|
828
|
|
-
|
829
|
|
-
|
830
|
|
-
|
831
|
|
-
|
832
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
833
|
|
- }
|
834
|
|
-}
|
835
|
|
-
|
836
|
|
-
|
837
|
|
-
|
838
|
|
-
|
839
|
|
-
|
840
|
840
|
export class HeroLevel {
|
841
|
841
|
|
842
|
842
|
constructor(_buf_: ByteBuf) {
|