少年修仙传客户端基础资源
0312 IL表代码生成优化,foreach改for;增加快捷创建红点;IL绑定常用表
4个文件已修改
60 ■■■■■ 已修改文件
Assets/Editor/ScriptTemplate/ConfigDataTemplate.txt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ConfigClassGenerate.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/PrefabCreateTool.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/ScriptTemplate/ConfigDataTemplate.txt
@@ -76,9 +76,9 @@
        values.AddRange(configs.Values);
        var keys = new List<string>(rawDatas.Keys);
        foreach (var key in keys)
        for (int i = 0; i < keys.Count; i++)
        {
            values.Add(Get(key));
            values.Add(Get(keys[i]));
        }
        return values;
Assets/Editor/Tool/ConfigClassGenerate.cs
@@ -267,11 +267,11 @@
            newConfigPath = configClassPath + string.Format("/{0}Config.cs", _name);
        } 
        AssetDatabase.DeleteAsset(newConfigPath);
        UnityEngine.Object o = CreateScriptAssetFromTemplate(newConfigPath, templatePath);
        UnityEngine.Object o = CreateScriptAssetFromTemplate(newConfigPath, templatePath, isIL);
        ProjectWindowUtil.ShowCreatedAsset(o);
    }
    internal static UnityEngine.Object CreateScriptAssetFromTemplate(string pathName, string resourceFile)
    internal static UnityEngine.Object CreateScriptAssetFromTemplate(string pathName, string resourceFile, bool isIL)
    {
        string fullPath = Path.GetFullPath(pathName);
@@ -283,7 +283,14 @@
        text = Regex.Replace(text, "#DateTime#", System.DateTime.Now.ToLongDateString());
        text = Regex.Replace(text, "#Field#", CreateConfigClassFile.filedContent);
        text = Regex.Replace(text, "#Read#", CreateConfigClassFile.readContent);
        text = Regex.Replace(text, "#FileName#", fileNameWithoutExtension.Substring(0, fileNameWithoutExtension.Length - 6));
        if (isIL)
        {
            text = Regex.Replace(text, "#FileName#", fileNameWithoutExtension.Substring(2, fileNameWithoutExtension.Length - 8));
        }
        else
        {
            text = Regex.Replace(text, "#FileName#", fileNameWithoutExtension.Substring(0, fileNameWithoutExtension.Length - 6));
        }
        bool encoderShouldEmitUTF8Identifier = true;
        bool throwOnInvalidBytes = false;
Assets/Editor/Tool/PrefabCreateTool.cs
@@ -115,6 +115,13 @@
        SetParent(button);
    }
    [MenuItem("GameObject/UI/红点")]
    public static void CreateRedPoint()
    {
        var button = UIUtility.CreateWidget("RedPoint", "RedPoint");
        SetParent(button);
    }
    [MenuItem("GameObject/UI/SecondFrameLoad")]
    public static void CreateSecondFrameLoad()
    {
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs
@@ -79,10 +79,44 @@
        typeof(ItemModel),
        typeof(PackModel),
        typeof(EquipModel),
        typeof(RedpointCenter),
        typeof(Singleton<RedpointCenter>),
        typeof(ItemLogicUtility),
        typeof(Singleton<ItemLogicUtility>),
        typeof(ItemOperateUtility),
        typeof(Singleton<ItemOperateUtility>),
        typeof(Equation),
        typeof(Singleton<Equation>),
        typeof(SkillHelper),
        typeof(Singleton<SkillHelper>),
        typeof(OpenServerActivityCenter),
        typeof(Singleton<OpenServerActivityCenter>),
        typeof(GlobalTimeEvent),
        typeof(SingletonMonobehaviour<GlobalTimeEvent>),
        typeof(UIHelper),
        typeof(FindPreciousModel),
        typeof(DungeonModel),
        //表
        typeof(ItemConfig),
        typeof(FuncConfigConfig),
        typeof(SysInfoConfig)
        typeof(SysInfoConfig),
        typeof(InvestConfig),
        typeof(VipPrivilegeConfig),
        typeof(DungeonOpenTimeConfig),
        typeof(RealmConfig),
        typeof(MapConfig),
        typeof(OrderInfoConfig),
        typeof(CTGConfig),
        typeof(SkillConfig),
        typeof(PetInfoConfig),
        typeof(HorseConfig),
        typeof(NPCConfig),
        typeof(PlayerPropertyConfig),
        typeof(SpiritWeaponConfig),
        typeof(FuncOpenLVConfig),
        typeof(FightPowerParamConfig),
        typeof(EquipGSParamConfig),
    };
    //需要排除的方法