public void DoTerraform(IZone zone) { var x = FastRandom.NextInt(_workArea.Width - 1); var y = FastRandom.NextInt(_workArea.Height - 1); var p = new Position(x, y); PBSHelper.DegradeTowardsOriginal(zone, p); }
private void AreaTestProgramCodeSourceMethod(int cx, int cy, IZoneRequest request) { var testArea = Area.FromRadius(cx, cy, 300); testArea = testArea.Clamp(request.Zone.Size); var counter = 0; testArea.ForEachXY((x, y) => { if (counter++ % 2 == 0) { PBSHelper.DegradeTowardsOriginal(request.Zone, new Position(x, y)); } }); var info = new Dictionary <string, object> { { k.message, "Thread finished. Time to fetch altitude!" } }; Message.Builder.FromRequest(request).WithData(info).Send(); }