コード例 #1
0
 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));
 }
コード例 #2
0
 public virtual RPCResponse ExecuteOrder(ExecuteOrderRequest Request, TCPConnection Connection)
 {
     return(new ByteResponse((byte)_Match.BufferOrder(Request.Order)));
 }