SEToolbox.Models.StructurePlanetModel.StructurePlanetModel C# (CSharp) Method

StructurePlanetModel() public method

public StructurePlanetModel ( VRage.ObjectBuilders.MyObjectBuilder_EntityBase entityBase, string voxelPath ) : System
entityBase VRage.ObjectBuilders.MyObjectBuilder_EntityBase
voxelPath string
return System
        public StructurePlanetModel(MyObjectBuilder_EntityBase entityBase, string voxelPath)
            : base(entityBase)
        {
            if (voxelPath != null)
            {
                VoxelFilepath = Path.Combine(voxelPath, Name + MyVoxelMap.V2FileExtension);
                var previewFile = VoxelFilepath;

                if (!File.Exists(VoxelFilepath))
                {
                    var oldFilepath = Path.Combine(voxelPath, Name + MyVoxelMap.V1FileExtension);
                    if (File.Exists(oldFilepath))
                    {
                        SourceVoxelFilepath = oldFilepath;
                        previewFile = oldFilepath;
                        SpaceEngineersCore.ManageDeleteVoxelList.Add(oldFilepath);
                    }
                }

                ReadVoxelDetails(previewFile);
            }
        }