static int notifyError(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); NetCore.Net obj = (NetCore.Net)ToLua.CheckObject(L, 1, typeof(NetCore.Net)); NetErrorType arg0 = (NetErrorType)ToLua.CheckObject(L, 2, typeof(NetErrorType)); obj.notifyError(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void notifyError(NetErrorType errorType) { object[] obj = { errorType, }; CallMethod("onSocketError", obj); }