Pārlūkot izejas kodu

auto config export

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

+ 160 - 160
schema/schema.ts

@@ -263,43 +263,79 @@ export class Reward {
263 263
 
264 264
 
265 265
 
266
-export class WaveRewards {
266
+export class Wave {
267 267
 
268 268
     constructor(_buf_: ByteBuf) {
269 269
         this.idx = _buf_.ReadInt()
270
-        this.waveMin = _buf_.ReadInt()
271
-        this.waveMax = _buf_.ReadInt()
270
+        this.waveIndex = _buf_.ReadInt()
272 271
         this.level = _buf_.ReadInt()
273
-        { 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);}}
272
+        this.model = _buf_.ReadInt()
273
+        this.counter = _buf_.ReadInt()
274
+        this.hp = _buf_.ReadInt()
275
+        this.speed = _buf_.ReadInt()
276
+        this.gap = _buf_.ReadInt()
277
+        this.isboss = _buf_.ReadInt()
278
+        this.perAddCoid = _buf_.ReadInt()
279
+        this.perAddGem = _buf_.ReadInt()
274 280
     }
275 281
 
276 282
     /**
277
-     * idx
283
+     * 唯一id
278 284
      */
279 285
     readonly idx: number
280 286
     /**
281
-     * 波数下限
282
-     */
283
-    readonly waveMin: number
284
-    /**
285
-     * 波数上限
287
+     * 波数
286 288
      */
287
-    readonly waveMax: number
289
+    readonly waveIndex: number
288 290
     /**
289 291
      * 难度
290 292
      */
291 293
     readonly level: number
292 294
     /**
293
-     * 奖励列表
295
+     * 怪物模型
294 296
      */
295
-    readonly rewards: Common.Reward[]
297
+    readonly model: number
298
+    /**
299
+     * 数量
300
+     */
301
+    readonly counter: number
302
+    /**
303
+     * 血量
304
+     */
305
+    readonly hp: number
306
+    /**
307
+     * 速度
308
+     */
309
+    readonly speed: number
310
+    /**
311
+     * 间距
312
+     */
313
+    readonly gap: number
314
+    /**
315
+     * 是否是boss
316
+     */
317
+    readonly isboss: number
318
+    /**
319
+     * 每只怪增加局内金币
320
+     */
321
+    readonly perAddCoid: number
322
+    /**
323
+     * 每只怪增加局内宝石
324
+     */
325
+    readonly perAddGem: number
296 326
 
297 327
     resolve(tables:Tables) {
298 328
         
299 329
         
300 330
         
301 331
         
302
-        for (let _e of this.rewards) { _e?.resolve(tables); }
332
+        
333
+        
334
+        
335
+        
336
+        
337
+        
338
+        
303 339
     }
304 340
 }
305 341
 
@@ -307,28 +343,25 @@ export class WaveRewards {
307 343
 
308 344
 
309 345
 
310
-export class SkillBuff {
346
+export class Skill {
311 347
 
312 348
     constructor(_buf_: ByteBuf) {
313 349
         this.idx = _buf_.ReadInt()
314 350
         this.remark = _buf_.ReadString()
315
-        this.type = _buf_.ReadInt()
316
-        this.parameters = _buf_.ReadString()
317
-        this.probability = _buf_.ReadInt()
351
+        this.skillId = _buf_.ReadInt()
352
+        this.level = _buf_.ReadInt()
353
+        this.skillType = _buf_.ReadInt()
354
+        this.cd = _buf_.ReadInt()
318 355
         this.triggerCondition = _buf_.ReadString()
319
-        this.effectType = _buf_.ReadInt()
320
-        this.duration = _buf_.ReadInt()
321
-        this.overlapTimes = _buf_.ReadInt()
322
-        this.uniqueGain = _buf_.ReadBool()
323
-        this.halo = _buf_.ReadBool()
324
-        this.attributes = _buf_.ReadString()
325
-        this.mixBufficon = _buf_.ReadInt()
326
-        this.skillShowId = _buf_.ReadInt()
327
-        this.floatingTextId = _buf_.ReadInt()
356
+        this.effects = _buf_.ReadString()
357
+        this.buffId = _buf_.ReadString()
358
+        this.skillName = _buf_.ReadString()
359
+        this.desc = _buf_.ReadString()
360
+        this.conflictSkillId = _buf_.ReadInt()
328 361
     }
329 362
 
330 363
     /**
331
-     * buffid
364
+     * 主键id
332 365
      */
333 366
     readonly idx: number
334 367
     /**
@@ -336,57 +369,45 @@ export class SkillBuff {
336 369
      */
337 370
     readonly remark: string
338 371
     /**
339
-     * buff类型
340
-     */
341
-    readonly type: number
342
-    /**
343
-     * buff参数
344
-     */
345
-    readonly parameters: string
346
-    /**
347
-     * 触发概率
348
-     */
349
-    readonly probability: number
350
-    /**
351
-     * 触发条件
372
+     * 技能ID
352 373
      */
353
-    readonly triggerCondition: string
374
+    readonly skillId: number
354 375
     /**
355
-     * 效果类型
376
+     * 等级
356 377
      */
357
-    readonly effectType: number
378
+    readonly level: number
358 379
     /**
359
-     * 持续时间
380
+     * 类型
360 381
      */
361
-    readonly duration: number
382
+    readonly skillType: number
362 383
     /**
363
-     * 叠加次数
384
+     * 冷却时间
364 385
      */
365
-    readonly overlapTimes: number
386
+    readonly cd: number
366 387
     /**
367
-     * 唯一增益
388
+     * 技能触发条件
368 389
      */
369
-    readonly uniqueGain: boolean
390
+    readonly triggerCondition: string
370 391
     /**
371
-     * 是否是光环
392
+     * 效果列表
372 393
      */
373
-    readonly halo: boolean
394
+    readonly effects: string
374 395
     /**
375
-     * buff增加的属性
396
+     * buff
376 397
      */
377
-    readonly attributes: string
398
+    readonly buffId: string
378 399
     /**
379
-     * 是否合并
400
+     * 技能名字
380 401
      */
381
-    readonly mixBufficon: number
402
+    readonly skillName: string
382 403
     /**
383
-     * 效果id
404
+     * 技能描述
384 405
      */
385
-    readonly skillShowId: number
406
+    readonly desc: string
386 407
     /**
387
-     * 飘字id
408
+     * 冲突的技能id
388 409
      */
389
-    readonly floatingTextId: number
410
+    readonly conflictSkillId: number
390 411
 
391 412
     resolve(tables:Tables) {
392 413
         
@@ -401,9 +422,6 @@ export class SkillBuff {
401 422
         
402 423
         
403 424
         
404
-        
405
-        
406
-        
407 425
     }
408 426
 }
409 427
 
@@ -411,25 +429,28 @@ export class SkillBuff {
411 429
 
412 430
 
413 431
 
414
-export class Skill {
432
+export class SkillBuff {
415 433
 
416 434
     constructor(_buf_: ByteBuf) {
417 435
         this.idx = _buf_.ReadInt()
418 436
         this.remark = _buf_.ReadString()
419
-        this.skillId = _buf_.ReadInt()
420
-        this.level = _buf_.ReadInt()
421
-        this.skillType = _buf_.ReadInt()
422
-        this.cd = _buf_.ReadInt()
437
+        this.type = _buf_.ReadInt()
438
+        this.parameters = _buf_.ReadString()
439
+        this.probability = _buf_.ReadInt()
423 440
         this.triggerCondition = _buf_.ReadString()
424
-        this.effects = _buf_.ReadString()
425
-        this.buffId = _buf_.ReadString()
426
-        this.skillName = _buf_.ReadString()
427
-        this.desc = _buf_.ReadString()
428
-        this.conflictSkillId = _buf_.ReadInt()
441
+        this.effectType = _buf_.ReadInt()
442
+        this.duration = _buf_.ReadInt()
443
+        this.overlapTimes = _buf_.ReadInt()
444
+        this.uniqueGain = _buf_.ReadBool()
445
+        this.halo = _buf_.ReadBool()
446
+        this.attributes = _buf_.ReadString()
447
+        this.mixBufficon = _buf_.ReadInt()
448
+        this.skillShowId = _buf_.ReadInt()
449
+        this.floatingTextId = _buf_.ReadInt()
429 450
     }
430 451
 
431 452
     /**
432
-     * 主键id
453
+     * buffid
433 454
      */
434 455
     readonly idx: number
435 456
     /**
@@ -437,45 +458,57 @@ export class Skill {
437 458
      */
438 459
     readonly remark: string
439 460
     /**
440
-     * 技能ID
461
+     * buff类型
441 462
      */
442
-    readonly skillId: number
463
+    readonly type: number
443 464
     /**
444
-     * 等级
465
+     * buff参数
445 466
      */
446
-    readonly level: number
467
+    readonly parameters: string
447 468
     /**
448
-     * 类型
469
+     * 触发概率
449 470
      */
450
-    readonly skillType: number
471
+    readonly probability: number
451 472
     /**
452
-     * 冷却时间
473
+     * 触发条件
453 474
      */
454
-    readonly cd: number
475
+    readonly triggerCondition: string
455 476
     /**
456
-     * 技能触发条件
477
+     * 效果类型
457 478
      */
458
-    readonly triggerCondition: string
479
+    readonly effectType: number
459 480
     /**
460
-     * 效果列表
481
+     * 持续时间
461 482
      */
462
-    readonly effects: string
483
+    readonly duration: number
463 484
     /**
464
-     * buff
485
+     * 叠加次数
465 486
      */
466
-    readonly buffId: string
487
+    readonly overlapTimes: number
467 488
     /**
468
-     * 技能名字
489
+     * 唯一增益
469 490
      */
470
-    readonly skillName: string
491
+    readonly uniqueGain: boolean
471 492
     /**
472
-     * 技能描述
493
+     * 是否是光环
473 494
      */
474
-    readonly desc: string
495
+    readonly halo: boolean
475 496
     /**
476
-     * 冲突的技能id
497
+     * buff增加的属性
477 498
      */
478
-    readonly conflictSkillId: number
499
+    readonly attributes: string
500
+    /**
501
+     * 是否合并
502
+     */
503
+    readonly mixBufficon: number
504
+    /**
505
+     * 效果id
506
+     */
507
+    readonly skillShowId: number
508
+    /**
509
+     * 飘字id
510
+     */
511
+    readonly floatingTextId: number
479 512
 
480 513
     resolve(tables:Tables) {
481 514
         
@@ -490,6 +523,9 @@ export class Skill {
490 523
         
491 524
         
492 525
         
526
+        
527
+        
528
+        
493 529
     }
494 530
 }
495 531
 
@@ -591,26 +627,26 @@ export class HeroLevel {
591 627
 
592 628
 
593 629
 
594
-export class System {
630
+export class Item {
595 631
 
596 632
     constructor(_buf_: ByteBuf) {
597 633
         this.idx = _buf_.ReadInt()
598
-        this.mainKey = _buf_.ReadString()
599
-        this.value = _buf_.ReadString()
634
+        this.type = _buf_.ReadInt()
635
+        this.name = _buf_.ReadString()
600 636
     }
601 637
 
602 638
     /**
603
-     * IDX
639
+     * 道具ID
604 640
      */
605 641
     readonly idx: number
606 642
     /**
607
-     * 常量主键
643
+     * 类型
608 644
      */
609
-    readonly mainKey: string
645
+    readonly type: number
610 646
     /**
611
-     * 常量值
647
+     * 道具名
612 648
      */
613
-    readonly value: string
649
+    readonly name: string
614 650
 
615 651
     resolve(tables:Tables) {
616 652
         
@@ -623,26 +659,26 @@ export class System {
623 659
 
624 660
 
625 661
 
626
-export class Item {
662
+export class System {
627 663
 
628 664
     constructor(_buf_: ByteBuf) {
629 665
         this.idx = _buf_.ReadInt()
630
-        this.type = _buf_.ReadInt()
631
-        this.name = _buf_.ReadString()
666
+        this.mainKey = _buf_.ReadString()
667
+        this.value = _buf_.ReadString()
632 668
     }
633 669
 
634 670
     /**
635
-     * 道具ID
671
+     * IDX
636 672
      */
637 673
     readonly idx: number
638 674
     /**
639
-     * 类型
675
+     * 常量主键
640 676
      */
641
-    readonly type: number
677
+    readonly mainKey: string
642 678
     /**
643
-     * 道具名
679
+     * 常量值
644 680
      */
645
-    readonly name: string
681
+    readonly value: string
646 682
 
647 683
     resolve(tables:Tables) {
648 684
         
@@ -655,79 +691,43 @@ export class Item {
655 691
 
656 692
 
657 693
 
658
-export class Wave {
694
+export class WaveRewards {
659 695
 
660 696
     constructor(_buf_: ByteBuf) {
661 697
         this.idx = _buf_.ReadInt()
662
-        this.waveIndex = _buf_.ReadInt()
698
+        this.waveMin = _buf_.ReadInt()
699
+        this.waveMax = _buf_.ReadInt()
663 700
         this.level = _buf_.ReadInt()
664
-        this.model = _buf_.ReadInt()
665
-        this.counter = _buf_.ReadInt()
666
-        this.hp = _buf_.ReadInt()
667
-        this.speed = _buf_.ReadInt()
668
-        this.gap = _buf_.ReadInt()
669
-        this.isboss = _buf_.ReadInt()
670
-        this.perAddCoid = _buf_.ReadInt()
671
-        this.perAddGem = _buf_.ReadInt()
701
+        { 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);}}
672 702
     }
673 703
 
674 704
     /**
675
-     * 唯一id
705
+     * idx
676 706
      */
677 707
     readonly idx: number
678 708
     /**
679
-     * 波数
680
-     */
681
-    readonly waveIndex: number
682
-    /**
683
-     * 难度
684
-     */
685
-    readonly level: number
686
-    /**
687
-     * 怪物模型
688
-     */
689
-    readonly model: number
690
-    /**
691
-     * 数量
692
-     */
693
-    readonly counter: number
694
-    /**
695
-     * 血量
696
-     */
697
-    readonly hp: number
698
-    /**
699
-     * 速度
700
-     */
701
-    readonly speed: number
702
-    /**
703
-     * 间距
709
+     * 波数下限
704 710
      */
705
-    readonly gap: number
711
+    readonly waveMin: number
706 712
     /**
707
-     * 是否是boss
713
+     * 波数上限
708 714
      */
709
-    readonly isboss: number
715
+    readonly waveMax: number
710 716
     /**
711
-     * 每只怪增加局内金币
717
+     * 难度
712 718
      */
713
-    readonly perAddCoid: number
719
+    readonly level: number
714 720
     /**
715
-     * 每只怪增加局内宝石
721
+     * 奖励列表
716 722
      */
717
-    readonly perAddGem: number
723
+    readonly rewards: Common.Reward[]
718 724
 
719 725
     resolve(tables:Tables) {
720 726
         
721 727
         
722 728
         
723 729
         
724
-        
725
-        
726
-        
727
-        
728
-        
729
-        
730
-        
730
+        for (let _e of this.rewards) { _e?.resolve(tables); }
731 731
     }
732 732
 }
733 733