/// <inheritdoc /> public void Initialize(PluginConfiguration configuration, Action<Action<ISystemController, IRaceController>> queueCommand) { _components = new List<IPluginComponent>(); _initialized = false; var distanceCalc = new MarkCalculator(_logger, this); _components.Add(distanceCalc); configuration.Calculators.Add(distanceCalc); var tackCalc = new TackCalculator(_logger, this); _components.Add(tackCalc); configuration.Calculators.Add(tackCalc); _initialized = true; }
/// <inheritdoc /> public void Initialize(PluginConfiguration configuration, Action <Action <ISystemController, IRaceController> > queueCommand) { _components = new List <IPluginComponent>(); _initialized = false; var distanceCalc = new MarkCalculator(_logger, this); _components.Add(distanceCalc); configuration.Calculators.Add(distanceCalc); var tackCalc = new TackCalculator(_logger, this); _components.Add(tackCalc); configuration.Calculators.Add(tackCalc); _initialized = true; }