public override RPCResponse ValidateOrder(ValidateOrderRequest Request, TCPConnection Connection)
 {
     if (_PlayerConnections.PlayerMatches(_PlayerMap[Request.Order.Army], Connection))
     {
         return(base.ValidateOrder(Request, Connection));
     }
     return(new ByteResponse((byte)OrderInvalidReason.ILLEGAL));
 }
Example #2
0
 public virtual RPCResponse ValidateOrder(ValidateOrderRequest Request, TCPConnection Connection)
 {
     return(new ByteResponse((byte)_Match.ValidateOrder(Request.Order)));
 }