OpenRA.Mods.Common.Traits.EditorActorLayer.UpdateNeighbours C# (CSharp) Method

UpdateNeighbours() private method

private UpdateNeighbours ( SubCell>.IReadOnlyDictionary footprint ) : void
footprint SubCell>.IReadOnlyDictionary
return void
        void UpdateNeighbours(IReadOnlyDictionary<CPos, SubCell> footprint)
        {
            // Include actors inside the footprint too
            var cells = Util.ExpandFootprint(footprint.Keys, true);
            foreach (var p in cells.SelectMany(c => PreviewsAt(c)))
                p.ReplaceInit(new RuntimeNeighbourInit(NeighbouringPreviews(p.Footprint)));
        }