Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: Fish |
| | | // [ Date ]: Thursday, July 04, 2019 |
| | | // [ Date ]: Friday, July 05, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public readonly int NPCID;
|
| | | public readonly Vector3 Rotation;
|
| | | public readonly float scale; |
| | | public readonly Vector3 RawImgPos; |
| | | |
| | | public SpiritWeaponConfig() |
| | | { |
| | |
| | | Rotation=tables[9].Vector3Parse();
|
| | |
|
| | | float.TryParse(tables[10],out scale); |
| | |
|
| | | RawImgPos=tables[11].Vector3Parse(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ddd7764ed0b6a9c41b3c3e2b91efa8c8 |
| | | timeCreated: 1562249090 |
| | | timeCreated: 1562318273 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | 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);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | { |
| | | 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); |
| | | |
| | | |
| | | |
| | |
| | | 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); |
| | | |
| | | |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | |