|
@@ -289,31 +289,103 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class System {
|
|
292
|
+export class SkillBuff {
|
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.remark = _buf_.ReadString()
|
|
297
|
+ this.type = _buf_.ReadInt()
|
|
298
|
+ this.parameters = _buf_.ReadString()
|
|
299
|
+ this.probability = _buf_.ReadInt()
|
|
300
|
+ this.triggerCondition = _buf_.ReadString()
|
|
301
|
+ this.effectType = _buf_.ReadInt()
|
|
302
|
+ this.duration = _buf_.ReadInt()
|
|
303
|
+ this.overlapTimes = _buf_.ReadInt()
|
|
304
|
+ this.uniqueGain = _buf_.ReadBool()
|
|
305
|
+ this.halo = _buf_.ReadBool()
|
|
306
|
+ this.attributes = _buf_.ReadString()
|
|
307
|
+ this.mixBufficon = _buf_.ReadInt()
|
|
308
|
+ this.skillShowId = _buf_.ReadInt()
|
|
309
|
+ this.floatingTextId = _buf_.ReadInt()
|
298
|
310
|
}
|
299
|
311
|
|
300
|
312
|
/**
|
301
|
|
- * IDX
|
|
313
|
+ * buffid
|
302
|
314
|
*/
|
303
|
315
|
readonly idx: number
|
304
|
316
|
/**
|
305
|
|
- * 常量主键
|
|
317
|
+ * 备注
|
306
|
318
|
*/
|
307
|
|
- readonly mainKey: string
|
|
319
|
+ readonly remark: string
|
308
|
320
|
/**
|
309
|
|
- * 常量值
|
|
321
|
+ * buff类型
|
310
|
322
|
*/
|
311
|
|
- readonly value: string
|
|
323
|
+ readonly type: number
|
|
324
|
+ /**
|
|
325
|
+ * buff参数
|
|
326
|
+ */
|
|
327
|
+ readonly parameters: string
|
|
328
|
+ /**
|
|
329
|
+ * 触发概率
|
|
330
|
+ */
|
|
331
|
+ readonly probability: number
|
|
332
|
+ /**
|
|
333
|
+ * 触发条件
|
|
334
|
+ */
|
|
335
|
+ readonly triggerCondition: string
|
|
336
|
+ /**
|
|
337
|
+ * 效果类型
|
|
338
|
+ */
|
|
339
|
+ readonly effectType: number
|
|
340
|
+ /**
|
|
341
|
+ * 持续时间
|
|
342
|
+ */
|
|
343
|
+ readonly duration: number
|
|
344
|
+ /**
|
|
345
|
+ * 叠加次数
|
|
346
|
+ */
|
|
347
|
+ readonly overlapTimes: number
|
|
348
|
+ /**
|
|
349
|
+ * 唯一增益
|
|
350
|
+ */
|
|
351
|
+ readonly uniqueGain: boolean
|
|
352
|
+ /**
|
|
353
|
+ * 是否是光环
|
|
354
|
+ */
|
|
355
|
+ readonly halo: boolean
|
|
356
|
+ /**
|
|
357
|
+ * buff增加的属性
|
|
358
|
+ */
|
|
359
|
+ readonly attributes: string
|
|
360
|
+ /**
|
|
361
|
+ * 是否合并
|
|
362
|
+ */
|
|
363
|
+ readonly mixBufficon: number
|
|
364
|
+ /**
|
|
365
|
+ * 效果id
|
|
366
|
+ */
|
|
367
|
+ readonly skillShowId: number
|
|
368
|
+ /**
|
|
369
|
+ * 飘字id
|
|
370
|
+ */
|
|
371
|
+ readonly floatingTextId: number
|
312
|
372
|
|
313
|
373
|
resolve(tables:Tables) {
|
314
|
374
|
|
315
|
375
|
|
316
|
376
|
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
317
|
389
|
}
|
318
|
390
|
}
|
319
|
391
|
|
|
@@ -321,43 +393,63 @@ export class System {
|
321
|
393
|
|
322
|
394
|
|
323
|
395
|
|
324
|
|
-export class WaveRewards {
|
|
396
|
+export class Item {
|
325
|
397
|
|
326
|
398
|
constructor(_buf_: ByteBuf) {
|
327
|
399
|
this.idx = _buf_.ReadInt()
|
328
|
|
- this.waveMin = _buf_.ReadInt()
|
329
|
|
- this.waveMax = _buf_.ReadInt()
|
330
|
|
- this.level = _buf_.ReadInt()
|
331
|
|
- { 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);}}
|
|
400
|
+ this.type = _buf_.ReadInt()
|
|
401
|
+ this.name = _buf_.ReadString()
|
332
|
402
|
}
|
333
|
403
|
|
334
|
404
|
/**
|
335
|
|
- * idx
|
|
405
|
+ * 道具ID
|
336
|
406
|
*/
|
337
|
407
|
readonly idx: number
|
338
|
408
|
/**
|
339
|
|
- * 波数下限
|
|
409
|
+ * 类型
|
340
|
410
|
*/
|
341
|
|
- readonly waveMin: number
|
|
411
|
+ readonly type: number
|
342
|
412
|
/**
|
343
|
|
- * 波数上限
|
|
413
|
+ * 道具名
|
344
|
414
|
*/
|
345
|
|
- readonly waveMax: number
|
|
415
|
+ readonly name: string
|
|
416
|
+
|
|
417
|
+ resolve(tables:Tables) {
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+ }
|
|
422
|
+}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+export class System {
|
|
429
|
+
|
|
430
|
+ constructor(_buf_: ByteBuf) {
|
|
431
|
+ this.idx = _buf_.ReadInt()
|
|
432
|
+ this.mainKey = _buf_.ReadString()
|
|
433
|
+ this.value = _buf_.ReadString()
|
|
434
|
+ }
|
|
435
|
+
|
346
|
436
|
/**
|
347
|
|
- * 难度
|
|
437
|
+ * IDX
|
348
|
438
|
*/
|
349
|
|
- readonly level: number
|
|
439
|
+ readonly idx: number
|
350
|
440
|
/**
|
351
|
|
- * 奖励列表
|
|
441
|
+ * 常量主键
|
352
|
442
|
*/
|
353
|
|
- readonly rewards: Common.Reward[]
|
|
443
|
+ readonly mainKey: string
|
|
444
|
+ /**
|
|
445
|
+ * 常量值
|
|
446
|
+ */
|
|
447
|
+ readonly value: string
|
354
|
448
|
|
355
|
449
|
resolve(tables:Tables) {
|
356
|
450
|
|
357
|
451
|
|
358
|
452
|
|
359
|
|
-
|
360
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
361
|
453
|
}
|
362
|
454
|
}
|
363
|
455
|
|
|
@@ -365,13 +457,13 @@ export class WaveRewards {
|
365
|
457
|
|
366
|
458
|
|
367
|
459
|
|
368
|
|
-export class HeroQualityWorth {
|
|
460
|
+export class BattleSpacialSummon {
|
369
|
461
|
|
370
|
462
|
constructor(_buf_: ByteBuf) {
|
371
|
463
|
this.idx = _buf_.ReadInt()
|
372
|
464
|
this.quality = _buf_.ReadInt()
|
373
|
|
- this.gold = _buf_.ReadInt()
|
374
|
|
- this.gem = _buf_.ReadInt()
|
|
465
|
+ this.weight = _buf_.ReadInt()
|
|
466
|
+ this.costgem = _buf_.ReadInt()
|
375
|
467
|
}
|
376
|
468
|
|
377
|
469
|
/**
|
|
@@ -383,13 +475,13 @@ export class HeroQualityWorth {
|
383
|
475
|
*/
|
384
|
476
|
readonly quality: Quality
|
385
|
477
|
/**
|
386
|
|
- * 局内金币
|
|
478
|
+ * 权重
|
387
|
479
|
*/
|
388
|
|
- readonly gold: number
|
|
480
|
+ readonly weight: number
|
389
|
481
|
/**
|
390
|
|
- * 局内宝石
|
|
482
|
+ * 消耗宝石数量
|
391
|
483
|
*/
|
392
|
|
- readonly gem: number
|
|
484
|
+ readonly costgem: number
|
393
|
485
|
|
394
|
486
|
resolve(tables:Tables) {
|
395
|
487
|
|
|
@@ -435,86 +527,66 @@ export class BattleSummonWeight {
|
435
|
527
|
|
436
|
528
|
|
437
|
529
|
|
438
|
|
-export class SkillBuff {
|
|
530
|
+export class Wave {
|
439
|
531
|
|
440
|
532
|
constructor(_buf_: ByteBuf) {
|
441
|
533
|
this.idx = _buf_.ReadInt()
|
442
|
|
- this.remark = _buf_.ReadString()
|
443
|
|
- this.type = _buf_.ReadInt()
|
444
|
|
- this.parameters = _buf_.ReadString()
|
445
|
|
- this.probability = _buf_.ReadInt()
|
446
|
|
- this.triggerCondition = _buf_.ReadString()
|
447
|
|
- this.effectType = _buf_.ReadInt()
|
448
|
|
- this.duration = _buf_.ReadInt()
|
449
|
|
- this.overlapTimes = _buf_.ReadInt()
|
450
|
|
- this.uniqueGain = _buf_.ReadBool()
|
451
|
|
- this.halo = _buf_.ReadBool()
|
452
|
|
- this.attributes = _buf_.ReadString()
|
453
|
|
- this.mixBufficon = _buf_.ReadInt()
|
454
|
|
- this.skillShowId = _buf_.ReadInt()
|
455
|
|
- this.floatingTextId = _buf_.ReadInt()
|
|
534
|
+ this.waveIndex = _buf_.ReadInt()
|
|
535
|
+ this.level = _buf_.ReadInt()
|
|
536
|
+ this.model = _buf_.ReadInt()
|
|
537
|
+ this.counter = _buf_.ReadInt()
|
|
538
|
+ this.hp = _buf_.ReadInt()
|
|
539
|
+ this.speed = _buf_.ReadInt()
|
|
540
|
+ this.gap = _buf_.ReadInt()
|
|
541
|
+ this.isboss = _buf_.ReadInt()
|
|
542
|
+ this.perAddCoid = _buf_.ReadInt()
|
|
543
|
+ this.perAddGem = _buf_.ReadInt()
|
456
|
544
|
}
|
457
|
545
|
|
458
|
546
|
/**
|
459
|
|
- * buffid
|
|
547
|
+ * 唯一id
|
460
|
548
|
*/
|
461
|
549
|
readonly idx: number
|
462
|
550
|
/**
|
463
|
|
- * 备注
|
464
|
|
- */
|
465
|
|
- readonly remark: string
|
466
|
|
- /**
|
467
|
|
- * buff类型
|
468
|
|
- */
|
469
|
|
- readonly type: number
|
470
|
|
- /**
|
471
|
|
- * buff参数
|
472
|
|
- */
|
473
|
|
- readonly parameters: string
|
474
|
|
- /**
|
475
|
|
- * 触发概率
|
476
|
|
- */
|
477
|
|
- readonly probability: number
|
478
|
|
- /**
|
479
|
|
- * 触发条件
|
|
551
|
+ * 波数
|
480
|
552
|
*/
|
481
|
|
- readonly triggerCondition: string
|
|
553
|
+ readonly waveIndex: number
|
482
|
554
|
/**
|
483
|
|
- * 效果类型
|
|
555
|
+ * 难度
|
484
|
556
|
*/
|
485
|
|
- readonly effectType: number
|
|
557
|
+ readonly level: number
|
486
|
558
|
/**
|
487
|
|
- * 持续时间
|
|
559
|
+ * 怪物模型
|
488
|
560
|
*/
|
489
|
|
- readonly duration: number
|
|
561
|
+ readonly model: number
|
490
|
562
|
/**
|
491
|
|
- * 叠加次数
|
|
563
|
+ * 数量
|
492
|
564
|
*/
|
493
|
|
- readonly overlapTimes: number
|
|
565
|
+ readonly counter: number
|
494
|
566
|
/**
|
495
|
|
- * 唯一增益
|
|
567
|
+ * 血量
|
496
|
568
|
*/
|
497
|
|
- readonly uniqueGain: boolean
|
|
569
|
+ readonly hp: number
|
498
|
570
|
/**
|
499
|
|
- * 是否是光环
|
|
571
|
+ * 速度
|
500
|
572
|
*/
|
501
|
|
- readonly halo: boolean
|
|
573
|
+ readonly speed: number
|
502
|
574
|
/**
|
503
|
|
- * buff增加的属性
|
|
575
|
+ * 间距
|
504
|
576
|
*/
|
505
|
|
- readonly attributes: string
|
|
577
|
+ readonly gap: number
|
506
|
578
|
/**
|
507
|
|
- * 是否合并
|
|
579
|
+ * 是否是boss
|
508
|
580
|
*/
|
509
|
|
- readonly mixBufficon: number
|
|
581
|
+ readonly isboss: number
|
510
|
582
|
/**
|
511
|
|
- * 效果id
|
|
583
|
+ * 每只怪增加局内金币
|
512
|
584
|
*/
|
513
|
|
- readonly skillShowId: number
|
|
585
|
+ readonly perAddCoid: number
|
514
|
586
|
/**
|
515
|
|
- * 飘字id
|
|
587
|
+ * 每只怪增加局内宝石
|
516
|
588
|
*/
|
517
|
|
- readonly floatingTextId: number
|
|
589
|
+ readonly perAddGem: number
|
518
|
590
|
|
519
|
591
|
resolve(tables:Tables) {
|
520
|
592
|
|
|
@@ -528,10 +600,50 @@ export class SkillBuff {
|
528
|
600
|
|
529
|
601
|
|
530
|
602
|
|
|
603
|
+ }
|
|
604
|
+}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+export class WaveRewards {
|
|
611
|
+
|
|
612
|
+ constructor(_buf_: ByteBuf) {
|
|
613
|
+ this.idx = _buf_.ReadInt()
|
|
614
|
+ this.waveMin = _buf_.ReadInt()
|
|
615
|
+ this.waveMax = _buf_.ReadInt()
|
|
616
|
+ this.level = _buf_.ReadInt()
|
|
617
|
+ { 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);}}
|
|
618
|
+ }
|
|
619
|
+
|
|
620
|
+ /**
|
|
621
|
+ * idx
|
|
622
|
+ */
|
|
623
|
+ readonly idx: number
|
|
624
|
+ /**
|
|
625
|
+ * 波数下限
|
|
626
|
+ */
|
|
627
|
+ readonly waveMin: number
|
|
628
|
+ /**
|
|
629
|
+ * 波数上限
|
|
630
|
+ */
|
|
631
|
+ readonly waveMax: number
|
|
632
|
+ /**
|
|
633
|
+ * 难度
|
|
634
|
+ */
|
|
635
|
+ readonly level: number
|
|
636
|
+ /**
|
|
637
|
+ * 奖励列表
|
|
638
|
+ */
|
|
639
|
+ readonly rewards: Common.Reward[]
|
|
640
|
+
|
|
641
|
+ resolve(tables:Tables) {
|
531
|
642
|
|
532
|
643
|
|
533
|
644
|
|
534
|
645
|
|
|
646
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
535
|
647
|
}
|
536
|
648
|
}
|
537
|
649
|
|
|
@@ -539,13 +651,13 @@ export class SkillBuff {
|
539
|
651
|
|
540
|
652
|
|
541
|
653
|
|
542
|
|
-export class BattleSpacialSummon {
|
|
654
|
+export class HeroQualityWorth {
|
543
|
655
|
|
544
|
656
|
constructor(_buf_: ByteBuf) {
|
545
|
657
|
this.idx = _buf_.ReadInt()
|
546
|
658
|
this.quality = _buf_.ReadInt()
|
547
|
|
- this.weight = _buf_.ReadInt()
|
548
|
|
- this.costgem = _buf_.ReadInt()
|
|
659
|
+ this.gold = _buf_.ReadInt()
|
|
660
|
+ this.gem = _buf_.ReadInt()
|
549
|
661
|
}
|
550
|
662
|
|
551
|
663
|
/**
|
|
@@ -557,13 +669,13 @@ export class BattleSpacialSummon {
|
557
|
669
|
*/
|
558
|
670
|
readonly quality: Quality
|
559
|
671
|
/**
|
560
|
|
- * 权重
|
|
672
|
+ * 局内金币
|
561
|
673
|
*/
|
562
|
|
- readonly weight: number
|
|
674
|
+ readonly gold: number
|
563
|
675
|
/**
|
564
|
|
- * 消耗宝石数量
|
|
676
|
+ * 局内宝石
|
565
|
677
|
*/
|
566
|
|
- readonly costgem: number
|
|
678
|
+ readonly gem: number
|
567
|
679
|
|
568
|
680
|
resolve(tables:Tables) {
|
569
|
681
|
|
|
@@ -725,38 +837,6 @@ export class Skill {
|
725
|
837
|
|
726
|
838
|
|
727
|
839
|
|
728
|
|
-export class Item {
|
729
|
|
-
|
730
|
|
- constructor(_buf_: ByteBuf) {
|
731
|
|
- this.idx = _buf_.ReadInt()
|
732
|
|
- this.type = _buf_.ReadInt()
|
733
|
|
- this.name = _buf_.ReadString()
|
734
|
|
- }
|
735
|
|
-
|
736
|
|
- /**
|
737
|
|
- * 道具ID
|
738
|
|
- */
|
739
|
|
- readonly idx: number
|
740
|
|
- /**
|
741
|
|
- * 类型
|
742
|
|
- */
|
743
|
|
- readonly type: number
|
744
|
|
- /**
|
745
|
|
- * 道具名
|
746
|
|
- */
|
747
|
|
- readonly name: string
|
748
|
|
-
|
749
|
|
- resolve(tables:Tables) {
|
750
|
|
-
|
751
|
|
-
|
752
|
|
-
|
753
|
|
- }
|
754
|
|
-}
|
755
|
|
-
|
756
|
|
-
|
757
|
|
-
|
758
|
|
-
|
759
|
|
-
|
760
|
840
|
export class Hero {
|
761
|
841
|
|
762
|
842
|
constructor(_buf_: ByteBuf) {
|
|
@@ -881,86 +961,6 @@ export class Attr {
|
881
|
961
|
|
882
|
962
|
|
883
|
963
|
|
884
|
|
-export class Wave {
|
885
|
|
-
|
886
|
|
- constructor(_buf_: ByteBuf) {
|
887
|
|
- this.idx = _buf_.ReadInt()
|
888
|
|
- this.waveIndex = _buf_.ReadInt()
|
889
|
|
- this.level = _buf_.ReadInt()
|
890
|
|
- this.model = _buf_.ReadInt()
|
891
|
|
- this.counter = _buf_.ReadInt()
|
892
|
|
- this.hp = _buf_.ReadInt()
|
893
|
|
- this.speed = _buf_.ReadInt()
|
894
|
|
- this.gap = _buf_.ReadInt()
|
895
|
|
- this.isboss = _buf_.ReadInt()
|
896
|
|
- this.perAddCoid = _buf_.ReadInt()
|
897
|
|
- this.perAddGem = _buf_.ReadInt()
|
898
|
|
- }
|
899
|
|
-
|
900
|
|
- /**
|
901
|
|
- * 唯一id
|
902
|
|
- */
|
903
|
|
- readonly idx: number
|
904
|
|
- /**
|
905
|
|
- * 波数
|
906
|
|
- */
|
907
|
|
- readonly waveIndex: number
|
908
|
|
- /**
|
909
|
|
- * 难度
|
910
|
|
- */
|
911
|
|
- readonly level: number
|
912
|
|
- /**
|
913
|
|
- * 怪物模型
|
914
|
|
- */
|
915
|
|
- readonly model: number
|
916
|
|
- /**
|
917
|
|
- * 数量
|
918
|
|
- */
|
919
|
|
- readonly counter: number
|
920
|
|
- /**
|
921
|
|
- * 血量
|
922
|
|
- */
|
923
|
|
- readonly hp: number
|
924
|
|
- /**
|
925
|
|
- * 速度
|
926
|
|
- */
|
927
|
|
- readonly speed: number
|
928
|
|
- /**
|
929
|
|
- * 间距
|
930
|
|
- */
|
931
|
|
- readonly gap: number
|
932
|
|
- /**
|
933
|
|
- * 是否是boss
|
934
|
|
- */
|
935
|
|
- readonly isboss: number
|
936
|
|
- /**
|
937
|
|
- * 每只怪增加局内金币
|
938
|
|
- */
|
939
|
|
- readonly perAddCoid: number
|
940
|
|
- /**
|
941
|
|
- * 每只怪增加局内宝石
|
942
|
|
- */
|
943
|
|
- readonly perAddGem: number
|
944
|
|
-
|
945
|
|
- resolve(tables:Tables) {
|
946
|
|
-
|
947
|
|
-
|
948
|
|
-
|
949
|
|
-
|
950
|
|
-
|
951
|
|
-
|
952
|
|
-
|
953
|
|
-
|
954
|
|
-
|
955
|
|
-
|
956
|
|
-
|
957
|
|
- }
|
958
|
|
-}
|
959
|
|
-
|
960
|
|
-
|
961
|
|
-
|
962
|
|
-
|
963
|
|
-
|
964
|
964
|
export class HeroLevel {
|
965
|
965
|
|
966
|
966
|
constructor(_buf_: ByteBuf) {
|