|
@@ -263,70 +263,6 @@ export class Reward {
|
263
|
263
|
|
264
|
264
|
|
265
|
265
|
|
266
|
|
-export class Item {
|
267
|
|
-
|
268
|
|
- constructor(_buf_: ByteBuf) {
|
269
|
|
- this.idx = _buf_.ReadInt()
|
270
|
|
- this.type = _buf_.ReadInt()
|
271
|
|
- this.name = _buf_.ReadString()
|
272
|
|
- }
|
273
|
|
-
|
274
|
|
- /**
|
275
|
|
- * 道具ID
|
276
|
|
- */
|
277
|
|
- readonly idx: number
|
278
|
|
- /**
|
279
|
|
- * 类型
|
280
|
|
- */
|
281
|
|
- readonly type: number
|
282
|
|
- /**
|
283
|
|
- * 道具名
|
284
|
|
- */
|
285
|
|
- readonly name: string
|
286
|
|
-
|
287
|
|
- resolve(tables:Tables) {
|
288
|
|
-
|
289
|
|
-
|
290
|
|
-
|
291
|
|
- }
|
292
|
|
-}
|
293
|
|
-
|
294
|
|
-
|
295
|
|
-
|
296
|
|
-
|
297
|
|
-
|
298
|
|
-export class System {
|
299
|
|
-
|
300
|
|
- constructor(_buf_: ByteBuf) {
|
301
|
|
- this.idx = _buf_.ReadInt()
|
302
|
|
- this.mainKey = _buf_.ReadString()
|
303
|
|
- this.value = _buf_.ReadString()
|
304
|
|
- }
|
305
|
|
-
|
306
|
|
- /**
|
307
|
|
- * IDX
|
308
|
|
- */
|
309
|
|
- readonly idx: number
|
310
|
|
- /**
|
311
|
|
- * 常量主键
|
312
|
|
- */
|
313
|
|
- readonly mainKey: string
|
314
|
|
- /**
|
315
|
|
- * 常量值
|
316
|
|
- */
|
317
|
|
- readonly value: string
|
318
|
|
-
|
319
|
|
- resolve(tables:Tables) {
|
320
|
|
-
|
321
|
|
-
|
322
|
|
-
|
323
|
|
- }
|
324
|
|
-}
|
325
|
|
-
|
326
|
|
-
|
327
|
|
-
|
328
|
|
-
|
329
|
|
-
|
330
|
266
|
export class Skill {
|
331
|
267
|
|
332
|
268
|
constructor(_buf_: ByteBuf) {
|
|
@@ -413,93 +349,31 @@ export class Skill {
|
413
|
349
|
|
414
|
350
|
|
415
|
351
|
|
416
|
|
-export class HeroLevel {
|
417
|
|
-
|
418
|
|
- constructor(_buf_: ByteBuf) {
|
419
|
|
- this.id = _buf_.ReadInt()
|
420
|
|
- this.level = _buf_.ReadInt()
|
421
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
|
422
|
|
- this.unlockSkillDesc = _buf_.ReadString()
|
423
|
|
- this.atk = _buf_.ReadInt()
|
424
|
|
- this.atkSpeed = _buf_.ReadInt()
|
425
|
|
- }
|
426
|
|
-
|
427
|
|
- /**
|
428
|
|
- * 英雄ID
|
429
|
|
- */
|
430
|
|
- readonly id: number
|
431
|
|
- /**
|
432
|
|
- * 等级
|
433
|
|
- */
|
434
|
|
- readonly level: number
|
435
|
|
- /**
|
436
|
|
- * 英雄解锁技能
|
437
|
|
- */
|
438
|
|
- readonly unlockSkill: number[]
|
439
|
|
- /**
|
440
|
|
- * 解锁技能描述
|
441
|
|
- */
|
442
|
|
- readonly unlockSkillDesc: string
|
443
|
|
- /**
|
444
|
|
- * 攻击力
|
445
|
|
- */
|
446
|
|
- readonly atk: number
|
447
|
|
- /**
|
448
|
|
- * 攻击速度
|
449
|
|
- */
|
450
|
|
- readonly atkSpeed: number
|
451
|
|
-
|
452
|
|
- resolve(tables:Tables) {
|
453
|
|
-
|
454
|
|
-
|
455
|
|
-
|
456
|
|
-
|
457
|
|
-
|
458
|
|
-
|
459
|
|
- }
|
460
|
|
-}
|
461
|
|
-
|
462
|
|
-
|
463
|
|
-
|
464
|
|
-
|
465
|
|
-
|
466
|
|
-export class WaveRewards {
|
|
352
|
+export class System {
|
467
|
353
|
|
468
|
354
|
constructor(_buf_: ByteBuf) {
|
469
|
355
|
this.idx = _buf_.ReadInt()
|
470
|
|
- this.waveMin = _buf_.ReadInt()
|
471
|
|
- this.waveMax = _buf_.ReadInt()
|
472
|
|
- this.level = _buf_.ReadInt()
|
473
|
|
- { 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);}}
|
|
356
|
+ this.mainKey = _buf_.ReadString()
|
|
357
|
+ this.value = _buf_.ReadString()
|
474
|
358
|
}
|
475
|
359
|
|
476
|
360
|
/**
|
477
|
|
- * idx
|
|
361
|
+ * IDX
|
478
|
362
|
*/
|
479
|
363
|
readonly idx: number
|
480
|
364
|
/**
|
481
|
|
- * 波数下限
|
482
|
|
- */
|
483
|
|
- readonly waveMin: number
|
484
|
|
- /**
|
485
|
|
- * 波数上限
|
486
|
|
- */
|
487
|
|
- readonly waveMax: number
|
488
|
|
- /**
|
489
|
|
- * 难度
|
|
365
|
+ * 常量主键
|
490
|
366
|
*/
|
491
|
|
- readonly level: number
|
|
367
|
+ readonly mainKey: string
|
492
|
368
|
/**
|
493
|
|
- * 奖励列表
|
|
369
|
+ * 常量值
|
494
|
370
|
*/
|
495
|
|
- readonly rewards: Common.Reward[]
|
|
371
|
+ readonly value: string
|
496
|
372
|
|
497
|
373
|
resolve(tables:Tables) {
|
498
|
374
|
|
499
|
375
|
|
500
|
376
|
|
501
|
|
-
|
502
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
503
|
377
|
}
|
504
|
378
|
}
|
505
|
379
|
|
|
@@ -581,6 +455,38 @@ export class Wave {
|
581
|
455
|
|
582
|
456
|
|
583
|
457
|
|
|
458
|
+export class Item {
|
|
459
|
+
|
|
460
|
+ constructor(_buf_: ByteBuf) {
|
|
461
|
+ this.idx = _buf_.ReadInt()
|
|
462
|
+ this.type = _buf_.ReadInt()
|
|
463
|
+ this.name = _buf_.ReadString()
|
|
464
|
+ }
|
|
465
|
+
|
|
466
|
+ /**
|
|
467
|
+ * 道具ID
|
|
468
|
+ */
|
|
469
|
+ readonly idx: number
|
|
470
|
+ /**
|
|
471
|
+ * 类型
|
|
472
|
+ */
|
|
473
|
+ readonly type: number
|
|
474
|
+ /**
|
|
475
|
+ * 道具名
|
|
476
|
+ */
|
|
477
|
+ readonly name: string
|
|
478
|
+
|
|
479
|
+ resolve(tables:Tables) {
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+ }
|
|
484
|
+}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
584
|
490
|
export class Hero {
|
585
|
491
|
|
586
|
492
|
constructor(_buf_: ByteBuf) {
|
|
@@ -625,6 +531,100 @@ export class Hero {
|
625
|
531
|
|
626
|
532
|
|
627
|
533
|
|
|
534
|
+export class WaveRewards {
|
|
535
|
+
|
|
536
|
+ constructor(_buf_: ByteBuf) {
|
|
537
|
+ this.idx = _buf_.ReadInt()
|
|
538
|
+ this.waveMin = _buf_.ReadInt()
|
|
539
|
+ this.waveMax = _buf_.ReadInt()
|
|
540
|
+ this.level = _buf_.ReadInt()
|
|
541
|
+ { 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);}}
|
|
542
|
+ }
|
|
543
|
+
|
|
544
|
+ /**
|
|
545
|
+ * idx
|
|
546
|
+ */
|
|
547
|
+ readonly idx: number
|
|
548
|
+ /**
|
|
549
|
+ * 波数下限
|
|
550
|
+ */
|
|
551
|
+ readonly waveMin: number
|
|
552
|
+ /**
|
|
553
|
+ * 波数上限
|
|
554
|
+ */
|
|
555
|
+ readonly waveMax: number
|
|
556
|
+ /**
|
|
557
|
+ * 难度
|
|
558
|
+ */
|
|
559
|
+ readonly level: number
|
|
560
|
+ /**
|
|
561
|
+ * 奖励列表
|
|
562
|
+ */
|
|
563
|
+ readonly rewards: Common.Reward[]
|
|
564
|
+
|
|
565
|
+ resolve(tables:Tables) {
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
|
571
|
+ }
|
|
572
|
+}
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+export class HeroLevel {
|
|
579
|
+
|
|
580
|
+ constructor(_buf_: ByteBuf) {
|
|
581
|
+ this.id = _buf_.ReadInt()
|
|
582
|
+ this.level = _buf_.ReadInt()
|
|
583
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
|
|
584
|
+ this.unlockSkillDesc = _buf_.ReadString()
|
|
585
|
+ this.atk = _buf_.ReadInt()
|
|
586
|
+ this.atkSpeed = _buf_.ReadInt()
|
|
587
|
+ }
|
|
588
|
+
|
|
589
|
+ /**
|
|
590
|
+ * 英雄ID
|
|
591
|
+ */
|
|
592
|
+ readonly id: number
|
|
593
|
+ /**
|
|
594
|
+ * 等级
|
|
595
|
+ */
|
|
596
|
+ readonly level: number
|
|
597
|
+ /**
|
|
598
|
+ * 英雄解锁技能
|
|
599
|
+ */
|
|
600
|
+ readonly unlockSkill: number[]
|
|
601
|
+ /**
|
|
602
|
+ * 解锁技能描述
|
|
603
|
+ */
|
|
604
|
+ readonly unlockSkillDesc: string
|
|
605
|
+ /**
|
|
606
|
+ * 攻击力
|
|
607
|
+ */
|
|
608
|
+ readonly atk: number
|
|
609
|
+ /**
|
|
610
|
+ * 攻击速度
|
|
611
|
+ */
|
|
612
|
+ readonly atkSpeed: number
|
|
613
|
+
|
|
614
|
+ resolve(tables:Tables) {
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+ }
|
|
622
|
+}
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
628
|
628
|
export class SkillBuff {
|
629
|
629
|
|
630
|
630
|
constructor(_buf_: ByteBuf) {
|