|
@@ -289,38 +289,6 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class System {
|
293
|
|
-
|
294
|
|
- constructor(_buf_: ByteBuf) {
|
295
|
|
- this.idx = _buf_.ReadInt()
|
296
|
|
- this.mainKey = _buf_.ReadString()
|
297
|
|
- this.value = _buf_.ReadString()
|
298
|
|
- }
|
299
|
|
-
|
300
|
|
- /**
|
301
|
|
- * IDX
|
302
|
|
- */
|
303
|
|
- readonly idx: number
|
304
|
|
- /**
|
305
|
|
- * 常量主键
|
306
|
|
- */
|
307
|
|
- readonly mainKey: string
|
308
|
|
- /**
|
309
|
|
- * 常量值
|
310
|
|
- */
|
311
|
|
- readonly value: string
|
312
|
|
-
|
313
|
|
- resolve(tables:Tables) {
|
314
|
|
-
|
315
|
|
-
|
316
|
|
-
|
317
|
|
- }
|
318
|
|
-}
|
319
|
|
-
|
320
|
|
-
|
321
|
|
-
|
322
|
|
-
|
323
|
|
-
|
324
|
292
|
export class Skill {
|
325
|
293
|
|
326
|
294
|
constructor(_buf_: ByteBuf) {
|
|
@@ -407,50 +375,6 @@ export class Skill {
|
407
|
375
|
|
408
|
376
|
|
409
|
377
|
|
410
|
|
-export class WaveRewards {
|
411
|
|
-
|
412
|
|
- constructor(_buf_: ByteBuf) {
|
413
|
|
- this.idx = _buf_.ReadInt()
|
414
|
|
- this.waveMin = _buf_.ReadInt()
|
415
|
|
- this.waveMax = _buf_.ReadInt()
|
416
|
|
- this.level = _buf_.ReadInt()
|
417
|
|
- { 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);}}
|
418
|
|
- }
|
419
|
|
-
|
420
|
|
- /**
|
421
|
|
- * idx
|
422
|
|
- */
|
423
|
|
- readonly idx: number
|
424
|
|
- /**
|
425
|
|
- * 波数下限
|
426
|
|
- */
|
427
|
|
- readonly waveMin: number
|
428
|
|
- /**
|
429
|
|
- * 波数上限
|
430
|
|
- */
|
431
|
|
- readonly waveMax: number
|
432
|
|
- /**
|
433
|
|
- * 难度
|
434
|
|
- */
|
435
|
|
- readonly level: number
|
436
|
|
- /**
|
437
|
|
- * 奖励列表
|
438
|
|
- */
|
439
|
|
- readonly rewards: Common.Reward[]
|
440
|
|
-
|
441
|
|
- resolve(tables:Tables) {
|
442
|
|
-
|
443
|
|
-
|
444
|
|
-
|
445
|
|
-
|
446
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
447
|
|
- }
|
448
|
|
-}
|
449
|
|
-
|
450
|
|
-
|
451
|
|
-
|
452
|
|
-
|
453
|
|
-
|
454
|
378
|
export class SkillBuff {
|
455
|
379
|
|
456
|
380
|
constructor(_buf_: ByteBuf) {
|
|
@@ -555,6 +479,38 @@ export class SkillBuff {
|
555
|
479
|
|
556
|
480
|
|
557
|
481
|
|
|
482
|
+export class Item {
|
|
483
|
+
|
|
484
|
+ constructor(_buf_: ByteBuf) {
|
|
485
|
+ this.idx = _buf_.ReadInt()
|
|
486
|
+ this.type = _buf_.ReadInt()
|
|
487
|
+ this.name = _buf_.ReadString()
|
|
488
|
+ }
|
|
489
|
+
|
|
490
|
+ /**
|
|
491
|
+ * 道具ID
|
|
492
|
+ */
|
|
493
|
+ readonly idx: number
|
|
494
|
+ /**
|
|
495
|
+ * 类型
|
|
496
|
+ */
|
|
497
|
+ readonly type: number
|
|
498
|
+ /**
|
|
499
|
+ * 道具名
|
|
500
|
+ */
|
|
501
|
+ readonly name: string
|
|
502
|
+
|
|
503
|
+ resolve(tables:Tables) {
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+ }
|
|
508
|
+}
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
558
|
514
|
export class Hero {
|
559
|
515
|
|
560
|
516
|
constructor(_buf_: ByteBuf) {
|
|
@@ -599,26 +555,70 @@ export class Hero {
|
599
|
555
|
|
600
|
556
|
|
601
|
557
|
|
602
|
|
-export class Item {
|
|
558
|
+export class WaveRewards {
|
603
|
559
|
|
604
|
560
|
constructor(_buf_: ByteBuf) {
|
605
|
561
|
this.idx = _buf_.ReadInt()
|
606
|
|
- this.type = _buf_.ReadInt()
|
607
|
|
- this.name = _buf_.ReadString()
|
|
562
|
+ this.waveMin = _buf_.ReadInt()
|
|
563
|
+ this.waveMax = _buf_.ReadInt()
|
|
564
|
+ this.level = _buf_.ReadInt()
|
|
565
|
+ { 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);}}
|
608
|
566
|
}
|
609
|
567
|
|
610
|
568
|
/**
|
611
|
|
- * 道具ID
|
|
569
|
+ * idx
|
612
|
570
|
*/
|
613
|
571
|
readonly idx: number
|
614
|
572
|
/**
|
615
|
|
- * 类型
|
|
573
|
+ * 波数下限
|
616
|
574
|
*/
|
617
|
|
- readonly type: number
|
|
575
|
+ readonly waveMin: number
|
618
|
576
|
/**
|
619
|
|
- * 道具名
|
|
577
|
+ * 波数上限
|
620
|
578
|
*/
|
621
|
|
- readonly name: string
|
|
579
|
+ readonly waveMax: number
|
|
580
|
+ /**
|
|
581
|
+ * 难度
|
|
582
|
+ */
|
|
583
|
+ readonly level: number
|
|
584
|
+ /**
|
|
585
|
+ * 奖励列表
|
|
586
|
+ */
|
|
587
|
+ readonly rewards: Common.Reward[]
|
|
588
|
+
|
|
589
|
+ resolve(tables:Tables) {
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
|
595
|
+ }
|
|
596
|
+}
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+export class System {
|
|
603
|
+
|
|
604
|
+ constructor(_buf_: ByteBuf) {
|
|
605
|
+ this.idx = _buf_.ReadInt()
|
|
606
|
+ this.mainKey = _buf_.ReadString()
|
|
607
|
+ this.value = _buf_.ReadString()
|
|
608
|
+ }
|
|
609
|
+
|
|
610
|
+ /**
|
|
611
|
+ * IDX
|
|
612
|
+ */
|
|
613
|
+ readonly idx: number
|
|
614
|
+ /**
|
|
615
|
+ * 常量主键
|
|
616
|
+ */
|
|
617
|
+ readonly mainKey: string
|
|
618
|
+ /**
|
|
619
|
+ * 常量值
|
|
620
|
+ */
|
|
621
|
+ readonly value: string
|
622
|
622
|
|
623
|
623
|
resolve(tables:Tables) {
|
624
|
624
|
|