public GameObject LoadAir(string name) { airDAO = factory.GetAirDAO(); GameObject freshAir = LoadFromDAO(airDAO, name, "Air"); return(freshAir); }
public ObjectFactory() { factory = DAOFactory.GetFactory(); surfaceDAO = factory.GetSurfaceDAO(); subsurfaceDAO = factory.GetSubSurfaceDAO(); airDAO = factory.GetAirDAO(); marineDAO = factory.GetMarineDAO(); weaponDAO = factory.GetWeaponDAO(); environmentVariableDAO = factory.GetEvironmentVariableDAO(); }
/** * Optional constructor which takes the scenario for which * this ObjectFactory will be used as a parameter * */ public ObjectFactory(string scenarioName) { factory = DAOFactory.GetFactory(); surfaceDAO = factory.GetSurfaceDAO(); subsurfaceDAO = factory.GetSubSurfaceDAO(); airDAO = factory.GetAirDAO(); marineDAO = factory.GetMarineDAO(); weaponDAO = factory.GetWeaponDAO(); surfaceScenarioDAO = factory.GetSurfaceScenarioDAO(scenarioName); subsurfaceScenarioDAO = factory.GetSubSurfaceScenarioDAO(scenarioName); airScenarioDAO = factory.GetAirScenarioDAO(scenarioName); marineScenarioDAO = factory.GetMarineScenarioDAO(scenarioName); environmentVariableDAO = factory.GetEvironmentVariableScenarioDAO(scenarioName); }
public Dictionary <string, System.Object> LoadAirDict(string name) { AirDAO air = factory.GetAirDAO(); return(air.LoadOne(name)); }