public BackgroundComponent(int entityId, Dictionary <string, string> otherParameters) : base(ComponentType.Background, entityId) { _backgroundColor = GetStringParameter("BackgroundColor", otherParameters); _fogColor = GetStringParameter("FogColor", otherParameters); _backgroundDisplayLayer = (BackgroundDisplayLayer)Enum.Parse(typeof(BackgroundDisplayLayer), GetStringParameter("BackgroundDisplayLayer", otherParameters)); }
public BackgroundComponent(int entityId, string backgroundColor, string fogColor, BackgroundDisplayLayer backgroundLayer) : base(ComponentType.Background, entityId) { _backgroundColor = backgroundColor; _fogColor = fogColor; _backgroundDisplayLayer = backgroundLayer; }