Controller getController(string ctlr) { if (m_controllers.ContainsKey(ctlr)) { return(m_controllers[ctlr]); } else { Controller c = null; if (ctlr == "CLASSIC") { c = new Controller_ClassicBLESS(); } if (ctlr == "THROTTLE") { c = new Controller_Throttle(); } if (ctlr == "STC") { c = new Controller_STC(); } if (ctlr == "MIX") { c = new Controller_Mix(); // no practical use for this, but for completeness... } if (ctlr == "SIMPLEMAP") { c = new Controller_SimpleMap(); } m_controllers[ctlr] = c; return(c); } }
Controller getController(string ctlr) { if (m_controllers.ContainsKey(ctlr)) return m_controllers[ctlr]; else { Controller c = null; if (ctlr == "CLASSIC") c = new Controller_ClassicBLESS(); if (ctlr == "THROTTLE") c = new Controller_Throttle(); if (ctlr == "STC") c = new Controller_STC(); if (ctlr == "MIX") c = new Controller_Mix(); // no practical use for this, but for completeness... if (ctlr == "SIMPLEMAP") c = new Controller_SimpleMap(); m_controllers[ctlr] = c; return c; } }