Explorar o código

auto config export

Hua hai 11 meses
pai
achega
5043a47651
Modificáronse 1 ficheiros con 131 adicións e 131 borrados
  1. 131 131
      schema/schema.ts

+ 131 - 131
schema/schema.ts

@@ -289,50 +289,6 @@ 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 Item {
292
 export class Item {
337
 
293
 
338
     constructor(_buf_: ByteBuf) {
294
     constructor(_buf_: ByteBuf) {
@@ -365,43 +321,43 @@ export class Item {
365
 
321
 
366
 
322
 
367
 
323
 
368
-export class Hero {
324
+export class WaveRewards {
369
 
325
 
370
     constructor(_buf_: ByteBuf) {
326
     constructor(_buf_: ByteBuf) {
371
-        this.id = _buf_.ReadInt()
372
-        this.quality = _buf_.ReadInt()
373
-        this.attacktype = _buf_.ReadInt()
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);}}
327
+        this.idx = _buf_.ReadInt()
328
+        this.waveMin = _buf_.ReadInt()
329
+        this.waveMax = _buf_.ReadInt()
330
+        this.level = _buf_.ReadInt()
331
+        { 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);}}
376
     }
332
     }
377
 
333
 
378
     /**
334
     /**
379
-     * 英雄ID
335
+     * idx
380
      */
336
      */
381
-    readonly id: number
337
+    readonly idx: number
382
     /**
338
     /**
383
-     * 品质
339
+     * 波数下限
384
      */
340
      */
385
-    readonly quality: Quality
341
+    readonly waveMin: number
386
     /**
342
     /**
387
-     * 攻击类型
343
+     * 波数上限
388
      */
344
      */
389
-    readonly attacktype: AttackType
345
+    readonly waveMax: number
390
     /**
346
     /**
391
-     * 名字
347
+     * 难度
392
      */
348
      */
393
-    readonly name: string
349
+    readonly level: number
394
     /**
350
     /**
395
-     * 技能列表
351
+     * 奖励列表
396
      */
352
      */
397
-    readonly skills: number[]
353
+    readonly rewards: Common.Reward[]
398
 
354
 
399
     resolve(tables:Tables) {
355
     resolve(tables:Tables) {
400
         
356
         
401
         
357
         
402
         
358
         
403
         
359
         
404
-        
360
+        for (let _e of this.rewards) { _e?.resolve(tables); }
405
     }
361
     }
406
 }
362
 }
407
 
363
 
@@ -409,85 +365,31 @@ export class Hero {
409
 
365
 
410
 
366
 
411
 
367
 
412
-export class Skill {
368
+export class System {
413
 
369
 
414
     constructor(_buf_: ByteBuf) {
370
     constructor(_buf_: ByteBuf) {
415
         this.idx = _buf_.ReadInt()
371
         this.idx = _buf_.ReadInt()
416
-        this.remark = _buf_.ReadString()
417
-        this.skillId = _buf_.ReadInt()
418
-        this.level = _buf_.ReadInt()
419
-        this.skillType = _buf_.ReadInt()
420
-        this.cd = _buf_.ReadInt()
421
-        this.triggerCondition = _buf_.ReadString()
422
-        this.effects = _buf_.ReadString()
423
-        this.buffId = _buf_.ReadString()
424
-        this.skillName = _buf_.ReadString()
425
-        this.desc = _buf_.ReadString()
426
-        this.conflictSkillId = _buf_.ReadInt()
372
+        this.mainKey = _buf_.ReadString()
373
+        this.value = _buf_.ReadString()
427
     }
374
     }
428
 
375
 
429
     /**
376
     /**
430
-     * 主键id
377
+     * IDX
431
      */
378
      */
432
     readonly idx: number
379
     readonly idx: number
433
     /**
380
     /**
434
-     * 备注
435
-     */
436
-    readonly remark: string
437
-    /**
438
-     * 技能ID
439
-     */
440
-    readonly skillId: number
441
-    /**
442
-     * 等级
443
-     */
444
-    readonly level: number
445
-    /**
446
-     * 类型
447
-     */
448
-    readonly skillType: number
449
-    /**
450
-     * 冷却时间
451
-     */
452
-    readonly cd: number
453
-    /**
454
-     * 技能触发条件
455
-     */
456
-    readonly triggerCondition: string
457
-    /**
458
-     * 效果列表
459
-     */
460
-    readonly effects: string
461
-    /**
462
-     * buff
463
-     */
464
-    readonly buffId: string
465
-    /**
466
-     * 技能名字
467
-     */
468
-    readonly skillName: string
469
-    /**
470
-     * 技能描述
381
+     * 常量主键
471
      */
382
      */
472
-    readonly desc: string
383
+    readonly mainKey: string
473
     /**
384
     /**
474
-     * 冲突的技能id
385
+     * 常量值
475
      */
386
      */
476
-    readonly conflictSkillId: number
387
+    readonly value: string
477
 
388
 
478
     resolve(tables:Tables) {
389
     resolve(tables:Tables) {
479
         
390
         
480
         
391
         
481
         
392
         
482
-        
483
-        
484
-        
485
-        
486
-        
487
-        
488
-        
489
-        
490
-        
491
     }
393
     }
492
 }
394
 }
493
 
395
 
@@ -599,31 +501,129 @@ export class SkillBuff {
599
 
501
 
600
 
502
 
601
 
503
 
602
-export class System {
504
+export class Skill {
603
 
505
 
604
     constructor(_buf_: ByteBuf) {
506
     constructor(_buf_: ByteBuf) {
605
         this.idx = _buf_.ReadInt()
507
         this.idx = _buf_.ReadInt()
606
-        this.mainKey = _buf_.ReadString()
607
-        this.value = _buf_.ReadString()
508
+        this.remark = _buf_.ReadString()
509
+        this.skillId = _buf_.ReadInt()
510
+        this.level = _buf_.ReadInt()
511
+        this.skillType = _buf_.ReadInt()
512
+        this.cd = _buf_.ReadInt()
513
+        this.triggerCondition = _buf_.ReadString()
514
+        this.effects = _buf_.ReadString()
515
+        this.buffId = _buf_.ReadString()
516
+        this.skillName = _buf_.ReadString()
517
+        this.desc = _buf_.ReadString()
518
+        this.conflictSkillId = _buf_.ReadInt()
608
     }
519
     }
609
 
520
 
610
     /**
521
     /**
611
-     * IDX
522
+     * 主键id
612
      */
523
      */
613
     readonly idx: number
524
     readonly idx: number
614
     /**
525
     /**
615
-     * 常量主键
526
+     * 备注
616
      */
527
      */
617
-    readonly mainKey: string
528
+    readonly remark: string
618
     /**
529
     /**
619
-     * 常量值
530
+     * 技能ID
620
      */
531
      */
621
-    readonly value: string
532
+    readonly skillId: number
533
+    /**
534
+     * 等级
535
+     */
536
+    readonly level: number
537
+    /**
538
+     * 类型
539
+     */
540
+    readonly skillType: number
541
+    /**
542
+     * 冷却时间
543
+     */
544
+    readonly cd: number
545
+    /**
546
+     * 技能触发条件
547
+     */
548
+    readonly triggerCondition: string
549
+    /**
550
+     * 效果列表
551
+     */
552
+    readonly effects: string
553
+    /**
554
+     * buff
555
+     */
556
+    readonly buffId: string
557
+    /**
558
+     * 技能名字
559
+     */
560
+    readonly skillName: string
561
+    /**
562
+     * 技能描述
563
+     */
564
+    readonly desc: string
565
+    /**
566
+     * 冲突的技能id
567
+     */
568
+    readonly conflictSkillId: number
622
 
569
 
623
     resolve(tables:Tables) {
570
     resolve(tables:Tables) {
624
         
571
         
625
         
572
         
626
         
573
         
574
+        
575
+        
576
+        
577
+        
578
+        
579
+        
580
+        
581
+        
582
+        
583
+    }
584
+}
585
+
586
+
587
+
588
+
589
+
590
+export class Hero {
591
+
592
+    constructor(_buf_: ByteBuf) {
593
+        this.id = _buf_.ReadInt()
594
+        this.quality = _buf_.ReadInt()
595
+        this.attacktype = _buf_.ReadInt()
596
+        this.name = _buf_.ReadString()
597
+        { 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);}}
598
+    }
599
+
600
+    /**
601
+     * 英雄ID
602
+     */
603
+    readonly id: number
604
+    /**
605
+     * 品质
606
+     */
607
+    readonly quality: Quality
608
+    /**
609
+     * 攻击类型
610
+     */
611
+    readonly attacktype: AttackType
612
+    /**
613
+     * 名字
614
+     */
615
+    readonly name: string
616
+    /**
617
+     * 技能列表
618
+     */
619
+    readonly skills: number[]
620
+
621
+    resolve(tables:Tables) {
622
+        
623
+        
624
+        
625
+        
626
+        
627
     }
627
     }
628
 }
628
 }
629
 
629