public override RPCResponse ExecuteOrder(ExecuteOrderRequest Request, TCPConnection Connection) { if (_PlayerConnections.PlayerMatches(_PlayerMap[Request.Order.Army], Connection)) { return(base.ExecuteOrder(Request, Connection)); } return(new ByteResponse((byte)OrderInvalidReason.ILLEGAL)); }
public virtual RPCResponse ExecuteOrder(ExecuteOrderRequest Request, TCPConnection Connection) { return(new ByteResponse((byte)_Match.BufferOrder(Request.Order))); }