public static P2PServerMessage Validate(this P2PServerMessage m) { if (m < 0 || m > P2PServerMessage.Unknown) { return(P2PServerMessage.Unknown); } return(m); }
public static void Write(this NetOutgoingMessage message, P2PServerMessage m) { message.Write((byte)m); }