mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-01 04:14:22 +00:00
22 lines
661 B
C#
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;
|
||
|
}
|
||
|
}
|
||
|
}
|