forked from CommunalHelper/VortexHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitchBlockColorController.cs
More file actions
25 lines (21 loc) · 1.01 KB
/
SwitchBlockColorController.cs
File metadata and controls
25 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using Celeste.Mod.Entities;
using Celeste.Mod.VortexHelper.Misc.Extensions;
using Microsoft.Xna.Framework;
using Monocle;
namespace Celeste.Mod.VortexHelper.Entities;
[CustomEntity("VortexHelper/SwitchBlockColorController")]
[Tracked]
public class SwitchBlockColorController : Entity
{
public readonly Color BlueColor, RoseColor, OrangeColor, LimeColor;
public readonly Color SwitchBackgroundColor, SwitchEdgeColor;
public SwitchBlockColorController(EntityData data, Vector2 offset) : base(data.Position + offset)
{
BlueColor = data.HexColor("blueColor", EnumExt.SwitchBlockBlue);
RoseColor = data.HexColor("roseColor", EnumExt.SwitchBlockRose);
OrangeColor = data.HexColor("orangeColor", EnumExt.SwitchBlockOrange);
LimeColor = data.HexColor("limeColor", EnumExt.SwitchBlockLime);
SwitchBackgroundColor = data.HexColor("switchBackgroundColor", ColorSwitch.DefaultBackgroundColor);
SwitchEdgeColor = data.HexColor("switchEdgeColor", ColorSwitch.DefaultEdgeColor);
}
}