|
@@ -263,149 +263,43 @@ 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 Skill {
|
|
266
|
+export class WaveRewards {
|
299
|
267
|
|
300
|
268
|
constructor(_buf_: ByteBuf) {
|
301
|
269
|
this.idx = _buf_.ReadInt()
|
302
|
|
- this.remark = _buf_.ReadString()
|
303
|
|
- this.skillId = _buf_.ReadInt()
|
|
270
|
+ this.waveMin = _buf_.ReadInt()
|
|
271
|
+ this.waveMax = _buf_.ReadInt()
|
304
|
272
|
this.level = _buf_.ReadInt()
|
305
|
|
- this.skillType = _buf_.ReadInt()
|
306
|
|
- this.cd = _buf_.ReadInt()
|
307
|
|
- this.triggerCondition = _buf_.ReadString()
|
308
|
|
- this.effects = _buf_.ReadString()
|
309
|
|
- this.buffId = _buf_.ReadString()
|
310
|
|
- this.skillName = _buf_.ReadString()
|
311
|
|
- this.desc = _buf_.ReadString()
|
312
|
|
- this.conflictSkillId = _buf_.ReadInt()
|
|
273
|
+ { 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);}}
|
313
|
274
|
}
|
314
|
275
|
|
315
|
276
|
/**
|
316
|
|
- * 主键id
|
|
277
|
+ * idx
|
317
|
278
|
*/
|
318
|
279
|
readonly idx: number
|
319
|
280
|
/**
|
320
|
|
- * 备注
|
|
281
|
+ * 波数下限
|
321
|
282
|
*/
|
322
|
|
- readonly remark: string
|
|
283
|
+ readonly waveMin: number
|
323
|
284
|
/**
|
324
|
|
- * 技能ID
|
|
285
|
+ * 波数上限
|
325
|
286
|
*/
|
326
|
|
- readonly skillId: number
|
|
287
|
+ readonly waveMax: number
|
327
|
288
|
/**
|
328
|
|
- * 等级
|
|
289
|
+ * 难度
|
329
|
290
|
*/
|
330
|
291
|
readonly level: number
|
331
|
292
|
/**
|
332
|
|
- * 类型
|
333
|
|
- */
|
334
|
|
- readonly skillType: number
|
335
|
|
- /**
|
336
|
|
- * 冷却时间
|
337
|
|
- */
|
338
|
|
- readonly cd: number
|
339
|
|
- /**
|
340
|
|
- * 技能触发条件
|
341
|
|
- */
|
342
|
|
- readonly triggerCondition: string
|
343
|
|
- /**
|
344
|
|
- * 效果列表
|
345
|
|
- */
|
346
|
|
- readonly effects: string
|
347
|
|
- /**
|
348
|
|
- * buff
|
349
|
|
- */
|
350
|
|
- readonly buffId: string
|
351
|
|
- /**
|
352
|
|
- * 技能名字
|
353
|
|
- */
|
354
|
|
- readonly skillName: string
|
355
|
|
- /**
|
356
|
|
- * 技能描述
|
357
|
|
- */
|
358
|
|
- readonly desc: string
|
359
|
|
- /**
|
360
|
|
- * 冲突的技能id
|
|
293
|
+ * 奖励列表
|
361
|
294
|
*/
|
362
|
|
- readonly conflictSkillId: number
|
|
295
|
+ readonly rewards: Common.Reward[]
|
363
|
296
|
|
364
|
297
|
resolve(tables:Tables) {
|
365
|
298
|
|
366
|
299
|
|
367
|
300
|
|
368
|
301
|
|
369
|
|
-
|
370
|
|
-
|
371
|
|
-
|
372
|
|
-
|
373
|
|
-
|
374
|
|
-
|
375
|
|
-
|
376
|
|
-
|
377
|
|
- }
|
378
|
|
-}
|
379
|
|
-
|
380
|
|
-
|
381
|
|
-
|
382
|
|
-
|
383
|
|
-
|
384
|
|
-export class System {
|
385
|
|
-
|
386
|
|
- constructor(_buf_: ByteBuf) {
|
387
|
|
- this.idx = _buf_.ReadInt()
|
388
|
|
- this.mainKey = _buf_.ReadString()
|
389
|
|
- this.value = _buf_.ReadString()
|
390
|
|
- }
|
391
|
|
-
|
392
|
|
- /**
|
393
|
|
- * IDX
|
394
|
|
- */
|
395
|
|
- readonly idx: number
|
396
|
|
- /**
|
397
|
|
- * 常量主键
|
398
|
|
- */
|
399
|
|
- readonly mainKey: string
|
400
|
|
- /**
|
401
|
|
- * 常量值
|
402
|
|
- */
|
403
|
|
- readonly value: string
|
404
|
|
-
|
405
|
|
- resolve(tables:Tables) {
|
406
|
|
-
|
407
|
|
-
|
408
|
|
-
|
|
302
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
409
|
303
|
}
|
410
|
304
|
}
|
411
|
305
|
|
|
@@ -567,43 +461,117 @@ export class SkillBuff {
|
567
|
461
|
|
568
|
462
|
|
569
|
463
|
|
570
|
|
-export class WaveRewards {
|
|
464
|
+export class System {
|
571
|
465
|
|
572
|
466
|
constructor(_buf_: ByteBuf) {
|
573
|
467
|
this.idx = _buf_.ReadInt()
|
574
|
|
- this.waveMin = _buf_.ReadInt()
|
575
|
|
- this.waveMax = _buf_.ReadInt()
|
|
468
|
+ this.mainKey = _buf_.ReadString()
|
|
469
|
+ this.value = _buf_.ReadString()
|
|
470
|
+ }
|
|
471
|
+
|
|
472
|
+ /**
|
|
473
|
+ * IDX
|
|
474
|
+ */
|
|
475
|
+ readonly idx: number
|
|
476
|
+ /**
|
|
477
|
+ * 常量主键
|
|
478
|
+ */
|
|
479
|
+ readonly mainKey: string
|
|
480
|
+ /**
|
|
481
|
+ * 常量值
|
|
482
|
+ */
|
|
483
|
+ readonly value: string
|
|
484
|
+
|
|
485
|
+ resolve(tables:Tables) {
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+ }
|
|
490
|
+}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+export class Skill {
|
|
497
|
+
|
|
498
|
+ constructor(_buf_: ByteBuf) {
|
|
499
|
+ this.idx = _buf_.ReadInt()
|
|
500
|
+ this.remark = _buf_.ReadString()
|
|
501
|
+ this.skillId = _buf_.ReadInt()
|
576
|
502
|
this.level = _buf_.ReadInt()
|
577
|
|
- { 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);}}
|
|
503
|
+ this.skillType = _buf_.ReadInt()
|
|
504
|
+ this.cd = _buf_.ReadInt()
|
|
505
|
+ this.triggerCondition = _buf_.ReadString()
|
|
506
|
+ this.effects = _buf_.ReadString()
|
|
507
|
+ this.buffId = _buf_.ReadString()
|
|
508
|
+ this.skillName = _buf_.ReadString()
|
|
509
|
+ this.desc = _buf_.ReadString()
|
|
510
|
+ this.conflictSkillId = _buf_.ReadInt()
|
578
|
511
|
}
|
579
|
512
|
|
580
|
513
|
/**
|
581
|
|
- * idx
|
|
514
|
+ * 主键id
|
582
|
515
|
*/
|
583
|
516
|
readonly idx: number
|
584
|
517
|
/**
|
585
|
|
- * 波数下限
|
|
518
|
+ * 备注
|
586
|
519
|
*/
|
587
|
|
- readonly waveMin: number
|
|
520
|
+ readonly remark: string
|
588
|
521
|
/**
|
589
|
|
- * 波数上限
|
|
522
|
+ * 技能ID
|
590
|
523
|
*/
|
591
|
|
- readonly waveMax: number
|
|
524
|
+ readonly skillId: number
|
592
|
525
|
/**
|
593
|
|
- * 难度
|
|
526
|
+ * 等级
|
594
|
527
|
*/
|
595
|
528
|
readonly level: number
|
596
|
529
|
/**
|
597
|
|
- * 奖励列表
|
|
530
|
+ * 类型
|
598
|
531
|
*/
|
599
|
|
- readonly rewards: Common.Reward[]
|
|
532
|
+ readonly skillType: number
|
|
533
|
+ /**
|
|
534
|
+ * 冷却时间
|
|
535
|
+ */
|
|
536
|
+ readonly cd: number
|
|
537
|
+ /**
|
|
538
|
+ * 技能触发条件
|
|
539
|
+ */
|
|
540
|
+ readonly triggerCondition: string
|
|
541
|
+ /**
|
|
542
|
+ * 效果列表
|
|
543
|
+ */
|
|
544
|
+ readonly effects: string
|
|
545
|
+ /**
|
|
546
|
+ * buff
|
|
547
|
+ */
|
|
548
|
+ readonly buffId: string
|
|
549
|
+ /**
|
|
550
|
+ * 技能名字
|
|
551
|
+ */
|
|
552
|
+ readonly skillName: string
|
|
553
|
+ /**
|
|
554
|
+ * 技能描述
|
|
555
|
+ */
|
|
556
|
+ readonly desc: string
|
|
557
|
+ /**
|
|
558
|
+ * 冲突的技能id
|
|
559
|
+ */
|
|
560
|
+ readonly conflictSkillId: number
|
600
|
561
|
|
601
|
562
|
resolve(tables:Tables) {
|
602
|
563
|
|
603
|
564
|
|
604
|
565
|
|
605
|
566
|
|
606
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
607
|
575
|
}
|
608
|
576
|
}
|
609
|
577
|
|
|
@@ -655,6 +623,38 @@ export class Hero {
|
655
|
623
|
|
656
|
624
|
|
657
|
625
|
|
|
626
|
+export class Item {
|
|
627
|
+
|
|
628
|
+ constructor(_buf_: ByteBuf) {
|
|
629
|
+ this.idx = _buf_.ReadInt()
|
|
630
|
+ this.type = _buf_.ReadInt()
|
|
631
|
+ this.name = _buf_.ReadString()
|
|
632
|
+ }
|
|
633
|
+
|
|
634
|
+ /**
|
|
635
|
+ * 道具ID
|
|
636
|
+ */
|
|
637
|
+ readonly idx: number
|
|
638
|
+ /**
|
|
639
|
+ * 类型
|
|
640
|
+ */
|
|
641
|
+ readonly type: number
|
|
642
|
+ /**
|
|
643
|
+ * 道具名
|
|
644
|
+ */
|
|
645
|
+ readonly name: string
|
|
646
|
+
|
|
647
|
+ resolve(tables:Tables) {
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+ }
|
|
652
|
+}
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
658
|
658
|
export class Wave {
|
659
|
659
|
|
660
|
660
|
constructor(_buf_: ByteBuf) {
|