Inheritance: BaseObject
Example #1
0
        public void Load(FileInfo fileInfo)
        {
            //Save the file info to the property
            FileInfo = fileInfo;

            //Read in the sector data
            MyObjectBuilder_Sector data = ReadSpaceEngineersFile <MyObjectBuilder_Sector, MyObjectBuilder_SectorSerializer>(this.FileInfo.FullName);

            //And instantiate the sector with the data
            m_Sector = new SectorEntity(data);
        }
Example #2
0
        public void Load(FileInfo fileInfo)
        {
            //Save the file info to the property
            FileInfo = fileInfo;

            //Read in the sector data
            MyObjectBuilder_Sector data;

            MyObjectBuilderSerializer.DeserializeXML(FileInfo.FullName, out data);

            //And instantiate the sector with the data
            m_Sector = new SectorEntity(data);
        }
        public void Load(FileInfo fileInfo)
        {
            //Save the file info to the property
            FileInfo = fileInfo;

            //Read in the sector data
            MyObjectBuilder_Sector data = ReadSpaceEngineersFile<MyObjectBuilder_Sector, MyObjectBuilder_SectorSerializer>(this.FileInfo.FullName);

            //And instantiate the sector with the data
            m_Sector = new SectorEntity(data);
        }
		public void Load( FileInfo fileInfo )
		{
			//Save the file info to the property
			FileInfo = fileInfo;

			//Read in the sector data
			MyObjectBuilder_Sector data;
			MyObjectBuilderSerializer.DeserializeXML(FileInfo.FullName,out data );

			//And instantiate the sector with the data
			m_Sector = new SectorEntity( data );
		}