static int _g_get_animationSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Examples.MineBotAnimation gen_to_be_invoked = (Pathfinding.Examples.MineBotAnimation)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.animationSpeed); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_endOfPathEffect(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Examples.MineBotAnimation gen_to_be_invoked = (Pathfinding.Examples.MineBotAnimation)translator.FastGetCSObj(L, 1); gen_to_be_invoked.endOfPathEffect = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_sleepVelocity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Pathfinding.Examples.MineBotAnimation gen_to_be_invoked = (Pathfinding.Examples.MineBotAnimation)translator.FastGetCSObj(L, 1); gen_to_be_invoked.sleepVelocity = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Pathfinding.Examples.MineBotAnimation gen_ret = new Pathfinding.Examples.MineBotAnimation(); 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 Pathfinding.Examples.MineBotAnimation constructor!")); }