public float WindParamGet(string param) { if (m_activeWindPlugin != null) { return(m_activeWindPlugin.WindParamGet(param)); } return(0.0f); }
public float WindParamGet(string plugin, string param) { if (m_availableWindPlugins.ContainsKey(plugin)) { IWindModelPlugin windPlugin = m_availableWindPlugins [plugin]; return(windPlugin.WindParamGet(param)); } throw new Exception(String.Format("Could not find plugin {0}", plugin)); }