Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
Plugin Support
Browse files Browse the repository at this point in the history
  • Loading branch information
TBulbaDB committed Sep 1, 2016
1 parent 5224510 commit f5982b4
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions PoGoMITM.Base/Models/RequestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,20 @@ public void ModifyRequest()
{
foreach (var requestModifier in Modifiers.Where(r=>r.Enabled))
{
if (RequestData.Requests.ContainsKey(RequestType.GetMapObjects))
{
Debug.WriteLine("Client Request");
Debug.WriteLine(string.Join(",", ((GetMapObjectsMessage)RequestData.Requests[RequestType.GetMapObjects]).CellId.OrderBy(c => c)));
}
//if (RequestData.Requests.ContainsKey(RequestType.GetMapObjects))
//{
// Debug.WriteLine("Client Request");
// Debug.WriteLine(string.Join(",", ((GetMapObjectsMessage)RequestData.Requests[RequestType.GetMapObjects]).CellId.OrderBy(c => c)));
//}

if (requestModifier.ModifyRequest(this))
{
if (RequestData.Requests.ContainsKey(RequestType.GetMapObjects))
{
Debug.WriteLine("Modified Request");
Debug.WriteLine(string.Join(",",
((GetMapObjectsMessage)RequestData.Requests[RequestType.GetMapObjects]).CellId.OrderBy(c => c)));
}
//if (RequestData.Requests.ContainsKey(RequestType.GetMapObjects))
//{
// Debug.WriteLine("Modified Request");
// Debug.WriteLine(string.Join(",",
// ((GetMapObjectsMessage)RequestData.Requests[RequestType.GetMapObjects]).CellId.OrderBy(c => c)));
//}
RequestModified = true;
}

Expand All @@ -193,20 +193,20 @@ public void ModifyResponse()
{
foreach (var responseModifier in Modifiers.Where(r => r.Enabled))
{
if (ResponseData.Responses.ContainsKey(RequestType.GetMapObjects))
{
Debug.WriteLine("Server Response");
Debug.WriteLine(string.Join(",", ((GetMapObjectsResponse)ResponseData.Responses[RequestType.GetMapObjects]).MapCells.Select(m => m.S2CellId).OrderBy(c => c).ToList()));
}
//if (ResponseData.Responses.ContainsKey(RequestType.GetMapObjects))
//{
// Debug.WriteLine("Server Response");
// Debug.WriteLine(string.Join(",", ((GetMapObjectsResponse)ResponseData.Responses[RequestType.GetMapObjects]).MapCells.Select(m => m.S2CellId).OrderBy(c => c).ToList()));
//}
if (responseModifier.ModifyResponse(this))
{
if (ResponseData.Responses.ContainsKey(RequestType.GetMapObjects))
{
Debug.WriteLine("Modified Response");
Debug.WriteLine(string.Join(",",
((GetMapObjectsResponse)ResponseData.Responses[RequestType.GetMapObjects]).MapCells
.Select(m => m.S2CellId).OrderBy(c=>c).ToList()));
}
//if (ResponseData.Responses.ContainsKey(RequestType.GetMapObjects))
//{
// Debug.WriteLine("Modified Response");
// Debug.WriteLine(string.Join(",",
// ((GetMapObjectsResponse)ResponseData.Responses[RequestType.GetMapObjects]).MapCells
// .Select(m => m.S2CellId).OrderBy(c=>c).ToList()));
//}
ResponseModified = true;
}

Expand Down

0 comments on commit f5982b4

Please sign in to comment.