private static int Update(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); AIPath aIPath = (AIPath)ToLua.CheckObject(L, 1, typeof(AIPath)); aIPath.Update(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }