Selaa lähdekoodia

auto config export

Hua 10 kuukautta sitten
vanhempi
commit
9443149d38
1 muutettua tiedostoa jossa 162 lisäystä ja 162 poistoa
  1. 162 162
      schema/schema.ts

+ 162 - 162
schema/schema.ts

@@ -289,37 +289,31 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class BattleSpacialSummon {
292
+export class Item {
293 293
 
294 294
     constructor(_buf_: ByteBuf) {
295 295
         this.idx = _buf_.ReadInt()
296
-        this.quality = _buf_.ReadInt()
297
-        this.weight = _buf_.ReadInt()
298
-        this.costgem = _buf_.ReadInt()
296
+        this.type = _buf_.ReadInt()
297
+        this.name = _buf_.ReadString()
299 298
     }
300 299
 
301 300
     /**
302
-     * 唯一id
301
+     * 道具ID
303 302
      */
304 303
     readonly idx: number
305 304
     /**
306
-     * 品质
307
-     */
308
-    readonly quality: Quality
309
-    /**
310
-     * 权重
305
+     * 类型
311 306
      */
312
-    readonly weight: number
307
+    readonly type: number
313 308
     /**
314
-     * 消耗宝石数量
309
+     * 道具名
315 310
      */
316
-    readonly costgem: number
311
+    readonly name: string
317 312
 
318 313
     resolve(tables:Tables) {
319 314
         
320 315
         
321 316
         
322
-        
323 317
     }
324 318
 }
325 319
 
@@ -327,43 +321,31 @@ export class BattleSpacialSummon {
327 321
 
328 322
 
329 323
 
330
-export class WaveRewards {
324
+export class System {
331 325
 
332 326
     constructor(_buf_: ByteBuf) {
333 327
         this.idx = _buf_.ReadInt()
334
-        this.waveMin = _buf_.ReadInt()
335
-        this.waveMax = _buf_.ReadInt()
336
-        this.level = _buf_.ReadInt()
337
-        { 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);}}
328
+        this.mainKey = _buf_.ReadString()
329
+        this.value = _buf_.ReadString()
338 330
     }
339 331
 
340 332
     /**
341
-     * idx
333
+     * IDX
342 334
      */
343 335
     readonly idx: number
344 336
     /**
345
-     * 波数下限
346
-     */
347
-    readonly waveMin: number
348
-    /**
349
-     * 波数上限
350
-     */
351
-    readonly waveMax: number
352
-    /**
353
-     * 难度
337
+     * 常量主键
354 338
      */
355
-    readonly level: number
339
+    readonly mainKey: string
356 340
     /**
357
-     * 奖励列表
341
+     * 常量值
358 342
      */
359
-    readonly rewards: Common.Reward[]
343
+    readonly value: string
360 344
 
361 345
     resolve(tables:Tables) {
362 346
         
363 347
         
364 348
         
365
-        
366
-        for (let _e of this.rewards) { _e?.resolve(tables); }
367 349
     }
368 350
 }
369 351
 
@@ -371,55 +353,37 @@ export class WaveRewards {
371 353
 
372 354
 
373 355
 
374
-export class Hero {
356
+export class BattleSpacialSummon {
375 357
 
376 358
     constructor(_buf_: ByteBuf) {
377
-        this.id = _buf_.ReadInt()
359
+        this.idx = _buf_.ReadInt()
378 360
         this.quality = _buf_.ReadInt()
379
-        this.attacktype = _buf_.ReadInt()
380
-        this.name = _buf_.ReadString()
381
-        { 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);}}
382
-        { 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);}}
383
-        this.isShow = _buf_.ReadInt()
361
+        this.weight = _buf_.ReadInt()
362
+        this.costgem = _buf_.ReadInt()
384 363
     }
385 364
 
386 365
     /**
387
-     * 英雄ID
366
+     * 唯一id
388 367
      */
389
-    readonly id: number
368
+    readonly idx: number
390 369
     /**
391 370
      * 品质
392 371
      */
393 372
     readonly quality: Quality
394 373
     /**
395
-     * 攻击类型
396
-     */
397
-    readonly attacktype: AttackType
398
-    /**
399
-     * 名字
400
-     */
401
-    readonly name: string
402
-    /**
403
-     * 技能列表
404
-     */
405
-    readonly skills: number[]
406
-    /**
407
-     * 合成英雄公式
374
+     * 权重
408 375
      */
409
-    readonly composeheros: number[]
376
+    readonly weight: number
410 377
     /**
411
-     * 是否测试
378
+     * 消耗宝石数量
412 379
      */
413
-    readonly isShow: number
380
+    readonly costgem: number
414 381
 
415 382
     resolve(tables:Tables) {
416 383
         
417 384
         
418 385
         
419 386
         
420
-        
421
-        
422
-        
423 387
     }
424 388
 }
425 389
 
@@ -427,13 +391,12 @@ export class Hero {
427 391
 
428 392
 
429 393
 
430
-export class HeroQualityWorth {
394
+export class BattleSummonWeight {
431 395
 
432 396
     constructor(_buf_: ByteBuf) {
433 397
         this.idx = _buf_.ReadInt()
434 398
         this.quality = _buf_.ReadInt()
435
-        this.gold = _buf_.ReadInt()
436
-        this.gem = _buf_.ReadInt()
399
+        this.weight = _buf_.ReadInt()
437 400
     }
438 401
 
439 402
     /**
@@ -445,19 +408,14 @@ export class HeroQualityWorth {
445 408
      */
446 409
     readonly quality: Quality
447 410
     /**
448
-     * 局内金币
449
-     */
450
-    readonly gold: number
451
-    /**
452
-     * 局内宝石
411
+     * 权重
453 412
      */
454
-    readonly gem: number
413
+    readonly weight: number
455 414
 
456 415
     resolve(tables:Tables) {
457 416
         
458 417
         
459 418
         
460
-        
461 419
     }
462 420
 }
463 421
 
@@ -465,31 +423,43 @@ export class HeroQualityWorth {
465 423
 
466 424
 
467 425
 
468
-export class Item {
426
+export class WaveRewards {
469 427
 
470 428
     constructor(_buf_: ByteBuf) {
471 429
         this.idx = _buf_.ReadInt()
472
-        this.type = _buf_.ReadInt()
473
-        this.name = _buf_.ReadString()
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);}}
474 434
     }
475 435
 
476 436
     /**
477
-     * 道具ID
437
+     * idx
478 438
      */
479 439
     readonly idx: number
480 440
     /**
481
-     * 类型
441
+     * 波数下限
482 442
      */
483
-    readonly type: number
443
+    readonly waveMin: number
484 444
     /**
485
-     * 道具名
445
+     * 波数上限
486 446
      */
487
-    readonly name: string
447
+    readonly waveMax: number
448
+    /**
449
+     * 难度
450
+     */
451
+    readonly level: number
452
+    /**
453
+     * 奖励列表
454
+     */
455
+    readonly rewards: Common.Reward[]
488 456
 
489 457
     resolve(tables:Tables) {
490 458
         
491 459
         
492 460
         
461
+        
462
+        for (let _e of this.rewards) { _e?.resolve(tables); }
493 463
     }
494 464
 }
495 465
 
@@ -497,12 +467,13 @@ export class Item {
497 467
 
498 468
 
499 469
 
500
-export class BattleSummonWeight {
470
+export class HeroQualityWorth {
501 471
 
502 472
     constructor(_buf_: ByteBuf) {
503 473
         this.idx = _buf_.ReadInt()
504 474
         this.quality = _buf_.ReadInt()
505
-        this.weight = _buf_.ReadInt()
475
+        this.gold = _buf_.ReadInt()
476
+        this.gem = _buf_.ReadInt()
506 477
     }
507 478
 
508 479
     /**
@@ -514,14 +485,19 @@ export class BattleSummonWeight {
514 485
      */
515 486
     readonly quality: Quality
516 487
     /**
517
-     * 权重
488
+     * 局内金币
518 489
      */
519
-    readonly weight: number
490
+    readonly gold: number
491
+    /**
492
+     * 局内宝石
493
+     */
494
+    readonly gem: number
520 495
 
521 496
     resolve(tables:Tables) {
522 497
         
523 498
         
524 499
         
500
+        
525 501
     }
526 502
 }
527 503
 
@@ -529,31 +505,103 @@ export class BattleSummonWeight {
529 505
 
530 506
 
531 507
 
532
-export class System {
508
+export class SkillBuff {
533 509
 
534 510
     constructor(_buf_: ByteBuf) {
535 511
         this.idx = _buf_.ReadInt()
536
-        this.mainKey = _buf_.ReadString()
537
-        this.value = _buf_.ReadString()
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()
538 526
     }
539 527
 
540 528
     /**
541
-     * IDX
529
+     * buffid
542 530
      */
543 531
     readonly idx: number
544 532
     /**
545
-     * 常量主键
533
+     * 备注
546 534
      */
547
-    readonly mainKey: string
535
+    readonly remark: string
548 536
     /**
549
-     * 常量值
537
+     * buff类型
550 538
      */
551
-    readonly value: string
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
582
+     */
583
+    readonly skillShowId: number
584
+    /**
585
+     * 飘字id
586
+     */
587
+    readonly floatingTextId: number
552 588
 
553 589
     resolve(tables:Tables) {
554 590
         
555 591
         
556 592
         
593
+        
594
+        
595
+        
596
+        
597
+        
598
+        
599
+        
600
+        
601
+        
602
+        
603
+        
604
+        
557 605
     }
558 606
 }
559 607
 
@@ -653,86 +701,46 @@ export class Skill {
653 701
 
654 702
 
655 703
 
656
-export class SkillBuff {
704
+export class Hero {
657 705
 
658 706
     constructor(_buf_: ByteBuf) {
659
-        this.idx = _buf_.ReadInt()
660
-        this.remark = _buf_.ReadString()
661
-        this.type = _buf_.ReadInt()
662
-        this.parameters = _buf_.ReadString()
663
-        this.probability = _buf_.ReadInt()
664
-        this.triggerCondition = _buf_.ReadString()
665
-        this.effectType = _buf_.ReadInt()
666
-        this.duration = _buf_.ReadInt()
667
-        this.overlapTimes = _buf_.ReadInt()
668
-        this.uniqueGain = _buf_.ReadBool()
669
-        this.halo = _buf_.ReadBool()
670
-        this.attributes = _buf_.ReadString()
671
-        this.mixBufficon = _buf_.ReadInt()
672
-        this.skillShowId = _buf_.ReadInt()
673
-        this.floatingTextId = _buf_.ReadInt()
707
+        this.id = _buf_.ReadInt()
708
+        this.quality = _buf_.ReadInt()
709
+        this.attacktype = _buf_.ReadInt()
710
+        this.name = _buf_.ReadString()
711
+        { 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);}}
712
+        { 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);}}
713
+        this.isShow = _buf_.ReadInt()
674 714
     }
675 715
 
676 716
     /**
677
-     * buffid
678
-     */
679
-    readonly idx: number
680
-    /**
681
-     * 备注
682
-     */
683
-    readonly remark: string
684
-    /**
685
-     * buff类型
686
-     */
687
-    readonly type: number
688
-    /**
689
-     * buff参数
690
-     */
691
-    readonly parameters: string
692
-    /**
693
-     * 触发概率
694
-     */
695
-    readonly probability: number
696
-    /**
697
-     * 触发条件
698
-     */
699
-    readonly triggerCondition: string
700
-    /**
701
-     * 效果类型
702
-     */
703
-    readonly effectType: number
704
-    /**
705
-     * 持续时间
706
-     */
707
-    readonly duration: number
708
-    /**
709
-     * 叠加次数
717
+     * 英雄ID
710 718
      */
711
-    readonly overlapTimes: number
719
+    readonly id: number
712 720
     /**
713
-     * 唯一增益
721
+     * 品质
714 722
      */
715
-    readonly uniqueGain: boolean
723
+    readonly quality: Quality
716 724
     /**
717
-     * 是否是光环
725
+     * 攻击类型
718 726
      */
719
-    readonly halo: boolean
727
+    readonly attacktype: AttackType
720 728
     /**
721
-     * buff增加的属性
729
+     * 名字
722 730
      */
723
-    readonly attributes: string
731
+    readonly name: string
724 732
     /**
725
-     * 是否合并
733
+     * 技能列表
726 734
      */
727
-    readonly mixBufficon: number
735
+    readonly skills: number[]
728 736
     /**
729
-     * 效果id
737
+     * 合成英雄公式
730 738
      */
731
-    readonly skillShowId: number
739
+    readonly composeheros: number[]
732 740
     /**
733
-     * 飘字id
741
+     * 是否测试
734 742
      */
735
-    readonly floatingTextId: number
743
+    readonly isShow: number
736 744
 
737 745
     resolve(tables:Tables) {
738 746
         
@@ -742,14 +750,6 @@ export class SkillBuff {
742 750
         
743 751
         
744 752
         
745
-        
746
-        
747
-        
748
-        
749
-        
750
-        
751
-        
752
-        
753 753
     }
754 754
 }
755 755