Explorar o código

auto config export

Hua hai 11 meses
pai
achega
460306668a
Modificáronse 1 ficheiros con 140 adicións e 140 borrados
  1. 140 140
      schema/schema.ts

+ 140 - 140
schema/schema.ts

@@ -289,86 +289,6 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
-export class Wave {
293
-
294
-    constructor(_buf_: ByteBuf) {
295
-        this.idx = _buf_.ReadInt()
296
-        this.waveIndex = _buf_.ReadInt()
297
-        this.level = _buf_.ReadInt()
298
-        this.model = _buf_.ReadInt()
299
-        this.counter = _buf_.ReadInt()
300
-        this.hp = _buf_.ReadInt()
301
-        this.speed = _buf_.ReadInt()
302
-        this.gap = _buf_.ReadInt()
303
-        this.isboss = _buf_.ReadInt()
304
-        this.perAddCoid = _buf_.ReadInt()
305
-        this.perAddGem = _buf_.ReadInt()
306
-    }
307
-
308
-    /**
309
-     * 唯一id
310
-     */
311
-    readonly idx: number
312
-    /**
313
-     * 波数
314
-     */
315
-    readonly waveIndex: number
316
-    /**
317
-     * 难度
318
-     */
319
-    readonly level: number
320
-    /**
321
-     * 怪物模型
322
-     */
323
-    readonly model: number
324
-    /**
325
-     * 数量
326
-     */
327
-    readonly counter: number
328
-    /**
329
-     * 血量
330
-     */
331
-    readonly hp: number
332
-    /**
333
-     * 速度
334
-     */
335
-    readonly speed: number
336
-    /**
337
-     * 间距
338
-     */
339
-    readonly gap: number
340
-    /**
341
-     * 是否是boss
342
-     */
343
-    readonly isboss: number
344
-    /**
345
-     * 每只怪增加局内金币
346
-     */
347
-    readonly perAddCoid: number
348
-    /**
349
-     * 每只怪增加局内宝石
350
-     */
351
-    readonly perAddGem: number
352
-
353
-    resolve(tables:Tables) {
354
-        
355
-        
356
-        
357
-        
358
-        
359
-        
360
-        
361
-        
362
-        
363
-        
364
-        
365
-    }
366
-}
367
-
368
-
369
-
370
-
371
-
372 292
 export class WaveRewards {
373 293
 
374 294
     constructor(_buf_: ByteBuf) {
@@ -413,26 +333,26 @@ export class WaveRewards {
413 333
 
414 334
 
415 335
 
416
-export class System {
336
+export class Item {
417 337
 
418 338
     constructor(_buf_: ByteBuf) {
419 339
         this.idx = _buf_.ReadInt()
420
-        this.mainKey = _buf_.ReadString()
421
-        this.value = _buf_.ReadString()
340
+        this.type = _buf_.ReadInt()
341
+        this.name = _buf_.ReadString()
422 342
     }
423 343
 
424 344
     /**
425
-     * IDX
345
+     * 道具ID
426 346
      */
427 347
     readonly idx: number
428 348
     /**
429
-     * 常量主键
349
+     * 类型
430 350
      */
431
-    readonly mainKey: string
351
+    readonly type: number
432 352
     /**
433
-     * 常量值
353
+     * 道具名
434 354
      */
435
-    readonly value: string
355
+    readonly name: string
436 356
 
437 357
     resolve(tables:Tables) {
438 358
         
@@ -445,31 +365,43 @@ export class System {
445 365
 
446 366
 
447 367
 
448
-export class Item {
368
+export class Hero {
449 369
 
450 370
     constructor(_buf_: ByteBuf) {
451
-        this.idx = _buf_.ReadInt()
452
-        this.type = _buf_.ReadInt()
371
+        this.id = _buf_.ReadInt()
372
+        this.quality = _buf_.ReadInt()
373
+        this.attacktype = _buf_.ReadInt()
453 374
         this.name = _buf_.ReadString()
375
+        { 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);}}
454 376
     }
455 377
 
456 378
     /**
457
-     * 道具ID
379
+     * 英雄ID
458 380
      */
459
-    readonly idx: number
381
+    readonly id: number
460 382
     /**
461
-     * 类型
383
+     * 品质
462 384
      */
463
-    readonly type: number
385
+    readonly quality: Quality
464 386
     /**
465
-     * 道具名
387
+     * 攻击类型
388
+     */
389
+    readonly attacktype: AttackType
390
+    /**
391
+     * 名字
466 392
      */
467 393
     readonly name: string
394
+    /**
395
+     * 技能列表
396
+     */
397
+    readonly skills: number[]
468 398
 
469 399
     resolve(tables:Tables) {
470 400
         
471 401
         
472 402
         
403
+        
404
+        
473 405
     }
474 406
 }
475 407
 
@@ -563,50 +495,6 @@ export class Skill {
563 495
 
564 496
 
565 497
 
566
-export class Hero {
567
-
568
-    constructor(_buf_: ByteBuf) {
569
-        this.id = _buf_.ReadInt()
570
-        this.quality = _buf_.ReadInt()
571
-        this.attacktype = _buf_.ReadInt()
572
-        this.name = _buf_.ReadString()
573
-        { 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);}}
574
-    }
575
-
576
-    /**
577
-     * 英雄ID
578
-     */
579
-    readonly id: number
580
-    /**
581
-     * 品质
582
-     */
583
-    readonly quality: Quality
584
-    /**
585
-     * 攻击类型
586
-     */
587
-    readonly attacktype: AttackType
588
-    /**
589
-     * 名字
590
-     */
591
-    readonly name: string
592
-    /**
593
-     * 技能列表
594
-     */
595
-    readonly skills: number[]
596
-
597
-    resolve(tables:Tables) {
598
-        
599
-        
600
-        
601
-        
602
-        
603
-    }
604
-}
605
-
606
-
607
-
608
-
609
-
610 498
 export class SkillBuff {
611 499
 
612 500
     constructor(_buf_: ByteBuf) {
@@ -711,6 +599,118 @@ export class SkillBuff {
711 599
 
712 600
 
713 601
 
602
+export class System {
603
+
604
+    constructor(_buf_: ByteBuf) {
605
+        this.idx = _buf_.ReadInt()
606
+        this.mainKey = _buf_.ReadString()
607
+        this.value = _buf_.ReadString()
608
+    }
609
+
610
+    /**
611
+     * IDX
612
+     */
613
+    readonly idx: number
614
+    /**
615
+     * 常量主键
616
+     */
617
+    readonly mainKey: string
618
+    /**
619
+     * 常量值
620
+     */
621
+    readonly value: string
622
+
623
+    resolve(tables:Tables) {
624
+        
625
+        
626
+        
627
+    }
628
+}
629
+
630
+
631
+
632
+
633
+
634
+export class Wave {
635
+
636
+    constructor(_buf_: ByteBuf) {
637
+        this.idx = _buf_.ReadInt()
638
+        this.waveIndex = _buf_.ReadInt()
639
+        this.level = _buf_.ReadInt()
640
+        this.model = _buf_.ReadInt()
641
+        this.counter = _buf_.ReadInt()
642
+        this.hp = _buf_.ReadInt()
643
+        this.speed = _buf_.ReadInt()
644
+        this.gap = _buf_.ReadInt()
645
+        this.isboss = _buf_.ReadInt()
646
+        this.perAddCoid = _buf_.ReadInt()
647
+        this.perAddGem = _buf_.ReadInt()
648
+    }
649
+
650
+    /**
651
+     * 唯一id
652
+     */
653
+    readonly idx: number
654
+    /**
655
+     * 波数
656
+     */
657
+    readonly waveIndex: number
658
+    /**
659
+     * 难度
660
+     */
661
+    readonly level: number
662
+    /**
663
+     * 怪物模型
664
+     */
665
+    readonly model: number
666
+    /**
667
+     * 数量
668
+     */
669
+    readonly counter: number
670
+    /**
671
+     * 血量
672
+     */
673
+    readonly hp: number
674
+    /**
675
+     * 速度
676
+     */
677
+    readonly speed: number
678
+    /**
679
+     * 间距
680
+     */
681
+    readonly gap: number
682
+    /**
683
+     * 是否是boss
684
+     */
685
+    readonly isboss: number
686
+    /**
687
+     * 每只怪增加局内金币
688
+     */
689
+    readonly perAddCoid: number
690
+    /**
691
+     * 每只怪增加局内宝石
692
+     */
693
+    readonly perAddGem: number
694
+
695
+    resolve(tables:Tables) {
696
+        
697
+        
698
+        
699
+        
700
+        
701
+        
702
+        
703
+        
704
+        
705
+        
706
+        
707
+    }
708
+}
709
+
710
+
711
+
712
+
713
+
714 714
 export class HeroLevel {
715 715
 
716 716
     constructor(_buf_: ByteBuf) {