static int _m_Raycast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LQQ.DuckHuntLuaCallCS gen_to_be_invoked = (LQQ.DuckHuntLuaCallCS)translator.FastGetCSObj(L, 1); { UnityEngine.Ray __ray; translator.Get(L, 2, out __ray); float _rayDistance = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.RaycastHit gen_ret = gen_to_be_invoked.Raycast(__ray, _rayDistance); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { LQQ.DuckHuntLuaCallCS gen_ret = new LQQ.DuckHuntLuaCallCS(); translator.Push(L, 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 LQQ.DuckHuntLuaCallCS constructor!")); }
static int _m_Quit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LQQ.DuckHuntLuaCallCS gen_to_be_invoked = (LQQ.DuckHuntLuaCallCS)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Quit( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetRunningPlatform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LQQ.DuckHuntLuaCallCS gen_to_be_invoked = (LQQ.DuckHuntLuaCallCS)translator.FastGetCSObj(L, 1); { LQQ.RunningPlatform gen_ret = gen_to_be_invoked.GetRunningPlatform( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetScreenWidthAndHeight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LQQ.DuckHuntLuaCallCS gen_to_be_invoked = (LQQ.DuckHuntLuaCallCS)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 gen_ret = gen_to_be_invoked.GetScreenWidthAndHeight( ); translator.PushUnityEngineVector2(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetInputAxis(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LQQ.DuckHuntLuaCallCS gen_to_be_invoked = (LQQ.DuckHuntLuaCallCS)translator.FastGetCSObj(L, 1); { string _axisName = LuaAPI.lua_tostring(L, 2); float gen_ret = gen_to_be_invoked.GetInputAxis(_axisName); LuaAPI.lua_pushnumber(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }