using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
namespace Revitalize.Framework.Illuminate
{
///
/// Deals with recreating light sources in SDV.
///
public class FakeLightSource
{
///
/// The id for the light. Refers to the type of texture used.
///
public int id;
///
/// The position offset from the source object this is attached to.
///
public Vector2 positionOffset;
///
/// The color for the light.
///
public Color color;
///
/// The radius for the light.
///
public float radius;
///
/// Empty constructor.
///
public FakeLightSource()
{
}
///
/// Constructor.
///
/// The id for the light source.
/// The position for the light source.
/// The color for the light.
/// The radius for the light.
public FakeLightSource(int ID, Vector2 Position, Color Color, float Raidus)
{
this.id = ID;
this.positionOffset = Position;
this.color = Color;
this.radius = Raidus;
}
///
/// Gets a copy of the fake light source.
///
///
public FakeLightSource Copy()
{
return new FakeLightSource(this.id, new Vector2(this.positionOffset.X, this.positionOffset.Y), new Color(this.color.R, this.color.G, this.color.B, this.color.A), this.radius);
}
}
}