少年修仙传客户端代码仓库
client_linchunjie
2019-07-05 c6d65476d7449373fa2aff1a8f7c227f32c40468
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
4个文件已修改
38 ■■■■■ 已修改文件
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorPlayerBase.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SpiritWeaponConfigWrap.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           Fish
//    [  Date ]:           Thursday, July 04, 2019
//    [  Date ]:           Friday, July 05, 2019
//--------------------------------------------------------
using System.Collections.Generic;
@@ -24,6 +24,7 @@
    public readonly int NPCID;
    public readonly Vector3 Rotation;
    public readonly float scale;
    public readonly Vector3 RawImgPos;
    public SpiritWeaponConfig()
    {
@@ -76,6 +77,8 @@
            Rotation=tables[9].Vector3Parse();
            float.TryParse(tables[10],out scale); 
            RawImgPos=tables[11].Vector3Parse();
        }
        catch (Exception ex)
        {
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: ddd7764ed0b6a9c41b3c3e2b91efa8c8
timeCreated: 1562249090
timeCreated: 1562318273
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Fight/GameActor/GActorPlayerBase.cs
@@ -3000,13 +3000,25 @@
            return;
        }
        RlsLingGenEffect();
        var _config = ReikiRootEffectConfig.Get(id);
        var _effectConfig = EffectConfig.Get(_config.effect);
        if (_effectConfig.fxName.EndsWith("09")
         || _effectConfig.fxName.EndsWith("10")
         || _effectConfig.fxName.EndsWith("11"))
        {
            var _sfx = SFXPlayUtility.Instance.PlayBattleEffect(_config.effect, Root, 1);
            lingGenEffectList.Add(_sfx);
        }
        else
        {
        if (!LingGenNode)
        {
            LingGenNode = new GameObject();
            GameObject.DontDestroyOnLoad(LingGenNode);
        }
        var _config = ReikiRootEffectConfig.Get(id);
        var _sfx = SFXPlayUtility.Instance.PlayBattleEffect(_config.effect, LingGenNode.transform, 1);
        lingGenEffectList.Add(_sfx);
    }
}
}
Lua/Gen/SpiritWeaponConfigWrap.cs
@@ -21,7 +21,7 @@
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            System.Type type = typeof(SpiritWeaponConfig);
            Utils.BeginObjectRegister(type, L, translator, 0, 0, 11, 0);
            Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 0);
            
            
            
@@ -36,6 +36,7 @@
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "NPCID", _g_get_NPCID);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Rotation", _g_get_Rotation);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "RawImgPos", _g_get_RawImgPos);
            
            
            
@@ -437,6 +438,20 @@
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RawImgPos(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector3(L, gen_to_be_invoked.RawImgPos);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }