少年修仙传客户端代码仓库
client_linchunjie
2019-03-14 ef9452100b7ca137e7fa130c82b02377bb9cc8c3
6340  【前端】【2.0】境界改版开发单
4个文件已修改
25 ■■■■ 已修改文件
Core/GameEngine/Model/Config/RealmConfig.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/RealmConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/RealmConfigWrap.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmBriefBehaviour.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/RealmConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           Fish
//    [  Date ]:           Monday, March 11, 2019
//    [  Date ]:           Thursday, March 14, 2019
//--------------------------------------------------------
using System.Collections.Generic;
@@ -24,7 +24,7 @@
    public readonly string Img;
    public readonly int Quality;
    public readonly int FightPower;
    public readonly int specialProperty;
    public readonly string equipNameIcon;
    public readonly int effectId;
    public readonly int requireIconEffect;
@@ -70,7 +70,7 @@
            int.TryParse(tables[10],out FightPower); 
            int.TryParse(tables[11],out specialProperty);
            equipNameIcon = tables[11];
            int.TryParse(tables[12],out effectId); 
Core/GameEngine/Model/Config/RealmConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: d49ca04ff4a91bc4fb645c417f9ef0b3
timeCreated: 1552295065
timeCreated: 1552531605
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Lua/Gen/RealmConfigWrap.cs
@@ -35,7 +35,6 @@
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Img", _g_get_Img);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Quality", _g_get_Quality);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "FightPower", _g_get_FightPower);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "specialProperty", _g_get_specialProperty);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectId", _g_get_effectId);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "requireIconEffect", _g_get_requireIconEffect);
            
@@ -419,20 +418,6 @@
            
                RealmConfig gen_to_be_invoked = (RealmConfig)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.FightPower);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_specialProperty(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                RealmConfig gen_to_be_invoked = (RealmConfig)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.specialProperty);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
System/Realm/RealmBriefBehaviour.cs
@@ -66,6 +66,8 @@
            if (model.IsUnlockEquipRealm(realmLevel, out level))
            {
                m_ContainerUnlockEquip.gameObject.SetActive(true);
                var config = RealmConfig.Get(realmLevel);
                m_UnlockEquip.SetSprite(config.equipNameIcon);
            }
            else
            {