From c6d65476d7449373fa2aff1a8f7c227f32c40468 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 05 七月 2019 17:43:29 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs | 9 ++++++---
Lua/Gen/SpiritWeaponConfigWrap.cs | 17 ++++++++++++++++-
Fight/GameActor/GActorPlayerBase.cs | 26 +++++++++++++++++++-------
Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta | 2 +-
4 files changed, 42 insertions(+), 12 deletions(-)
diff --git a/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs b/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs
index 7e5c8cd..b8feb3a 100644
--- a/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs
+++ b/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;
@@ -23,7 +23,8 @@
public readonly int NextItemID;
public readonly int NPCID;
public readonly Vector3 Rotation;
- public readonly float scale;
+ public readonly float scale;
+ public readonly Vector3 RawImgPos;
public SpiritWeaponConfig()
{
@@ -75,7 +76,9 @@
Rotation=tables[9].Vector3Parse();
- float.TryParse(tables[10],out scale);
+ float.TryParse(tables[10],out scale);
+
+ RawImgPos=tables[11].Vector3Parse();
}
catch (Exception ex)
{
diff --git a/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta b/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta
index ecfca53..bb0dfb8 100644
--- a/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta
+++ b/Core/GameEngine/Model/Config/SpiritWeaponConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: ddd7764ed0b6a9c41b3c3e2b91efa8c8
-timeCreated: 1562249090
+timeCreated: 1562318273
licenseType: Pro
MonoImporter:
serializedVersion: 2
diff --git a/Fight/GameActor/GActorPlayerBase.cs b/Fight/GameActor/GActorPlayerBase.cs
index fc5d9a7..d6ada3b 100644
--- a/Fight/GameActor/GActorPlayerBase.cs
+++ b/Fight/GameActor/GActorPlayerBase.cs
@@ -3000,13 +3000,25 @@
return;
}
RlsLingGenEffect();
- 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);
+ 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 _sfx = SFXPlayUtility.Instance.PlayBattleEffect(_config.effect, LingGenNode.transform, 1);
+ lingGenEffectList.Add(_sfx);
+ }
}
}
diff --git a/Lua/Gen/SpiritWeaponConfigWrap.cs b/Lua/Gen/SpiritWeaponConfigWrap.cs
index d2842fd..e9917e6 100644
--- a/Lua/Gen/SpiritWeaponConfigWrap.cs
+++ b/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;
+ }
+
--
Gitblit v1.8.0