static int GetState(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.StateHandle obj = (UI.StateHandle)ToLua.CheckObject(L, 1, typeof(UI.StateHandle)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UI.StateHandle.State o = obj.GetState(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }