LADXHD/InGame/GameObjects/Dungeon/ObjDungeonBlacker.cs

22 lines
661 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00
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;
}
}
}