Пример #1
0
 public Light LoadLightSource(LightType light, Color color, float intensity, int x, int y, string name)
 {
     Light l = new Light(color, intensity, light, new Point(x, y));
     LightSource source = new LightSource(new Vector2(y * Tile.width, x * Tile.height), name, new Light(color, intensity, light, new Point(x, y)));
     objects.Add(source);
     lightSources.Add(source);
     return l;
 }
Пример #2
0
 public Light AddLightSource(ref LightSource source)
 {
     lightSources.Add(source);
     return source.light;
 }
Пример #3
0
 public void RemoveLightSource(LightSource source)
 {
     lightSources.Remove(source);
 }