|
@@ -321,6 +321,50 @@ export class Item {
|
321
|
321
|
|
322
|
322
|
|
323
|
323
|
|
|
324
|
+export class Hero {
|
|
325
|
+
|
|
326
|
+ constructor(_buf_: ByteBuf) {
|
|
327
|
+ this.id = _buf_.ReadInt()
|
|
328
|
+ this.quality = _buf_.ReadInt()
|
|
329
|
+ this.attacktype = _buf_.ReadInt()
|
|
330
|
+ this.name = _buf_.ReadString()
|
|
331
|
+ { 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);}}
|
|
332
|
+ }
|
|
333
|
+
|
|
334
|
+ /**
|
|
335
|
+ * 英雄ID
|
|
336
|
+ */
|
|
337
|
+ readonly id: number
|
|
338
|
+ /**
|
|
339
|
+ * 品质
|
|
340
|
+ */
|
|
341
|
+ readonly quality: Quality
|
|
342
|
+ /**
|
|
343
|
+ * 攻击类型
|
|
344
|
+ */
|
|
345
|
+ readonly attacktype: AttackType
|
|
346
|
+ /**
|
|
347
|
+ * 名字
|
|
348
|
+ */
|
|
349
|
+ readonly name: string
|
|
350
|
+ /**
|
|
351
|
+ * 技能列表
|
|
352
|
+ */
|
|
353
|
+ readonly skills: number[]
|
|
354
|
+
|
|
355
|
+ resolve(tables:Tables) {
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+ }
|
|
362
|
+}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
324
|
368
|
export class WaveRewards {
|
325
|
369
|
|
326
|
370
|
constructor(_buf_: ByteBuf) {
|
|
@@ -365,6 +409,92 @@ export class WaveRewards {
|
365
|
409
|
|
366
|
410
|
|
367
|
411
|
|
|
412
|
+export class Skill {
|
|
413
|
+
|
|
414
|
+ constructor(_buf_: ByteBuf) {
|
|
415
|
+ this.idx = _buf_.ReadInt()
|
|
416
|
+ this.remark = _buf_.ReadString()
|
|
417
|
+ this.skillId = _buf_.ReadInt()
|
|
418
|
+ this.level = _buf_.ReadInt()
|
|
419
|
+ this.skillType = _buf_.ReadInt()
|
|
420
|
+ this.cd = _buf_.ReadInt()
|
|
421
|
+ this.triggerCondition = _buf_.ReadString()
|
|
422
|
+ this.effects = _buf_.ReadString()
|
|
423
|
+ this.buffId = _buf_.ReadString()
|
|
424
|
+ this.skillName = _buf_.ReadString()
|
|
425
|
+ this.desc = _buf_.ReadString()
|
|
426
|
+ this.conflictSkillId = _buf_.ReadInt()
|
|
427
|
+ }
|
|
428
|
+
|
|
429
|
+ /**
|
|
430
|
+ * 主键id
|
|
431
|
+ */
|
|
432
|
+ readonly idx: number
|
|
433
|
+ /**
|
|
434
|
+ * 备注
|
|
435
|
+ */
|
|
436
|
+ readonly remark: string
|
|
437
|
+ /**
|
|
438
|
+ * 技能ID
|
|
439
|
+ */
|
|
440
|
+ readonly skillId: number
|
|
441
|
+ /**
|
|
442
|
+ * 等级
|
|
443
|
+ */
|
|
444
|
+ readonly level: number
|
|
445
|
+ /**
|
|
446
|
+ * 类型
|
|
447
|
+ */
|
|
448
|
+ readonly skillType: number
|
|
449
|
+ /**
|
|
450
|
+ * 冷却时间
|
|
451
|
+ */
|
|
452
|
+ readonly cd: number
|
|
453
|
+ /**
|
|
454
|
+ * 技能触发条件
|
|
455
|
+ */
|
|
456
|
+ readonly triggerCondition: string
|
|
457
|
+ /**
|
|
458
|
+ * 效果列表
|
|
459
|
+ */
|
|
460
|
+ readonly effects: string
|
|
461
|
+ /**
|
|
462
|
+ * buff
|
|
463
|
+ */
|
|
464
|
+ readonly buffId: string
|
|
465
|
+ /**
|
|
466
|
+ * 技能名字
|
|
467
|
+ */
|
|
468
|
+ readonly skillName: string
|
|
469
|
+ /**
|
|
470
|
+ * 技能描述
|
|
471
|
+ */
|
|
472
|
+ readonly desc: string
|
|
473
|
+ /**
|
|
474
|
+ * 冲突的技能id
|
|
475
|
+ */
|
|
476
|
+ readonly conflictSkillId: number
|
|
477
|
+
|
|
478
|
+ resolve(tables:Tables) {
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+ }
|
|
492
|
+}
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
368
|
498
|
export class System {
|
369
|
499
|
|
370
|
500
|
constructor(_buf_: ByteBuf) {
|
|
@@ -501,136 +631,6 @@ export class SkillBuff {
|
501
|
631
|
|
502
|
632
|
|
503
|
633
|
|
504
|
|
-export class Skill {
|
505
|
|
-
|
506
|
|
- constructor(_buf_: ByteBuf) {
|
507
|
|
- this.idx = _buf_.ReadInt()
|
508
|
|
- this.remark = _buf_.ReadString()
|
509
|
|
- this.skillId = _buf_.ReadInt()
|
510
|
|
- this.level = _buf_.ReadInt()
|
511
|
|
- this.skillType = _buf_.ReadInt()
|
512
|
|
- this.cd = _buf_.ReadInt()
|
513
|
|
- this.triggerCondition = _buf_.ReadString()
|
514
|
|
- this.effects = _buf_.ReadString()
|
515
|
|
- this.buffId = _buf_.ReadString()
|
516
|
|
- this.skillName = _buf_.ReadString()
|
517
|
|
- this.desc = _buf_.ReadString()
|
518
|
|
- this.conflictSkillId = _buf_.ReadInt()
|
519
|
|
- }
|
520
|
|
-
|
521
|
|
- /**
|
522
|
|
- * 主键id
|
523
|
|
- */
|
524
|
|
- readonly idx: number
|
525
|
|
- /**
|
526
|
|
- * 备注
|
527
|
|
- */
|
528
|
|
- readonly remark: string
|
529
|
|
- /**
|
530
|
|
- * 技能ID
|
531
|
|
- */
|
532
|
|
- readonly skillId: number
|
533
|
|
- /**
|
534
|
|
- * 等级
|
535
|
|
- */
|
536
|
|
- readonly level: number
|
537
|
|
- /**
|
538
|
|
- * 类型
|
539
|
|
- */
|
540
|
|
- readonly skillType: number
|
541
|
|
- /**
|
542
|
|
- * 冷却时间
|
543
|
|
- */
|
544
|
|
- readonly cd: number
|
545
|
|
- /**
|
546
|
|
- * 技能触发条件
|
547
|
|
- */
|
548
|
|
- readonly triggerCondition: string
|
549
|
|
- /**
|
550
|
|
- * 效果列表
|
551
|
|
- */
|
552
|
|
- readonly effects: string
|
553
|
|
- /**
|
554
|
|
- * buff
|
555
|
|
- */
|
556
|
|
- readonly buffId: string
|
557
|
|
- /**
|
558
|
|
- * 技能名字
|
559
|
|
- */
|
560
|
|
- readonly skillName: string
|
561
|
|
- /**
|
562
|
|
- * 技能描述
|
563
|
|
- */
|
564
|
|
- readonly desc: string
|
565
|
|
- /**
|
566
|
|
- * 冲突的技能id
|
567
|
|
- */
|
568
|
|
- readonly conflictSkillId: number
|
569
|
|
-
|
570
|
|
- resolve(tables:Tables) {
|
571
|
|
-
|
572
|
|
-
|
573
|
|
-
|
574
|
|
-
|
575
|
|
-
|
576
|
|
-
|
577
|
|
-
|
578
|
|
-
|
579
|
|
-
|
580
|
|
-
|
581
|
|
-
|
582
|
|
-
|
583
|
|
- }
|
584
|
|
-}
|
585
|
|
-
|
586
|
|
-
|
587
|
|
-
|
588
|
|
-
|
589
|
|
-
|
590
|
|
-export class Hero {
|
591
|
|
-
|
592
|
|
- constructor(_buf_: ByteBuf) {
|
593
|
|
- this.id = _buf_.ReadInt()
|
594
|
|
- this.quality = _buf_.ReadInt()
|
595
|
|
- this.attacktype = _buf_.ReadInt()
|
596
|
|
- this.name = _buf_.ReadString()
|
597
|
|
- { 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);}}
|
598
|
|
- }
|
599
|
|
-
|
600
|
|
- /**
|
601
|
|
- * 英雄ID
|
602
|
|
- */
|
603
|
|
- readonly id: number
|
604
|
|
- /**
|
605
|
|
- * 品质
|
606
|
|
- */
|
607
|
|
- readonly quality: Quality
|
608
|
|
- /**
|
609
|
|
- * 攻击类型
|
610
|
|
- */
|
611
|
|
- readonly attacktype: AttackType
|
612
|
|
- /**
|
613
|
|
- * 名字
|
614
|
|
- */
|
615
|
|
- readonly name: string
|
616
|
|
- /**
|
617
|
|
- * 技能列表
|
618
|
|
- */
|
619
|
|
- readonly skills: number[]
|
620
|
|
-
|
621
|
|
- resolve(tables:Tables) {
|
622
|
|
-
|
623
|
|
-
|
624
|
|
-
|
625
|
|
-
|
626
|
|
-
|
627
|
|
- }
|
628
|
|
-}
|
629
|
|
-
|
630
|
|
-
|
631
|
|
-
|
632
|
|
-
|
633
|
|
-
|
634
|
634
|
export class Wave {
|
635
|
635
|
|
636
|
636
|
constructor(_buf_: ByteBuf) {
|