LADXHD/InGame/GameObjects/Dungeon/ObjDungeonBlacker.cs
2023-12-14 17:21:22 -05:00

22 lines
661 B
C#

using Microsoft.Xna.Framework;
using ProjectZ.InGame.GameObjects.Base;
using ProjectZ.InGame.Things;
namespace ProjectZ.InGame.GameObjects.Dungeon
{
internal class ObjDungeonBlacker : GameObject
{
public ObjDungeonBlacker() : base("editor dungeon blacker")
{
EditorColor = Color.DarkRed * 0.75f;
}
public ObjDungeonBlacker(Map.Map map, int posX, int posY, int colorR, int colorG, int colorB, int colorA) : base(map)
{
map.UseLight = true;
map.LightColor = new Color(colorR, colorG, colorB) * (colorA / 255f);
IsDead = true;
}
}
}