Przeglądaj źródła

auto config export

Hua 10 miesięcy temu
rodzic
commit
e4ea2cd58f
1 zmienionych plików z 172 dodań i 172 usunięć
  1. 172 172
      schema/schema.ts

+ 172 - 172
schema/schema.ts

@@ -289,101 +289,103 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Item {
292
+export class SkillBuff {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
+        this.remark = _buf_.ReadString()
296 297
         this.type = _buf_.ReadInt()
297
-        this.name = _buf_.ReadString()
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()
298 310
     }
299 311
 
300 312
     /**
301
-     * 道具ID
313
+     * buffid
302 314
      */
303 315
     readonly idx: number
304 316
     /**
305
-     * 类型
317
+     * 备注
318
+     */
319
+    readonly remark: string
320
+    /**
321
+     * buff类型
306 322
      */
307 323
     readonly type: number
308 324
     /**
309
-     * 道具名
325
+     * buff参数
310 326
      */
311
-    readonly name: string
312
-
313
-    resolve(tables:Tables) {
314
-        
315
-        
316
-        
317
-    }
318
-}
319
-
320
-
321
-
322
-
323
-
324
-export class System {
325
-
326
-    constructor(_buf_: ByteBuf) {
327
-        this.idx = _buf_.ReadInt()
328
-        this.mainKey = _buf_.ReadString()
329
-        this.value = _buf_.ReadString()
330
-    }
331
-
327
+    readonly parameters: string
332 328
     /**
333
-     * IDX
329
+     * 触发概率
334 330
      */
335
-    readonly idx: number
331
+    readonly probability: number
336 332
     /**
337
-     * 常量主键
333
+     * 触发条件
338 334
      */
339
-    readonly mainKey: string
335
+    readonly triggerCondition: string
340 336
     /**
341
-     * 常量值
337
+     * 效果类型
342 338
      */
343
-    readonly value: string
344
-
345
-    resolve(tables:Tables) {
346
-        
347
-        
348
-        
349
-    }
350
-}
351
-
352
-
353
-
354
-
355
-
356
-export class BattleSpacialSummon {
357
-
358
-    constructor(_buf_: ByteBuf) {
359
-        this.idx = _buf_.ReadInt()
360
-        this.quality = _buf_.ReadInt()
361
-        this.weight = _buf_.ReadInt()
362
-        this.costgem = _buf_.ReadInt()
363
-    }
364
-
339
+    readonly effectType: number
365 340
     /**
366
-     * 唯一id
341
+     * 持续时间
367 342
      */
368
-    readonly idx: number
343
+    readonly duration: number
369 344
     /**
370
-     * 品质
345
+     * 叠加次数
371 346
      */
372
-    readonly quality: Quality
347
+    readonly overlapTimes: number
373 348
     /**
374
-     * 权重
349
+     * 唯一增益
375 350
      */
376
-    readonly weight: number
351
+    readonly uniqueGain: boolean
377 352
     /**
378
-     * 消耗宝石数量
353
+     * 是否是光环
379 354
      */
380
-    readonly costgem: number
355
+    readonly halo: boolean
356
+    /**
357
+     * buff增加的属性
358
+     */
359
+    readonly attributes: string
360
+    /**
361
+     * 是否合并
362
+     */
363
+    readonly mixBufficon: number
364
+    /**
365
+     * 效果id
366
+     */
367
+    readonly skillShowId: number
368
+    /**
369
+     * 飘字id
370
+     */
371
+    readonly floatingTextId: number
381 372
 
382 373
     resolve(tables:Tables) {
383 374
         
384 375
         
385 376
         
386 377
         
378
+        
379
+        
380
+        
381
+        
382
+        
383
+        
384
+        
385
+        
386
+        
387
+        
388
+        
387 389
     }
388 390
 }
389 391
 
@@ -423,43 +425,37 @@ export class BattleSummonWeight {
423 425
 
424 426
 
425 427
 
426
-export class WaveRewards {
428
+export class HeroQualityWorth {
427 429
 
428 430
     constructor(_buf_: ByteBuf) {
429 431
         this.idx = _buf_.ReadInt()
430
-        this.waveMin = _buf_.ReadInt()
431
-        this.waveMax = _buf_.ReadInt()
432
-        this.level = _buf_.ReadInt()
433
-        { 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);}}
432
+        this.quality = _buf_.ReadInt()
433
+        this.gold = _buf_.ReadInt()
434
+        this.gem = _buf_.ReadInt()
434 435
     }
435 436
 
436 437
     /**
437
-     * idx
438
+     * 唯一id
438 439
      */
439 440
     readonly idx: number
440 441
     /**
441
-     * 波数下限
442
-     */
443
-    readonly waveMin: number
444
-    /**
445
-     * 波数上限
442
+     * 品质
446 443
      */
447
-    readonly waveMax: number
444
+    readonly quality: Quality
448 445
     /**
449
-     * 难度
446
+     * 局内金币
450 447
      */
451
-    readonly level: number
448
+    readonly gold: number
452 449
     /**
453
-     * 奖励列表
450
+     * 局内宝石
454 451
      */
455
-    readonly rewards: Common.Reward[]
452
+    readonly gem: number
456 453
 
457 454
     resolve(tables:Tables) {
458 455
         
459 456
         
460 457
         
461 458
         
462
-        for (let _e of this.rewards) { _e?.resolve(tables); }
463 459
     }
464 460
 }
465 461
 
@@ -467,37 +463,31 @@ export class WaveRewards {
467 463
 
468 464
 
469 465
 
470
-export class HeroQualityWorth {
466
+export class Item {
471 467
 
472 468
     constructor(_buf_: ByteBuf) {
473 469
         this.idx = _buf_.ReadInt()
474
-        this.quality = _buf_.ReadInt()
475
-        this.gold = _buf_.ReadInt()
476
-        this.gem = _buf_.ReadInt()
470
+        this.type = _buf_.ReadInt()
471
+        this.name = _buf_.ReadString()
477 472
     }
478 473
 
479 474
     /**
480
-     * 唯一id
475
+     * 道具ID
481 476
      */
482 477
     readonly idx: number
483 478
     /**
484
-     * 品质
485
-     */
486
-    readonly quality: Quality
487
-    /**
488
-     * 局内金币
479
+     * 类型
489 480
      */
490
-    readonly gold: number
481
+    readonly type: number
491 482
     /**
492
-     * 局内宝石
483
+     * 道具名
493 484
      */
494
-    readonly gem: number
485
+    readonly name: string
495 486
 
496 487
     resolve(tables:Tables) {
497 488
         
498 489
         
499 490
         
500
-        
501 491
     }
502 492
 }
503 493
 
@@ -505,103 +495,31 @@ export class HeroQualityWorth {
505 495
 
506 496
 
507 497
 
508
-export class SkillBuff {
498
+export class System {
509 499
 
510 500
     constructor(_buf_: ByteBuf) {
511 501
         this.idx = _buf_.ReadInt()
512
-        this.remark = _buf_.ReadString()
513
-        this.type = _buf_.ReadInt()
514
-        this.parameters = _buf_.ReadString()
515
-        this.probability = _buf_.ReadInt()
516
-        this.triggerCondition = _buf_.ReadString()
517
-        this.effectType = _buf_.ReadInt()
518
-        this.duration = _buf_.ReadInt()
519
-        this.overlapTimes = _buf_.ReadInt()
520
-        this.uniqueGain = _buf_.ReadBool()
521
-        this.halo = _buf_.ReadBool()
522
-        this.attributes = _buf_.ReadString()
523
-        this.mixBufficon = _buf_.ReadInt()
524
-        this.skillShowId = _buf_.ReadInt()
525
-        this.floatingTextId = _buf_.ReadInt()
502
+        this.mainKey = _buf_.ReadString()
503
+        this.value = _buf_.ReadString()
526 504
     }
527 505
 
528 506
     /**
529
-     * buffid
507
+     * IDX
530 508
      */
531 509
     readonly idx: number
532 510
     /**
533
-     * 备注
534
-     */
535
-    readonly remark: string
536
-    /**
537
-     * buff类型
538
-     */
539
-    readonly type: number
540
-    /**
541
-     * buff参数
542
-     */
543
-    readonly parameters: string
544
-    /**
545
-     * 触发概率
546
-     */
547
-    readonly probability: number
548
-    /**
549
-     * 触发条件
550
-     */
551
-    readonly triggerCondition: string
552
-    /**
553
-     * 效果类型
554
-     */
555
-    readonly effectType: number
556
-    /**
557
-     * 持续时间
558
-     */
559
-    readonly duration: number
560
-    /**
561
-     * 叠加次数
562
-     */
563
-    readonly overlapTimes: number
564
-    /**
565
-     * 唯一增益
566
-     */
567
-    readonly uniqueGain: boolean
568
-    /**
569
-     * 是否是光环
570
-     */
571
-    readonly halo: boolean
572
-    /**
573
-     * buff增加的属性
574
-     */
575
-    readonly attributes: string
576
-    /**
577
-     * 是否合并
578
-     */
579
-    readonly mixBufficon: number
580
-    /**
581
-     * 效果id
511
+     * 常量主键
582 512
      */
583
-    readonly skillShowId: number
513
+    readonly mainKey: string
584 514
     /**
585
-     * 飘字id
515
+     * 常量值
586 516
      */
587
-    readonly floatingTextId: number
517
+    readonly value: string
588 518
 
589 519
     resolve(tables:Tables) {
590 520
         
591 521
         
592 522
         
593
-        
594
-        
595
-        
596
-        
597
-        
598
-        
599
-        
600
-        
601
-        
602
-        
603
-        
604
-        
605 523
     }
606 524
 }
607 525
 
@@ -701,6 +619,88 @@ export class Skill {
701 619
 
702 620
 
703 621
 
622
+export class WaveRewards {
623
+
624
+    constructor(_buf_: ByteBuf) {
625
+        this.idx = _buf_.ReadInt()
626
+        this.waveMin = _buf_.ReadInt()
627
+        this.waveMax = _buf_.ReadInt()
628
+        this.level = _buf_.ReadInt()
629
+        { 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);}}
630
+    }
631
+
632
+    /**
633
+     * idx
634
+     */
635
+    readonly idx: number
636
+    /**
637
+     * 波数下限
638
+     */
639
+    readonly waveMin: number
640
+    /**
641
+     * 波数上限
642
+     */
643
+    readonly waveMax: number
644
+    /**
645
+     * 难度
646
+     */
647
+    readonly level: number
648
+    /**
649
+     * 奖励列表
650
+     */
651
+    readonly rewards: Common.Reward[]
652
+
653
+    resolve(tables:Tables) {
654
+        
655
+        
656
+        
657
+        
658
+        for (let _e of this.rewards) { _e?.resolve(tables); }
659
+    }
660
+}
661
+
662
+
663
+
664
+
665
+
666
+export class BattleSpacialSummon {
667
+
668
+    constructor(_buf_: ByteBuf) {
669
+        this.idx = _buf_.ReadInt()
670
+        this.quality = _buf_.ReadInt()
671
+        this.weight = _buf_.ReadInt()
672
+        this.costgem = _buf_.ReadInt()
673
+    }
674
+
675
+    /**
676
+     * 唯一id
677
+     */
678
+    readonly idx: number
679
+    /**
680
+     * 品质
681
+     */
682
+    readonly quality: Quality
683
+    /**
684
+     * 权重
685
+     */
686
+    readonly weight: number
687
+    /**
688
+     * 消耗宝石数量
689
+     */
690
+    readonly costgem: number
691
+
692
+    resolve(tables:Tables) {
693
+        
694
+        
695
+        
696
+        
697
+    }
698
+}
699
+
700
+
701
+
702
+
703
+
704 704
 export class Hero {
705 705
 
706 706
     constructor(_buf_: ByteBuf) {