|
@@ -289,91 +289,31 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class Skill {
|
|
292
|
+export class System {
|
293
|
293
|
|
294
|
294
|
constructor(_buf_: ByteBuf) {
|
295
|
295
|
this.idx = _buf_.ReadInt()
|
296
|
|
- this.remark = _buf_.ReadString()
|
297
|
|
- this.skillId = _buf_.ReadInt()
|
298
|
|
- this.skillType = _buf_.ReadInt()
|
299
|
|
- this.cd = _buf_.ReadInt()
|
300
|
|
- this.gridRange = _buf_.ReadInt()
|
301
|
|
- this.range = _buf_.ReadInt()
|
302
|
|
- this.triggerCondition = _buf_.ReadString()
|
303
|
|
- this.effects = _buf_.ReadString()
|
304
|
|
- this.buffId = _buf_.ReadString()
|
305
|
|
- this.skillName = _buf_.ReadString()
|
306
|
|
- this.desc = _buf_.ReadString()
|
307
|
|
- this.conflictSkillId = _buf_.ReadInt()
|
|
296
|
+ this.mainKey = _buf_.ReadString()
|
|
297
|
+ this.value = _buf_.ReadString()
|
308
|
298
|
}
|
309
|
299
|
|
310
|
300
|
/**
|
311
|
|
- * 主键id
|
|
301
|
+ * IDX
|
312
|
302
|
*/
|
313
|
303
|
readonly idx: number
|
314
|
304
|
/**
|
315
|
|
- * 备注
|
316
|
|
- */
|
317
|
|
- readonly remark: string
|
318
|
|
- /**
|
319
|
|
- * 技能ID
|
320
|
|
- */
|
321
|
|
- readonly skillId: number
|
322
|
|
- /**
|
323
|
|
- * 类型
|
324
|
|
- */
|
325
|
|
- readonly skillType: number
|
326
|
|
- /**
|
327
|
|
- * 冷却时间
|
328
|
|
- */
|
329
|
|
- readonly cd: number
|
330
|
|
- /**
|
331
|
|
- * 格子范围
|
332
|
|
- */
|
333
|
|
- readonly gridRange: number
|
334
|
|
- /**
|
335
|
|
- * 攻击距离
|
336
|
|
- */
|
337
|
|
- readonly range: number
|
338
|
|
- /**
|
339
|
|
- * 技能触发条件
|
340
|
|
- */
|
341
|
|
- readonly triggerCondition: string
|
342
|
|
- /**
|
343
|
|
- * 效果列表
|
344
|
|
- */
|
345
|
|
- readonly effects: string
|
346
|
|
- /**
|
347
|
|
- * buff
|
348
|
|
- */
|
349
|
|
- readonly buffId: string
|
350
|
|
- /**
|
351
|
|
- * 技能名字
|
352
|
|
- */
|
353
|
|
- readonly skillName: string
|
354
|
|
- /**
|
355
|
|
- * 技能描述
|
|
305
|
+ * 常量主键
|
356
|
306
|
*/
|
357
|
|
- readonly desc: string
|
|
307
|
+ readonly mainKey: string
|
358
|
308
|
/**
|
359
|
|
- * 冲突的技能id
|
|
309
|
+ * 常量值
|
360
|
310
|
*/
|
361
|
|
- readonly conflictSkillId: number
|
|
311
|
+ readonly value: string
|
362
|
312
|
|
363
|
313
|
resolve(tables:Tables) {
|
364
|
314
|
|
365
|
315
|
|
366
|
316
|
|
367
|
|
-
|
368
|
|
-
|
369
|
|
-
|
370
|
|
-
|
371
|
|
-
|
372
|
|
-
|
373
|
|
-
|
374
|
|
-
|
375
|
|
-
|
376
|
|
-
|
377
|
317
|
}
|
378
|
318
|
}
|
379
|
319
|
|
|
@@ -381,55 +321,37 @@ export class Skill {
|
381
|
321
|
|
382
|
322
|
|
383
|
323
|
|
384
|
|
-export class Hero {
|
|
324
|
+export class HeroQualityWorth {
|
385
|
325
|
|
386
|
326
|
constructor(_buf_: ByteBuf) {
|
387
|
|
- this.id = _buf_.ReadInt()
|
|
327
|
+ this.idx = _buf_.ReadInt()
|
388
|
328
|
this.quality = _buf_.ReadInt()
|
389
|
|
- this.attacktype = _buf_.ReadInt()
|
390
|
|
- this.name = _buf_.ReadString()
|
391
|
|
- { 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);}}
|
392
|
|
- { 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);}}
|
393
|
|
- this.isShow = _buf_.ReadInt()
|
|
329
|
+ this.gold = _buf_.ReadInt()
|
|
330
|
+ this.gem = _buf_.ReadInt()
|
394
|
331
|
}
|
395
|
332
|
|
396
|
333
|
/**
|
397
|
|
- * 英雄ID
|
|
334
|
+ * 唯一id
|
398
|
335
|
*/
|
399
|
|
- readonly id: number
|
|
336
|
+ readonly idx: number
|
400
|
337
|
/**
|
401
|
338
|
* 品质
|
402
|
339
|
*/
|
403
|
340
|
readonly quality: Quality
|
404
|
341
|
/**
|
405
|
|
- * 攻击类型
|
406
|
|
- */
|
407
|
|
- readonly attacktype: AttackType
|
408
|
|
- /**
|
409
|
|
- * 名字
|
410
|
|
- */
|
411
|
|
- readonly name: string
|
412
|
|
- /**
|
413
|
|
- * 技能列表
|
414
|
|
- */
|
415
|
|
- readonly skills: number[]
|
416
|
|
- /**
|
417
|
|
- * 合成英雄公式
|
|
342
|
+ * 局内金币
|
418
|
343
|
*/
|
419
|
|
- readonly composeheros: number[]
|
|
344
|
+ readonly gold: number
|
420
|
345
|
/**
|
421
|
|
- * 是否测试
|
|
346
|
+ * 局内宝石
|
422
|
347
|
*/
|
423
|
|
- readonly isShow: number
|
|
348
|
+ readonly gem: number
|
424
|
349
|
|
425
|
350
|
resolve(tables:Tables) {
|
426
|
351
|
|
427
|
352
|
|
428
|
353
|
|
429
|
354
|
|
430
|
|
-
|
431
|
|
-
|
432
|
|
-
|
433
|
355
|
}
|
434
|
356
|
}
|
435
|
357
|
|
|
@@ -437,13 +359,12 @@ export class Hero {
|
437
|
359
|
|
438
|
360
|
|
439
|
361
|
|
440
|
|
-export class BattleSpacialSummon {
|
|
362
|
+export class BattleSummonWeight {
|
441
|
363
|
|
442
|
364
|
constructor(_buf_: ByteBuf) {
|
443
|
365
|
this.idx = _buf_.ReadInt()
|
444
|
366
|
this.quality = _buf_.ReadInt()
|
445
|
367
|
this.weight = _buf_.ReadInt()
|
446
|
|
- this.costgem = _buf_.ReadInt()
|
447
|
368
|
}
|
448
|
369
|
|
449
|
370
|
/**
|
|
@@ -458,16 +379,11 @@ export class BattleSpacialSummon {
|
458
|
379
|
* 权重
|
459
|
380
|
*/
|
460
|
381
|
readonly weight: number
|
461
|
|
- /**
|
462
|
|
- * 消耗宝石数量
|
463
|
|
- */
|
464
|
|
- readonly costgem: number
|
465
|
382
|
|
466
|
383
|
resolve(tables:Tables) {
|
467
|
384
|
|
468
|
385
|
|
469
|
386
|
|
470
|
|
-
|
471
|
387
|
}
|
472
|
388
|
}
|
473
|
389
|
|
|
@@ -475,37 +391,91 @@ export class BattleSpacialSummon {
|
475
|
391
|
|
476
|
392
|
|
477
|
393
|
|
478
|
|
-export class HeroQualityWorth {
|
|
394
|
+export class Skill {
|
479
|
395
|
|
480
|
396
|
constructor(_buf_: ByteBuf) {
|
481
|
397
|
this.idx = _buf_.ReadInt()
|
482
|
|
- this.quality = _buf_.ReadInt()
|
483
|
|
- this.gold = _buf_.ReadInt()
|
484
|
|
- this.gem = _buf_.ReadInt()
|
|
398
|
+ this.remark = _buf_.ReadString()
|
|
399
|
+ this.skillId = _buf_.ReadInt()
|
|
400
|
+ this.skillType = _buf_.ReadInt()
|
|
401
|
+ this.cd = _buf_.ReadInt()
|
|
402
|
+ this.gridRange = _buf_.ReadInt()
|
|
403
|
+ this.range = _buf_.ReadInt()
|
|
404
|
+ this.triggerCondition = _buf_.ReadString()
|
|
405
|
+ this.effects = _buf_.ReadString()
|
|
406
|
+ this.buffId = _buf_.ReadString()
|
|
407
|
+ this.skillName = _buf_.ReadString()
|
|
408
|
+ this.desc = _buf_.ReadString()
|
|
409
|
+ this.conflictSkillId = _buf_.ReadInt()
|
485
|
410
|
}
|
486
|
411
|
|
487
|
412
|
/**
|
488
|
|
- * 唯一id
|
|
413
|
+ * 主键id
|
489
|
414
|
*/
|
490
|
415
|
readonly idx: number
|
491
|
416
|
/**
|
492
|
|
- * 品质
|
|
417
|
+ * 备注
|
493
|
418
|
*/
|
494
|
|
- readonly quality: Quality
|
|
419
|
+ readonly remark: string
|
495
|
420
|
/**
|
496
|
|
- * 局内金币
|
|
421
|
+ * 技能ID
|
497
|
422
|
*/
|
498
|
|
- readonly gold: number
|
|
423
|
+ readonly skillId: number
|
499
|
424
|
/**
|
500
|
|
- * 局内宝石
|
|
425
|
+ * 类型
|
501
|
426
|
*/
|
502
|
|
- readonly gem: number
|
|
427
|
+ readonly skillType: number
|
|
428
|
+ /**
|
|
429
|
+ * 冷却时间
|
|
430
|
+ */
|
|
431
|
+ readonly cd: number
|
|
432
|
+ /**
|
|
433
|
+ * 格子范围
|
|
434
|
+ */
|
|
435
|
+ readonly gridRange: number
|
|
436
|
+ /**
|
|
437
|
+ * 攻击距离
|
|
438
|
+ */
|
|
439
|
+ readonly range: number
|
|
440
|
+ /**
|
|
441
|
+ * 技能触发条件
|
|
442
|
+ */
|
|
443
|
+ readonly triggerCondition: string
|
|
444
|
+ /**
|
|
445
|
+ * 效果列表
|
|
446
|
+ */
|
|
447
|
+ readonly effects: string
|
|
448
|
+ /**
|
|
449
|
+ * buff
|
|
450
|
+ */
|
|
451
|
+ readonly buffId: string
|
|
452
|
+ /**
|
|
453
|
+ * 技能名字
|
|
454
|
+ */
|
|
455
|
+ readonly skillName: string
|
|
456
|
+ /**
|
|
457
|
+ * 技能描述
|
|
458
|
+ */
|
|
459
|
+ readonly desc: string
|
|
460
|
+ /**
|
|
461
|
+ * 冲突的技能id
|
|
462
|
+ */
|
|
463
|
+ readonly conflictSkillId: number
|
503
|
464
|
|
504
|
465
|
resolve(tables:Tables) {
|
505
|
466
|
|
506
|
467
|
|
507
|
468
|
|
508
|
469
|
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
509
|
479
|
}
|
510
|
480
|
}
|
511
|
481
|
|
|
@@ -513,26 +483,26 @@ export class HeroQualityWorth {
|
513
|
483
|
|
514
|
484
|
|
515
|
485
|
|
516
|
|
-export class System {
|
|
486
|
+export class Item {
|
517
|
487
|
|
518
|
488
|
constructor(_buf_: ByteBuf) {
|
519
|
489
|
this.idx = _buf_.ReadInt()
|
520
|
|
- this.mainKey = _buf_.ReadString()
|
521
|
|
- this.value = _buf_.ReadString()
|
|
490
|
+ this.type = _buf_.ReadInt()
|
|
491
|
+ this.name = _buf_.ReadString()
|
522
|
492
|
}
|
523
|
493
|
|
524
|
494
|
/**
|
525
|
|
- * IDX
|
|
495
|
+ * 道具ID
|
526
|
496
|
*/
|
527
|
497
|
readonly idx: number
|
528
|
498
|
/**
|
529
|
|
- * 常量主键
|
|
499
|
+ * 类型
|
530
|
500
|
*/
|
531
|
|
- readonly mainKey: string
|
|
501
|
+ readonly type: number
|
532
|
502
|
/**
|
533
|
|
- * 常量值
|
|
503
|
+ * 道具名
|
534
|
504
|
*/
|
535
|
|
- readonly value: string
|
|
505
|
+ readonly name: string
|
536
|
506
|
|
537
|
507
|
resolve(tables:Tables) {
|
538
|
508
|
|
|
@@ -545,75 +515,55 @@ export class System {
|
545
|
515
|
|
546
|
516
|
|
547
|
517
|
|
548
|
|
-export class WaveRewards {
|
|
518
|
+export class Hero {
|
549
|
519
|
|
550
|
520
|
constructor(_buf_: ByteBuf) {
|
551
|
|
- this.idx = _buf_.ReadInt()
|
552
|
|
- this.waveMin = _buf_.ReadInt()
|
553
|
|
- this.waveMax = _buf_.ReadInt()
|
554
|
|
- this.level = _buf_.ReadInt()
|
555
|
|
- { 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);}}
|
|
521
|
+ this.id = _buf_.ReadInt()
|
|
522
|
+ this.quality = _buf_.ReadInt()
|
|
523
|
+ this.attacktype = _buf_.ReadInt()
|
|
524
|
+ this.name = _buf_.ReadString()
|
|
525
|
+ { 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);}}
|
|
526
|
+ { 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);}}
|
|
527
|
+ this.isShow = _buf_.ReadInt()
|
556
|
528
|
}
|
557
|
529
|
|
558
|
530
|
/**
|
559
|
|
- * idx
|
560
|
|
- */
|
561
|
|
- readonly idx: number
|
562
|
|
- /**
|
563
|
|
- * 波数下限
|
|
531
|
+ * 英雄ID
|
564
|
532
|
*/
|
565
|
|
- readonly waveMin: number
|
|
533
|
+ readonly id: number
|
566
|
534
|
/**
|
567
|
|
- * 波数上限
|
|
535
|
+ * 品质
|
568
|
536
|
*/
|
569
|
|
- readonly waveMax: number
|
|
537
|
+ readonly quality: Quality
|
570
|
538
|
/**
|
571
|
|
- * 难度
|
|
539
|
+ * 攻击类型
|
572
|
540
|
*/
|
573
|
|
- readonly level: number
|
|
541
|
+ readonly attacktype: AttackType
|
574
|
542
|
/**
|
575
|
|
- * 奖励列表
|
|
543
|
+ * 名字
|
576
|
544
|
*/
|
577
|
|
- readonly rewards: Common.Reward[]
|
578
|
|
-
|
579
|
|
- resolve(tables:Tables) {
|
580
|
|
-
|
581
|
|
-
|
582
|
|
-
|
583
|
|
-
|
584
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
585
|
|
- }
|
586
|
|
-}
|
587
|
|
-
|
588
|
|
-
|
589
|
|
-
|
590
|
|
-
|
591
|
|
-
|
592
|
|
-export class Item {
|
593
|
|
-
|
594
|
|
- constructor(_buf_: ByteBuf) {
|
595
|
|
- this.idx = _buf_.ReadInt()
|
596
|
|
- this.type = _buf_.ReadInt()
|
597
|
|
- this.name = _buf_.ReadString()
|
598
|
|
- }
|
599
|
|
-
|
|
545
|
+ readonly name: string
|
600
|
546
|
/**
|
601
|
|
- * 道具ID
|
|
547
|
+ * 技能列表
|
602
|
548
|
*/
|
603
|
|
- readonly idx: number
|
|
549
|
+ readonly skills: number[]
|
604
|
550
|
/**
|
605
|
|
- * 类型
|
|
551
|
+ * 合成英雄公式
|
606
|
552
|
*/
|
607
|
|
- readonly type: number
|
|
553
|
+ readonly composeheros: number[]
|
608
|
554
|
/**
|
609
|
|
- * 道具名
|
|
555
|
+ * 是否测试
|
610
|
556
|
*/
|
611
|
|
- readonly name: string
|
|
557
|
+ readonly isShow: number
|
612
|
558
|
|
613
|
559
|
resolve(tables:Tables) {
|
614
|
560
|
|
615
|
561
|
|
616
|
562
|
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
617
|
567
|
}
|
618
|
568
|
}
|
619
|
569
|
|
|
@@ -725,38 +675,6 @@ export class SkillBuff {
|
725
|
675
|
|
726
|
676
|
|
727
|
677
|
|
728
|
|
-export class BattleSummonWeight {
|
729
|
|
-
|
730
|
|
- constructor(_buf_: ByteBuf) {
|
731
|
|
- this.idx = _buf_.ReadInt()
|
732
|
|
- this.quality = _buf_.ReadInt()
|
733
|
|
- this.weight = _buf_.ReadInt()
|
734
|
|
- }
|
735
|
|
-
|
736
|
|
- /**
|
737
|
|
- * 唯一id
|
738
|
|
- */
|
739
|
|
- readonly idx: number
|
740
|
|
- /**
|
741
|
|
- * 品质
|
742
|
|
- */
|
743
|
|
- readonly quality: Quality
|
744
|
|
- /**
|
745
|
|
- * 权重
|
746
|
|
- */
|
747
|
|
- readonly weight: number
|
748
|
|
-
|
749
|
|
- resolve(tables:Tables) {
|
750
|
|
-
|
751
|
|
-
|
752
|
|
-
|
753
|
|
- }
|
754
|
|
-}
|
755
|
|
-
|
756
|
|
-
|
757
|
|
-
|
758
|
|
-
|
759
|
|
-
|
760
|
678
|
export class Wave {
|
761
|
679
|
|
762
|
680
|
constructor(_buf_: ByteBuf) {
|
|
@@ -837,6 +755,88 @@ export class Wave {
|
837
|
755
|
|
838
|
756
|
|
839
|
757
|
|
|
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) {
|