Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public virtual RPCResponse ValidateOrder(ValidateOrderRequest Request, TCPConnection Connection)
 {
     return(new ByteResponse((byte)_Match.ValidateOrder(Request.Order)));
 }