Pārlūkot izejas kodu

auto config export

Hua 10 mēneši atpakaļ
vecāks
revīzija
d107494136
1 mainītis faili ar 186 papildinājumiem un 186 dzēšanām
  1. 186 186
      schema/schema.ts

+ 186 - 186
schema/schema.ts

@@ -289,98 +289,6 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Skill {
293
-
294
-    constructor(_buf_: ByteBuf) {
295
-        this.idx = _buf_.ReadInt()
296
-        this.remark = _buf_.ReadString()
297
-        this.skillId = _buf_.ReadInt()
298
-        this.skillType = _buf_.ReadInt()
299
-        this.cd = _buf_.ReadInt()
300
-        this.gridRange = _buf_.ReadInt()
301
-        this.range = _buf_.ReadInt()
302
-        this.triggerCondition = _buf_.ReadString()
303
-        this.effects = _buf_.ReadString()
304
-        this.buffId = _buf_.ReadString()
305
-        this.skillName = _buf_.ReadString()
306
-        this.desc = _buf_.ReadString()
307
-        this.conflictSkillId = _buf_.ReadInt()
308
-    }
309
-
310
-    /**
311
-     * 主键id
312
-     */
313
-    readonly idx: number
314
-    /**
315
-     * 备注
316
-     */
317
-    readonly remark: string
318
-    /**
319
-     * 技能ID
320
-     */
321
-    readonly skillId: number
322
-    /**
323
-     * 类型
324
-     */
325
-    readonly skillType: number
326
-    /**
327
-     * 冷却时间
328
-     */
329
-    readonly cd: number
330
-    /**
331
-     * 格子范围
332
-     */
333
-    readonly gridRange: number
334
-    /**
335
-     * 攻击距离
336
-     */
337
-    readonly range: number
338
-    /**
339
-     * 技能触发条件
340
-     */
341
-    readonly triggerCondition: string
342
-    /**
343
-     * 效果列表
344
-     */
345
-    readonly effects: string
346
-    /**
347
-     * buff
348
-     */
349
-    readonly buffId: string
350
-    /**
351
-     * 技能名字
352
-     */
353
-    readonly skillName: string
354
-    /**
355
-     * 技能描述
356
-     */
357
-    readonly desc: string
358
-    /**
359
-     * 冲突的技能id
360
-     */
361
-    readonly conflictSkillId: number
362
-
363
-    resolve(tables:Tables) {
364
-        
365
-        
366
-        
367
-        
368
-        
369
-        
370
-        
371
-        
372
-        
373
-        
374
-        
375
-        
376
-        
377
-    }
378
-}
379
-
380
-
381
-
382
-
383
-
384 292
 export class System {
385 293
 
386 294
     constructor(_buf_: ByteBuf) {
@@ -413,37 +321,31 @@ export class System {
413 321
 
414 322
 
415 323
 
416
-export class BattleSpacialSummon {
324
+export class Item {
417 325
 
418 326
     constructor(_buf_: ByteBuf) {
419 327
         this.idx = _buf_.ReadInt()
420
-        this.quality = _buf_.ReadInt()
421
-        this.weight = _buf_.ReadInt()
422
-        this.costgem = _buf_.ReadInt()
328
+        this.type = _buf_.ReadInt()
329
+        this.name = _buf_.ReadString()
423 330
     }
424 331
 
425 332
     /**
426
-     * 唯一id
333
+     * 道具ID
427 334
      */
428 335
     readonly idx: number
429 336
     /**
430
-     * 品质
431
-     */
432
-    readonly quality: Quality
433
-    /**
434
-     * 权重
337
+     * 类型
435 338
      */
436
-    readonly weight: number
339
+    readonly type: number
437 340
     /**
438
-     * 消耗宝石数量
341
+     * 道具名
439 342
      */
440
-    readonly costgem: number
343
+    readonly name: string
441 344
 
442 345
     resolve(tables:Tables) {
443 346
         
444 347
         
445 348
         
446
-        
447 349
     }
448 350
 }
449 351
 
@@ -451,43 +353,55 @@ export class BattleSpacialSummon {
451 353
 
452 354
 
453 355
 
454
-export class WaveRewards {
356
+export class Hero {
455 357
 
456 358
     constructor(_buf_: ByteBuf) {
457
-        this.idx = _buf_.ReadInt()
458
-        this.waveMin = _buf_.ReadInt()
459
-        this.waveMax = _buf_.ReadInt()
460
-        this.level = _buf_.ReadInt()
461
-        { 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);}}
359
+        this.id = _buf_.ReadInt()
360
+        this.quality = _buf_.ReadInt()
361
+        this.attacktype = _buf_.ReadInt()
362
+        this.name = _buf_.ReadString()
363
+        { 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);}}
364
+        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
365
+        this.isShow = _buf_.ReadInt()
462 366
     }
463 367
 
464 368
     /**
465
-     * idx
369
+     * 英雄ID
466 370
      */
467
-    readonly idx: number
371
+    readonly id: number
468 372
     /**
469
-     * 波数下限
373
+     * 品质
470 374
      */
471
-    readonly waveMin: number
375
+    readonly quality: Quality
472 376
     /**
473
-     * 波数上限
377
+     * 攻击类型
474 378
      */
475
-    readonly waveMax: number
379
+    readonly attacktype: AttackType
476 380
     /**
477
-     * 难度
381
+     * 名字
478 382
      */
479
-    readonly level: number
383
+    readonly name: string
480 384
     /**
481
-     * 奖励列表
385
+     * 技能列表
482 386
      */
483
-    readonly rewards: Common.Reward[]
387
+    readonly skills: number[]
388
+    /**
389
+     * 合成英雄公式
390
+     */
391
+    readonly composeheros: number[]
392
+    /**
393
+     * 是否测试
394
+     */
395
+    readonly isShow: number
484 396
 
485 397
     resolve(tables:Tables) {
486 398
         
487 399
         
488 400
         
489 401
         
490
-        for (let _e of this.rewards) { _e?.resolve(tables); }
402
+        
403
+        
404
+        
491 405
     }
492 406
 }
493 407
 
@@ -533,63 +447,91 @@ export class HeroQualityWorth {
533 447
 
534 448
 
535 449
 
536
-export class BattleSummonWeight {
450
+export class Skill {
537 451
 
538 452
     constructor(_buf_: ByteBuf) {
539 453
         this.idx = _buf_.ReadInt()
540
-        this.quality = _buf_.ReadInt()
541
-        this.weight = _buf_.ReadInt()
454
+        this.remark = _buf_.ReadString()
455
+        this.skillId = _buf_.ReadInt()
456
+        this.skillType = _buf_.ReadInt()
457
+        this.cd = _buf_.ReadInt()
458
+        this.gridRange = _buf_.ReadInt()
459
+        this.range = _buf_.ReadInt()
460
+        this.triggerCondition = _buf_.ReadString()
461
+        this.effects = _buf_.ReadString()
462
+        this.buffId = _buf_.ReadString()
463
+        this.skillName = _buf_.ReadString()
464
+        this.desc = _buf_.ReadString()
465
+        this.conflictSkillId = _buf_.ReadInt()
542 466
     }
543 467
 
544 468
     /**
545
-     * 唯一id
469
+     * 主键id
546 470
      */
547 471
     readonly idx: number
548 472
     /**
549
-     * 品质
473
+     * 备注
550 474
      */
551
-    readonly quality: Quality
475
+    readonly remark: string
552 476
     /**
553
-     * 权重
477
+     * 技能ID
554 478
      */
555
-    readonly weight: number
556
-
557
-    resolve(tables:Tables) {
558
-        
559
-        
560
-        
561
-    }
562
-}
563
-
564
-
565
-
566
-
567
-
568
-export class Item {
569
-
570
-    constructor(_buf_: ByteBuf) {
571
-        this.idx = _buf_.ReadInt()
572
-        this.type = _buf_.ReadInt()
573
-        this.name = _buf_.ReadString()
574
-    }
575
-
479
+    readonly skillId: number
576 480
     /**
577
-     * 道具ID
481
+     * 类型
578 482
      */
579
-    readonly idx: number
483
+    readonly skillType: number
580 484
     /**
581
-     * 类型
485
+     * 冷却时间
582 486
      */
583
-    readonly type: number
487
+    readonly cd: number
584 488
     /**
585
-     * 道具名
489
+     * 格子范围
586 490
      */
587
-    readonly name: string
491
+    readonly gridRange: number
492
+    /**
493
+     * 攻击距离
494
+     */
495
+    readonly range: number
496
+    /**
497
+     * 技能触发条件
498
+     */
499
+    readonly triggerCondition: string
500
+    /**
501
+     * 效果列表
502
+     */
503
+    readonly effects: string
504
+    /**
505
+     * buff
506
+     */
507
+    readonly buffId: string
508
+    /**
509
+     * 技能名字
510
+     */
511
+    readonly skillName: string
512
+    /**
513
+     * 技能描述
514
+     */
515
+    readonly desc: string
516
+    /**
517
+     * 冲突的技能id
518
+     */
519
+    readonly conflictSkillId: number
588 520
 
589 521
     resolve(tables:Tables) {
590 522
         
591 523
         
592 524
         
525
+        
526
+        
527
+        
528
+        
529
+        
530
+        
531
+        
532
+        
533
+        
534
+        
593 535
     }
594 536
 }
595 537
 
@@ -597,55 +539,43 @@ export class Item {
597 539
 
598 540
 
599 541
 
600
-export class Hero {
542
+export class WaveRewards {
601 543
 
602 544
     constructor(_buf_: ByteBuf) {
603
-        this.id = _buf_.ReadInt()
604
-        this.quality = _buf_.ReadInt()
605
-        this.attacktype = _buf_.ReadInt()
606
-        this.name = _buf_.ReadString()
607
-        { 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);}}
608
-        { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
609
-        this.isShow = _buf_.ReadInt()
545
+        this.idx = _buf_.ReadInt()
546
+        this.waveMin = _buf_.ReadInt()
547
+        this.waveMax = _buf_.ReadInt()
548
+        this.level = _buf_.ReadInt()
549
+        { 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);}}
610 550
     }
611 551
 
612 552
     /**
613
-     * 英雄ID
614
-     */
615
-    readonly id: number
616
-    /**
617
-     * 品质
618
-     */
619
-    readonly quality: Quality
620
-    /**
621
-     * 攻击类型
553
+     * idx
622 554
      */
623
-    readonly attacktype: AttackType
555
+    readonly idx: number
624 556
     /**
625
-     * 名字
557
+     * 波数下限
626 558
      */
627
-    readonly name: string
559
+    readonly waveMin: number
628 560
     /**
629
-     * 技能列表
561
+     * 波数上限
630 562
      */
631
-    readonly skills: number[]
563
+    readonly waveMax: number
632 564
     /**
633
-     * 合成英雄公式
565
+     * 难度
634 566
      */
635
-    readonly composeheros: number[]
567
+    readonly level: number
636 568
     /**
637
-     * 是否测试
569
+     * 奖励列表
638 570
      */
639
-    readonly isShow: number
571
+    readonly rewards: Common.Reward[]
640 572
 
641 573
     resolve(tables:Tables) {
642 574
         
643 575
         
644 576
         
645 577
         
646
-        
647
-        
648
-        
578
+        for (let _e of this.rewards) { _e?.resolve(tables); }
649 579
     }
650 580
 }
651 581
 
@@ -757,6 +687,76 @@ export class SkillBuff {
757 687
 
758 688
 
759 689
 
690
+export class BattleSpacialSummon {
691
+
692
+    constructor(_buf_: ByteBuf) {
693
+        this.idx = _buf_.ReadInt()
694
+        this.quality = _buf_.ReadInt()
695
+        this.weight = _buf_.ReadInt()
696
+        this.costgem = _buf_.ReadInt()
697
+    }
698
+
699
+    /**
700
+     * 唯一id
701
+     */
702
+    readonly idx: number
703
+    /**
704
+     * 品质
705
+     */
706
+    readonly quality: Quality
707
+    /**
708
+     * 权重
709
+     */
710
+    readonly weight: number
711
+    /**
712
+     * 消耗宝石数量
713
+     */
714
+    readonly costgem: number
715
+
716
+    resolve(tables:Tables) {
717
+        
718
+        
719
+        
720
+        
721
+    }
722
+}
723
+
724
+
725
+
726
+
727
+
728
+export class BattleSummonWeight {
729
+
730
+    constructor(_buf_: ByteBuf) {
731
+        this.idx = _buf_.ReadInt()
732
+        this.quality = _buf_.ReadInt()
733
+        this.weight = _buf_.ReadInt()
734
+    }
735
+
736
+    /**
737
+     * 唯一id
738
+     */
739
+    readonly idx: number
740
+    /**
741
+     * 品质
742
+     */
743
+    readonly quality: Quality
744
+    /**
745
+     * 权重
746
+     */
747
+    readonly weight: number
748
+
749
+    resolve(tables:Tables) {
750
+        
751
+        
752
+        
753
+    }
754
+}
755
+
756
+
757
+
758
+
759
+
760 760
 export class Wave {
761 761
 
762 762
     constructor(_buf_: ByteBuf) {