Browse Source

auto config export

Hua 11 months ago
parent
commit
fead9f8e38
1 changed files with 152 additions and 152 deletions
  1. 152 152
      schema/schema.ts

+ 152 - 152
schema/schema.ts

@@ -289,6 +289,114 @@ export class Cost {
289 289
 
290 290
 
291 291
 
292
+export class WaveRewards {
293
+
294
+    constructor(_buf_: ByteBuf) {
295
+        this.idx = _buf_.ReadInt()
296
+        this.waveMin = _buf_.ReadInt()
297
+        this.waveMax = _buf_.ReadInt()
298
+        this.level = _buf_.ReadInt()
299
+        { 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);}}
300
+    }
301
+
302
+    /**
303
+     * idx
304
+     */
305
+    readonly idx: number
306
+    /**
307
+     * 波数下限
308
+     */
309
+    readonly waveMin: number
310
+    /**
311
+     * 波数上限
312
+     */
313
+    readonly waveMax: number
314
+    /**
315
+     * 难度
316
+     */
317
+    readonly level: number
318
+    /**
319
+     * 奖励列表
320
+     */
321
+    readonly rewards: Common.Reward[]
322
+
323
+    resolve(tables:Tables) {
324
+        
325
+        
326
+        
327
+        
328
+        for (let _e of this.rewards) { _e?.resolve(tables); }
329
+    }
330
+}
331
+
332
+
333
+
334
+
335
+
336
+export class System {
337
+
338
+    constructor(_buf_: ByteBuf) {
339
+        this.idx = _buf_.ReadInt()
340
+        this.mainKey = _buf_.ReadString()
341
+        this.value = _buf_.ReadString()
342
+    }
343
+
344
+    /**
345
+     * IDX
346
+     */
347
+    readonly idx: number
348
+    /**
349
+     * 常量主键
350
+     */
351
+    readonly mainKey: string
352
+    /**
353
+     * 常量值
354
+     */
355
+    readonly value: string
356
+
357
+    resolve(tables:Tables) {
358
+        
359
+        
360
+        
361
+    }
362
+}
363
+
364
+
365
+
366
+
367
+
368
+export class Item {
369
+
370
+    constructor(_buf_: ByteBuf) {
371
+        this.idx = _buf_.ReadInt()
372
+        this.type = _buf_.ReadInt()
373
+        this.name = _buf_.ReadString()
374
+    }
375
+
376
+    /**
377
+     * 道具ID
378
+     */
379
+    readonly idx: number
380
+    /**
381
+     * 类型
382
+     */
383
+    readonly type: number
384
+    /**
385
+     * 道具名
386
+     */
387
+    readonly name: string
388
+
389
+    resolve(tables:Tables) {
390
+        
391
+        
392
+        
393
+    }
394
+}
395
+
396
+
397
+
398
+
399
+
292 400
 export class SkillBuff {
293 401
 
294 402
     constructor(_buf_: ByteBuf) {
@@ -393,6 +501,50 @@ export class SkillBuff {
393 501
 
394 502
 
395 503
 
504
+export class Hero {
505
+
506
+    constructor(_buf_: ByteBuf) {
507
+        this.id = _buf_.ReadInt()
508
+        this.quality = _buf_.ReadInt()
509
+        this.attacktype = _buf_.ReadInt()
510
+        this.name = _buf_.ReadString()
511
+        { 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);}}
512
+    }
513
+
514
+    /**
515
+     * 英雄ID
516
+     */
517
+    readonly id: number
518
+    /**
519
+     * 品质
520
+     */
521
+    readonly quality: Quality
522
+    /**
523
+     * 攻击类型
524
+     */
525
+    readonly attacktype: AttackType
526
+    /**
527
+     * 名字
528
+     */
529
+    readonly name: string
530
+    /**
531
+     * 技能列表
532
+     */
533
+    readonly skills: number[]
534
+
535
+    resolve(tables:Tables) {
536
+        
537
+        
538
+        
539
+        
540
+        
541
+    }
542
+}
543
+
544
+
545
+
546
+
547
+
396 548
 export class Skill {
397 549
 
398 550
     constructor(_buf_: ByteBuf) {
@@ -479,114 +631,6 @@ export class Skill {
479 631
 
480 632
 
481 633
 
482
-export class WaveRewards {
483
-
484
-    constructor(_buf_: ByteBuf) {
485
-        this.idx = _buf_.ReadInt()
486
-        this.waveMin = _buf_.ReadInt()
487
-        this.waveMax = _buf_.ReadInt()
488
-        this.level = _buf_.ReadInt()
489
-        { 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);}}
490
-    }
491
-
492
-    /**
493
-     * idx
494
-     */
495
-    readonly idx: number
496
-    /**
497
-     * 波数下限
498
-     */
499
-    readonly waveMin: number
500
-    /**
501
-     * 波数上限
502
-     */
503
-    readonly waveMax: number
504
-    /**
505
-     * 难度
506
-     */
507
-    readonly level: number
508
-    /**
509
-     * 奖励列表
510
-     */
511
-    readonly rewards: Common.Reward[]
512
-
513
-    resolve(tables:Tables) {
514
-        
515
-        
516
-        
517
-        
518
-        for (let _e of this.rewards) { _e?.resolve(tables); }
519
-    }
520
-}
521
-
522
-
523
-
524
-
525
-
526
-export class System {
527
-
528
-    constructor(_buf_: ByteBuf) {
529
-        this.idx = _buf_.ReadInt()
530
-        this.mainKey = _buf_.ReadString()
531
-        this.value = _buf_.ReadString()
532
-    }
533
-
534
-    /**
535
-     * IDX
536
-     */
537
-    readonly idx: number
538
-    /**
539
-     * 常量主键
540
-     */
541
-    readonly mainKey: string
542
-    /**
543
-     * 常量值
544
-     */
545
-    readonly value: string
546
-
547
-    resolve(tables:Tables) {
548
-        
549
-        
550
-        
551
-    }
552
-}
553
-
554
-
555
-
556
-
557
-
558
-export class Item {
559
-
560
-    constructor(_buf_: ByteBuf) {
561
-        this.idx = _buf_.ReadInt()
562
-        this.type = _buf_.ReadInt()
563
-        this.name = _buf_.ReadString()
564
-    }
565
-
566
-    /**
567
-     * 道具ID
568
-     */
569
-    readonly idx: number
570
-    /**
571
-     * 类型
572
-     */
573
-    readonly type: number
574
-    /**
575
-     * 道具名
576
-     */
577
-    readonly name: string
578
-
579
-    resolve(tables:Tables) {
580
-        
581
-        
582
-        
583
-    }
584
-}
585
-
586
-
587
-
588
-
589
-
590 634
 export class Wave {
591 635
 
592 636
     constructor(_buf_: ByteBuf) {
@@ -667,50 +711,6 @@ export class Wave {
667 711
 
668 712
 
669 713
 
670
-export class Hero {
671
-
672
-    constructor(_buf_: ByteBuf) {
673
-        this.id = _buf_.ReadInt()
674
-        this.quality = _buf_.ReadInt()
675
-        this.attacktype = _buf_.ReadInt()
676
-        this.name = _buf_.ReadString()
677
-        { 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);}}
678
-    }
679
-
680
-    /**
681
-     * 英雄ID
682
-     */
683
-    readonly id: number
684
-    /**
685
-     * 品质
686
-     */
687
-    readonly quality: Quality
688
-    /**
689
-     * 攻击类型
690
-     */
691
-    readonly attacktype: AttackType
692
-    /**
693
-     * 名字
694
-     */
695
-    readonly name: string
696
-    /**
697
-     * 技能列表
698
-     */
699
-    readonly skills: number[]
700
-
701
-    resolve(tables:Tables) {
702
-        
703
-        
704
-        
705
-        
706
-        
707
-    }
708
-}
709
-
710
-
711
-
712
-
713
-
714 714
 export class HeroLevel {
715 715
 
716 716
     constructor(_buf_: ByteBuf) {