浏览代码

auto config export

Hua 11 月之前
父节点
当前提交
462cf00813
共有 1 个文件被更改,包括 165 次插入159 次删除
  1. 165 159
      schema/schema.ts

+ 165 - 159
schema/schema.ts

@@ -289,86 +289,41 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class SkillBuff {
292
+export class Hero {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295
-        this.idx = _buf_.ReadInt()
296
-        this.remark = _buf_.ReadString()
297
-        this.type = _buf_.ReadInt()
298
-        this.parameters = _buf_.ReadString()
299
-        this.probability = _buf_.ReadInt()
300
-        this.triggerCondition = _buf_.ReadString()
301
-        this.effectType = _buf_.ReadInt()
302
-        this.duration = _buf_.ReadInt()
303
-        this.overlapTimes = _buf_.ReadInt()
304
-        this.uniqueGain = _buf_.ReadBool()
305
-        this.halo = _buf_.ReadBool()
306
-        this.attributes = _buf_.ReadString()
307
-        this.mixBufficon = _buf_.ReadInt()
308
-        this.skillShowId = _buf_.ReadInt()
309
-        this.floatingTextId = _buf_.ReadInt()
295
+        this.id = _buf_.ReadInt()
296
+        this.quality = _buf_.ReadInt()
297
+        this.attacktype = _buf_.ReadInt()
298
+        this.name = _buf_.ReadString()
299
+        { 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);}}
300
+        this.isShow = _buf_.ReadInt()
310 301
     }
311 302
 
312 303
     /**
313
-     * buffid
314
-     */
315
-    readonly idx: number
316
-    /**
317
-     * 备注
318
-     */
319
-    readonly remark: string
320
-    /**
321
-     * buff类型
322
-     */
323
-    readonly type: number
324
-    /**
325
-     * buff参数
326
-     */
327
-    readonly parameters: string
328
-    /**
329
-     * 触发概率
330
-     */
331
-    readonly probability: number
332
-    /**
333
-     * 触发条件
334
-     */
335
-    readonly triggerCondition: string
336
-    /**
337
-     * 效果类型
338
-     */
339
-    readonly effectType: number
340
-    /**
341
-     * 持续时间
342
-     */
343
-    readonly duration: number
344
-    /**
345
-     * 叠加次数
346
-     */
347
-    readonly overlapTimes: number
348
-    /**
349
-     * 唯一增益
304
+     * 英雄ID
350 305
      */
351
-    readonly uniqueGain: boolean
306
+    readonly id: number
352 307
     /**
353
-     * 是否是光环
308
+     * 品质
354 309
      */
355
-    readonly halo: boolean
310
+    readonly quality: Quality
356 311
     /**
357
-     * buff增加的属性
312
+     * 攻击类型
358 313
      */
359
-    readonly attributes: string
314
+    readonly attacktype: AttackType
360 315
     /**
361
-     * 是否合并
316
+     * 名字
362 317
      */
363
-    readonly mixBufficon: number
318
+    readonly name: string
364 319
     /**
365
-     * 效果id
320
+     * 技能列表
366 321
      */
367
-    readonly skillShowId: number
322
+    readonly skills: number[]
368 323
     /**
369
-     * 飘字id
324
+     * 是否测试
370 325
      */
371
-    readonly floatingTextId: number
326
+    readonly isShow: number
372 327
 
373 328
     resolve(tables:Tables) {
374 329
         
@@ -377,15 +332,6 @@ export class SkillBuff {
377 332
         
378 333
         
379 334
         
380
-        
381
-        
382
-        
383
-        
384
-        
385
-        
386
-        
387
-        
388
-        
389 335
     }
390 336
 }
391 337
 
@@ -393,85 +339,31 @@ export class SkillBuff {
393 339
 
394 340
 
395 341
 
396
-export class Skill {
342
+export class Item {
397 343
 
398 344
     constructor(_buf_: ByteBuf) {
399 345
         this.idx = _buf_.ReadInt()
400
-        this.remark = _buf_.ReadString()
401
-        this.skillId = _buf_.ReadInt()
402
-        this.skillType = _buf_.ReadInt()
403
-        this.cd = _buf_.ReadInt()
404
-        this.range = _buf_.ReadInt()
405
-        this.triggerCondition = _buf_.ReadString()
406
-        this.effects = _buf_.ReadString()
407
-        this.buffId = _buf_.ReadString()
408
-        this.skillName = _buf_.ReadString()
409
-        this.desc = _buf_.ReadString()
410
-        this.conflictSkillId = _buf_.ReadInt()
346
+        this.type = _buf_.ReadInt()
347
+        this.name = _buf_.ReadString()
411 348
     }
412 349
 
413 350
     /**
414
-     * 主键id
351
+     * 道具ID
415 352
      */
416 353
     readonly idx: number
417 354
     /**
418
-     * 备注
419
-     */
420
-    readonly remark: string
421
-    /**
422
-     * 技能ID
423
-     */
424
-    readonly skillId: number
425
-    /**
426 355
      * 类型
427 356
      */
428
-    readonly skillType: number
429
-    /**
430
-     * 冷却时间
431
-     */
432
-    readonly cd: number
433
-    /**
434
-     * 攻击距离
435
-     */
436
-    readonly range: number
437
-    /**
438
-     * 技能触发条件
439
-     */
440
-    readonly triggerCondition: string
441
-    /**
442
-     * 效果列表
443
-     */
444
-    readonly effects: string
445
-    /**
446
-     * buff
447
-     */
448
-    readonly buffId: string
449
-    /**
450
-     * 技能名字
451
-     */
452
-    readonly skillName: string
453
-    /**
454
-     * 技能描述
455
-     */
456
-    readonly desc: string
357
+    readonly type: number
457 358
     /**
458
-     * 冲突的技能id
359
+     * 道具名
459 360
      */
460
-    readonly conflictSkillId: number
361
+    readonly name: string
461 362
 
462 363
     resolve(tables:Tables) {
463 364
         
464 365
         
465 366
         
466
-        
467
-        
468
-        
469
-        
470
-        
471
-        
472
-        
473
-        
474
-        
475 367
     }
476 368
 }
477 369
 
@@ -523,31 +415,103 @@ export class WaveRewards {
523 415
 
524 416
 
525 417
 
526
-export class Item {
418
+export class SkillBuff {
527 419
 
528 420
     constructor(_buf_: ByteBuf) {
529 421
         this.idx = _buf_.ReadInt()
422
+        this.remark = _buf_.ReadString()
530 423
         this.type = _buf_.ReadInt()
531
-        this.name = _buf_.ReadString()
424
+        this.parameters = _buf_.ReadString()
425
+        this.probability = _buf_.ReadInt()
426
+        this.triggerCondition = _buf_.ReadString()
427
+        this.effectType = _buf_.ReadInt()
428
+        this.duration = _buf_.ReadInt()
429
+        this.overlapTimes = _buf_.ReadInt()
430
+        this.uniqueGain = _buf_.ReadBool()
431
+        this.halo = _buf_.ReadBool()
432
+        this.attributes = _buf_.ReadString()
433
+        this.mixBufficon = _buf_.ReadInt()
434
+        this.skillShowId = _buf_.ReadInt()
435
+        this.floatingTextId = _buf_.ReadInt()
532 436
     }
533 437
 
534 438
     /**
535
-     * 道具ID
439
+     * buffid
536 440
      */
537 441
     readonly idx: number
538 442
     /**
539
-     * 类型
443
+     * 备注
444
+     */
445
+    readonly remark: string
446
+    /**
447
+     * buff类型
540 448
      */
541 449
     readonly type: number
542 450
     /**
543
-     * 道具名
451
+     * buff参数
544 452
      */
545
-    readonly name: string
453
+    readonly parameters: string
454
+    /**
455
+     * 触发概率
456
+     */
457
+    readonly probability: number
458
+    /**
459
+     * 触发条件
460
+     */
461
+    readonly triggerCondition: string
462
+    /**
463
+     * 效果类型
464
+     */
465
+    readonly effectType: number
466
+    /**
467
+     * 持续时间
468
+     */
469
+    readonly duration: number
470
+    /**
471
+     * 叠加次数
472
+     */
473
+    readonly overlapTimes: number
474
+    /**
475
+     * 唯一增益
476
+     */
477
+    readonly uniqueGain: boolean
478
+    /**
479
+     * 是否是光环
480
+     */
481
+    readonly halo: boolean
482
+    /**
483
+     * buff增加的属性
484
+     */
485
+    readonly attributes: string
486
+    /**
487
+     * 是否合并
488
+     */
489
+    readonly mixBufficon: number
490
+    /**
491
+     * 效果id
492
+     */
493
+    readonly skillShowId: number
494
+    /**
495
+     * 飘字id
496
+     */
497
+    readonly floatingTextId: number
546 498
 
547 499
     resolve(tables:Tables) {
548 500
         
549 501
         
550 502
         
503
+        
504
+        
505
+        
506
+        
507
+        
508
+        
509
+        
510
+        
511
+        
512
+        
513
+        
514
+        
551 515
     }
552 516
 }
553 517
 
@@ -667,41 +631,76 @@ export class Wave {
667 631
 
668 632
 
669 633
 
670
-export class Hero {
634
+export class Skill {
671 635
 
672 636
     constructor(_buf_: ByteBuf) {
673
-        this.id = _buf_.ReadInt()
674
-        this.quality = _buf_.ReadInt()
675
-        this.attacktype = _buf_.ReadInt()
676
-        this.name = _buf_.ReadString()
677
-        { 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);}}
678
-        this.isShow = _buf_.ReadInt()
637
+        this.idx = _buf_.ReadInt()
638
+        this.remark = _buf_.ReadString()
639
+        this.skillId = _buf_.ReadInt()
640
+        this.skillType = _buf_.ReadInt()
641
+        this.cd = _buf_.ReadInt()
642
+        this.gridRange = _buf_.ReadInt()
643
+        this.range = _buf_.ReadInt()
644
+        this.triggerCondition = _buf_.ReadString()
645
+        this.effects = _buf_.ReadString()
646
+        this.buffId = _buf_.ReadString()
647
+        this.skillName = _buf_.ReadString()
648
+        this.desc = _buf_.ReadString()
649
+        this.conflictSkillId = _buf_.ReadInt()
679 650
     }
680 651
 
681 652
     /**
682
-     * 英雄ID
653
+     * 主键id
683 654
      */
684
-    readonly id: number
655
+    readonly idx: number
685 656
     /**
686
-     * 品质
657
+     * 备注
687 658
      */
688
-    readonly quality: Quality
659
+    readonly remark: string
689 660
     /**
690
-     * 攻击类型
661
+     * 技能ID
691 662
      */
692
-    readonly attacktype: AttackType
663
+    readonly skillId: number
693 664
     /**
694
-     * 名字
665
+     * 类型
695 666
      */
696
-    readonly name: string
667
+    readonly skillType: number
697 668
     /**
698
-     * 技能列表
669
+     * 冷却时间
699 670
      */
700
-    readonly skills: number[]
671
+    readonly cd: number
701 672
     /**
702
-     * 是否测试
673
+     * 格子范围
703 674
      */
704
-    readonly isShow: number
675
+    readonly gridRange: number
676
+    /**
677
+     * 攻击距离
678
+     */
679
+    readonly range: number
680
+    /**
681
+     * 技能触发条件
682
+     */
683
+    readonly triggerCondition: string
684
+    /**
685
+     * 效果列表
686
+     */
687
+    readonly effects: string
688
+    /**
689
+     * buff
690
+     */
691
+    readonly buffId: string
692
+    /**
693
+     * 技能名字
694
+     */
695
+    readonly skillName: string
696
+    /**
697
+     * 技能描述
698
+     */
699
+    readonly desc: string
700
+    /**
701
+     * 冲突的技能id
702
+     */
703
+    readonly conflictSkillId: number
705 704
 
706 705
     resolve(tables:Tables) {
707 706
         
@@ -710,6 +709,13 @@ export class Hero {
710 709
         
711 710
         
712 711
         
712
+        
713
+        
714
+        
715
+        
716
+        
717
+        
718
+        
713 719
     }
714 720
 }
715 721