public static NetError GetLastKickReason(bool clear) { NetError? nullable = ServerManagement.kickedNetError; NetError netError = (!nullable.HasValue ? NetCull.lastError : nullable.Value); if (clear) { ServerManagement.kickedNetError = null; } return netError; }
public static NetError GetLastKickReason(bool clear) { NetError?nullable = ServerManagement.kickedNetError; NetError netError = (!nullable.HasValue ? NetCull.lastError : nullable.Value); if (clear) { ServerManagement.kickedNetError = null; } return(netError); }
protected void KP(int err) { ServerManagement.kickedNetError = new NetError?((NetError)err); }