|
@@ -237,50 +237,6 @@ export class Rectangle extends test.Shape {
|
237
|
237
|
|
238
|
238
|
|
239
|
239
|
|
240
|
|
-export class Hero {
|
241
|
|
-
|
242
|
|
- constructor(_buf_: ByteBuf) {
|
243
|
|
- this.id = _buf_.ReadInt()
|
244
|
|
- this.quality = _buf_.ReadInt()
|
245
|
|
- this.attacktype = _buf_.ReadInt()
|
246
|
|
- this.name = _buf_.ReadString()
|
247
|
|
- { 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);}}
|
248
|
|
- }
|
249
|
|
-
|
250
|
|
- /**
|
251
|
|
- * 英雄ID
|
252
|
|
- */
|
253
|
|
- readonly id: number
|
254
|
|
- /**
|
255
|
|
- * 品质
|
256
|
|
- */
|
257
|
|
- readonly quality: Hero.Quality
|
258
|
|
- /**
|
259
|
|
- * 攻击类型
|
260
|
|
- */
|
261
|
|
- readonly attacktype: Hero.AttackType
|
262
|
|
- /**
|
263
|
|
- * 名字
|
264
|
|
- */
|
265
|
|
- readonly name: string
|
266
|
|
- /**
|
267
|
|
- * 技能列表
|
268
|
|
- */
|
269
|
|
- readonly skills: number[]
|
270
|
|
-
|
271
|
|
- resolve(tables:Tables) {
|
272
|
|
-
|
273
|
|
-
|
274
|
|
-
|
275
|
|
-
|
276
|
|
-
|
277
|
|
- }
|
278
|
|
-}
|
279
|
|
-
|
280
|
|
-
|
281
|
|
-
|
282
|
|
-
|
283
|
|
-
|
284
|
240
|
export class SkillBuff {
|
285
|
241
|
|
286
|
242
|
constructor(_buf_: ByteBuf) {
|
|
@@ -385,15 +341,14 @@ export class SkillBuff {
|
385
|
341
|
|
386
|
342
|
|
387
|
343
|
|
388
|
|
-export class HeroLevel {
|
|
344
|
+export class Hero {
|
389
|
345
|
|
390
|
346
|
constructor(_buf_: ByteBuf) {
|
391
|
347
|
this.id = _buf_.ReadInt()
|
392
|
|
- this.level = _buf_.ReadInt()
|
393
|
|
- { 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);}}
|
394
|
|
- this.unlockSkillDesc = _buf_.ReadString()
|
395
|
|
- this.atk = _buf_.ReadInt()
|
396
|
|
- this.atkSpeed = _buf_.ReadInt()
|
|
348
|
+ this.quality = _buf_.ReadInt()
|
|
349
|
+ this.attacktype = _buf_.ReadInt()
|
|
350
|
+ this.name = _buf_.ReadString()
|
|
351
|
+ { 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);}}
|
397
|
352
|
}
|
398
|
353
|
|
399
|
354
|
/**
|
|
@@ -401,25 +356,21 @@ export class HeroLevel {
|
401
|
356
|
*/
|
402
|
357
|
readonly id: number
|
403
|
358
|
/**
|
404
|
|
- * 等级
|
405
|
|
- */
|
406
|
|
- readonly level: number
|
407
|
|
- /**
|
408
|
|
- * 英雄解锁技能
|
|
359
|
+ * 品质
|
409
|
360
|
*/
|
410
|
|
- readonly unlockSkill: number[]
|
|
361
|
+ readonly quality: Hero.Quality
|
411
|
362
|
/**
|
412
|
|
- * 解锁技能描述
|
|
363
|
+ * 攻击类型
|
413
|
364
|
*/
|
414
|
|
- readonly unlockSkillDesc: string
|
|
365
|
+ readonly attacktype: Hero.AttackType
|
415
|
366
|
/**
|
416
|
|
- * 攻击力
|
|
367
|
+ * 名字
|
417
|
368
|
*/
|
418
|
|
- readonly atk: number
|
|
369
|
+ readonly name: string
|
419
|
370
|
/**
|
420
|
|
- * 攻击速度
|
|
371
|
+ * 技能列表
|
421
|
372
|
*/
|
422
|
|
- readonly atkSpeed: number
|
|
373
|
+ readonly skills: number[]
|
423
|
374
|
|
424
|
375
|
resolve(tables:Tables) {
|
425
|
376
|
|
|
@@ -427,7 +378,6 @@ export class HeroLevel {
|
427
|
378
|
|
428
|
379
|
|
429
|
380
|
|
430
|
|
-
|
431
|
381
|
}
|
432
|
382
|
}
|
433
|
383
|
|
|
@@ -521,6 +471,56 @@ export class Skill {
|
521
|
471
|
|
522
|
472
|
|
523
|
473
|
|
|
474
|
+export class HeroLevel {
|
|
475
|
+
|
|
476
|
+ constructor(_buf_: ByteBuf) {
|
|
477
|
+ this.id = _buf_.ReadInt()
|
|
478
|
+ this.level = _buf_.ReadInt()
|
|
479
|
+ { 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);}}
|
|
480
|
+ this.unlockSkillDesc = _buf_.ReadString()
|
|
481
|
+ this.atk = _buf_.ReadInt()
|
|
482
|
+ this.atkSpeed = _buf_.ReadInt()
|
|
483
|
+ }
|
|
484
|
+
|
|
485
|
+ /**
|
|
486
|
+ * 英雄ID
|
|
487
|
+ */
|
|
488
|
+ readonly id: number
|
|
489
|
+ /**
|
|
490
|
+ * 等级
|
|
491
|
+ */
|
|
492
|
+ readonly level: number
|
|
493
|
+ /**
|
|
494
|
+ * 英雄解锁技能
|
|
495
|
+ */
|
|
496
|
+ readonly unlockSkill: number[]
|
|
497
|
+ /**
|
|
498
|
+ * 解锁技能描述
|
|
499
|
+ */
|
|
500
|
+ readonly unlockSkillDesc: string
|
|
501
|
+ /**
|
|
502
|
+ * 攻击力
|
|
503
|
+ */
|
|
504
|
+ readonly atk: number
|
|
505
|
+ /**
|
|
506
|
+ * 攻击速度
|
|
507
|
+ */
|
|
508
|
+ readonly atkSpeed: number
|
|
509
|
+
|
|
510
|
+ resolve(tables:Tables) {
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+ }
|
|
518
|
+}
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
524
|
524
|
|
525
|
525
|
/**
|
526
|
526
|
* 英雄表.xlsx
|