private void ReceiveConcealRequest(byte[] body, ulong senderId) { Log.Trace("Receiving Conceal Request", "ReceiveConcealRequest"); ConcealRequest request = ConcealRequest.FromBytes(body); bool success = Session.Manager.QueueConceal(request.EntityId); ConcealResponse response = new ConcealResponse() { EntityId = request.EntityId, Success = success }; response.SendToPlayer(senderId); }
private void ReceiveConcealResponse(byte[] body) { Log.Trace("Receiving Conceal Response", "ReceiveConcealResponse"); ConcealResponse response = ConcealResponse.FromBytes(body); String result = response.Success ? "Successfully queued for conceal" : "Failed to conceal"; result += " grid " + response.EntityId; Notification notice = new ChatNotification() { Text = result, Sender = "GP" }; notice.Raise(); }