SEModAPIInternal.API.Entity.SectorManager.Load C# (CSharp) Method

Load() public method

public Load ( FileInfo fileInfo ) : void
fileInfo System.IO.FileInfo
return void
        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 );
        }