public GameObject LoadSubSurface(string name)
    {
        subsurfaceDAO = factory.GetSubSurfaceDAO();
        GameObject freshSubSurface = LoadFromDAO(subsurfaceDAO, name, "Subsurface");

        return(freshSubSurface);
    }
 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> LoadSubSurfaceDict(string name)
    {
        SubSurfaceDAO subSurface = factory.GetSubSurfaceDAO();

        return(subSurface.LoadOne(name));
    }