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