static int _m_Load(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <System.Action>(L, 2)) { System.Action onLoaded = translator.GetDelegate <System.Action>(L, 2); __cl_gen_to_be_invoked.Load(onLoaded); return(0); } if (__gen_param_count == 1) { __cl_gen_to_be_invoked.Load( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FrameWork.AssetModel.Load!")); }
public void __Gen_Delegate_Imp11(FrameWork.AssetModel p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int err_func = LuaAPI.load_error_func(L, errorFuncRef); ObjectTranslator translator = luaEnv.translator; LuaAPI.lua_getref(L, luaReference); translator.Push(L, p0); int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func); if (__gen_error != 0) { luaEnv.ThrowExceptionFromError(err_func - 1); } LuaAPI.lua_settop(L, err_func - 1); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_SetParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && translator.Assignable <FrameWork.AssetModel>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { FrameWork.AssetModel parent = (FrameWork.AssetModel)translator.GetObject(L, 2, typeof(FrameWork.AssetModel)); bool worldPosStay = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.SetParent(parent, worldPosStay); return(0); } if (__gen_param_count == 2 && translator.Assignable <FrameWork.AssetModel>(L, 2)) { FrameWork.AssetModel parent = (FrameWork.AssetModel)translator.GetObject(L, 2, typeof(FrameWork.AssetModel)); __cl_gen_to_be_invoked.SetParent(parent); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Transform>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { UnityEngine.Transform parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); bool worldPosStay = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.SetParent(parent, worldPosStay); return(0); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Transform>(L, 2)) { UnityEngine.Transform parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); __cl_gen_to_be_invoked.SetParent(parent); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FrameWork.AssetModel.SetParent!")); }
static int _m_SetRot(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 rot; translator.Get(L, 2, out rot); bool local = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.SetRot(rot, local); return(0); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 rot; translator.Get(L, 2, out rot); __cl_gen_to_be_invoked.SetRot(rot); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Quaternion>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { UnityEngine.Quaternion quat; translator.Get(L, 2, out quat); bool local = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.SetRot(quat, local); return(0); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Quaternion>(L, 2)) { UnityEngine.Quaternion quat; translator.Get(L, 2, out quat); __cl_gen_to_be_invoked.SetRot(quat); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FrameWork.AssetModel.SetRot!")); }
static int _g_get_IsLoaded(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsLoaded); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string modelRes = LuaAPI.lua_tostring(L, 2); FrameWork.AssetModel __cl_gen_ret = new FrameWork.AssetModel(modelRes); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FrameWork.AssetModel constructor!")); }
static int _m_Release(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.Release( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 __cl_gen_ret = __cl_gen_to_be_invoked.GetRight( ); translator.PushUnityEngineVector3(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_LookAt(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { UnityEngine.Transform target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); __cl_gen_to_be_invoked.LookAt(target); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_RemoveComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { UnityEngine.Component comp = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component)); __cl_gen_to_be_invoked.RemoveComponent(comp); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Translate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 mov; translator.Get(L, 2, out mov); __cl_gen_to_be_invoked.Translate(mov); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRot(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool local = LuaAPI.lua_toboolean(L, 2); UnityEngine.Quaternion __cl_gen_ret = __cl_gen_to_be_invoked.GetRot(local); translator.PushUnityEngineQuaternion(L, __cl_gen_ret); return(1); } if (__gen_param_count == 1) { UnityEngine.Quaternion __cl_gen_ret = __cl_gen_to_be_invoked.GetRot( ); translator.PushUnityEngineQuaternion(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FrameWork.AssetModel.GetRot!")); }
static int _m_GetComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { System.Type type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetComponent(type); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Rotate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FrameWork.AssetModel __cl_gen_to_be_invoked = (FrameWork.AssetModel)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 axis; translator.Get(L, 2, out axis); float angle = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.Rotate(axis, angle); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }