Exemple #1
0
        public static SquidEngineProject OpenProjectFile(string filename)
        {
            XmlSerializer      _ser    = new XmlSerializer(typeof(SquidEngineProject));
            Stream             _stream = File.Open(filename, FileMode.Open);
            SquidEngineProject _proj   = (SquidEngineProject)_ser.Deserialize(_stream);

            //_proj.LoadAssemblies(__proj.RootDIR + @"bin\x86\Debug\");
            Instance = _proj;
            _stream.Close();
            return(_proj);
        }
Exemple #2
0
 public SquidEngineProject()
 {
     _filename                  = "";
     _path                      = "";
     _name                      = "New Project";
     _description               = "This is a new project";
     _visualStudioProjectPath   = "";
     _contentFolderRelativePath = "";
     _binaryFolderRelativePath  = "";
     _lastOpenedScene           = "";
     _currentSceneFile          = "";
     SquidSceneComponents       = new Dictionary <Type, Assembly>();
     SquidSceneItemComponents   = new Dictionary <Type, Assembly>();
     Instance                   = this;
 }