java.lang.Object
com.marginallyclever.robotoverlord.Project

@Deprecated public class Project extends Object
Deprecated.
A Project is a collection of Entities that have Components that is stored somewhere on disk.
  • Constructor Details

    • Project

      public Project()
      Deprecated.
    • Project

      public Project(String path)
      Deprecated.
  • Method Details

    • getEntityManager

      public com.marginallyclever.robotoverlord.entity.EntityManager getEntityManager()
      Deprecated.
    • getPath

      public String getPath()
      Deprecated.
    • setPath

      public void setPath(String absolutePath)
      Deprecated.
      Set the path. This is the path to the directory containing the scene file.
      Parameters:
      absolutePath - the absolute path to the scene directory.
    • copyDiskAssetsToScenePath

      public void copyDiskAssetsToScenePath(Project source, String destinationPath) throws IOException
      Deprecated.
      Throws:
      IOException
    • clear

      public void clear()
      Deprecated.
    • load

      public void load(File file) throws IOException
      Deprecated.
      Attempt to load the file into a new Scene.
      Parameters:
      file - the file to load
      Throws:
      IOException - if the file cannot be read
    • save

      public void save(String absolutePath) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseJSON

      public void parseJSON(org.json.JSONObject json, SerializationContext context)
      Deprecated.
    • toJSON

      public org.json.JSONObject toJSON(SerializationContext context)
      Deprecated.
    • addProject

      public void addProject(Project from) throws IOException
      Deprecated.
      Bring Entities and assets of another project into this project.
      Parameters:
      from - the project to fold into this project
      Throws:
      IOException - if the asset files cannot be copied
    • addProject

      public void addProject(Project from, String subPath) throws IOException
      Deprecated.
      Bring Entities and assets of another project into this project.
      Parameters:
      from - the project to fold into this project
      subPath - the subdirectory to copy the assets into
      Throws:
      IOException - if the asset files cannot be copied