static int set_stat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MapUnitMove obj = (MapUnitMove)o; short arg0 = (short)LuaDLL.luaL_checknumber(L, 2); obj.stat = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stat on a nil value" : e.Message)); } }
static int get_toPosition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MapUnitMove obj = (MapUnitMove)o; UnityEngine.Vector3 ret = obj.toPosition; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toPosition on a nil value" : e.Message)); } }
static int get_speed(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MapUnitMove obj = (MapUnitMove)o; float ret = obj.speed; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index speed on a nil value" : e.Message)); } }
static int set_toPosition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MapUnitMove obj = (MapUnitMove)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.toPosition = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toPosition on a nil value" : e.Message)); } }