public ForegroundComponent(int entityId, char symbol, string fgColor, ForegroundDisplayLayer foregroundLayer) : base(ComponentType.Foreground, entityId) { _symbol = symbol; _fgColor = fgColor; _foregroundDisplayLayer = foregroundLayer; }
public ForegroundComponent(int entityId, Dictionary <string, string> otherParameters) : base(ComponentType.Foreground, entityId) { _symbol = GetStringParameter("Symbol", otherParameters)[0]; _fgColor = GetStringParameter("ForegroundColor", otherParameters); _foregroundDisplayLayer = (ForegroundDisplayLayer)Enum.Parse(typeof(ForegroundDisplayLayer), GetStringParameter("ForegroundDisplayLayer", otherParameters)); }