少年修仙传客户端代码仓库
client_linchunjie
2018-12-27 90e94f9e837b46f8407957b5456b539915b8f9f1
5504 【前端】【1.4】提交王者法宝物品表
2个文件已添加
1个文件已修改
60 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/KingTreasureItemConfig.cs 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/KingTreasureItemConfig.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/ConfigManager.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/KingTreasureItemConfig.cs
New file
@@ -0,0 +1,47 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Thursday, December 27, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
    public partial class KingTreasureItemConfig : ConfigBase {
        public int itemId { get ; private set ; }
        public int rewardLevel { get ; private set ; }
        public string description { get ; private set; }
        public string qualityName { get ; private set; }
        public override string getKey()
        {
            return itemId.ToString();
        }
        public override void Parse() {
            try
            {
                itemId=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
                rewardLevel=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
                description = rawContents[2].Trim();
                qualityName = rawContents[3].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
        }
    }
}
Core/GameEngine/Model/Config/KingTreasureItemConfig.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 0a1b32d5d4ffcc74b8730b053596d44c
timeCreated: 1545916909
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Core/GameEngine/Model/ConfigManager.cs
@@ -218,6 +218,7 @@
        AddAsyncTask<GatherSoulPropertyConfig>();
        AddAsyncTask<GatherSoulComposeConfig>();
        AddAsyncTask<KingTreasureConfig>();
        AddAsyncTask<KingTreasureItemConfig>();
        while (!AllCompleted())
        {