protected override void ClearImpl(PlatformContext context, Vector2 world) { var tilePos = context.WorldToTile(world); var toRemove = new List <Light>(); foreach (var light in context.LightSources) { var lightTilePos = context.WorldToTile(light.AbsolutePosition); if (lightTilePos == tilePos) { toRemove.Add(light); } } foreach (var light in toRemove) { context.RemoveLightSource(light); } }