| | |
| | | { |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | |