public static void RedrawGroupForChanges(TileLayer layer, TileChange[] changes) { List <GroupPos> groups = new List <GroupPos>(); foreach (TileChange change in changes) { GroupPos group = TileToGroup(layer, change.pos); if (!groups.Contains(group)) { groups.Add(group); } } foreach (GroupPos group in groups) { RedrawGroup(layer, group.x, group.y); } }
public static void RedrawGroupForChange(TileLayer layer, TileChange change) { GroupPos group = TileToGroup(layer, change.pos); RedrawGroup(layer, group.x, group.y); }