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