Метод | Описание | |
---|---|---|
CalculateMaterialCellAssets ( IList |
||
Compress ( string sourceFilename, string destinationFilename ) : void | ||
CountAssets ( long>.Dictionary |
||
CountAssets ( IList |
||
ForceBaseMaterial ( string defaultMaterial, string materialName ) : void |
This will replace all the materials inside the asteroid with specified material.
|
|
ForceShellMaterial ( string materialName, byte tgtThickness ) : void |
Force the material of the outermost mixed voxcells to the given material
|
|
ForceVoxelFaceMaterial ( string materialName ) : void |
Changes all the min and max face materials to a default to overcome the the hiding rare ore inside of nonrare ore.
|
|
GetMaterialAssetDetails ( string filename ) : long>.Dictionary |
||
GetPreview ( string filename, Vector3I &size, BoundingBoxD &contentBounds, long &voxCells, bool &isValid ) : void | ||
GetVoxelMaterialContent ( Vector3I &voxelCoord, string &materialName, byte &content ) : void | ||
Init ( Vector3D position, Vector3I size, string material ) : void | ||
IsVoxelMapFile ( string filename ) : bool |
check for Magic Number: 1f 8b
|
|
Load ( string filename, string defaultMaterial ) : void | ||
Load ( string filename, string defaultMaterial, bool loadMaterial ) : void | ||
LoadUncompressed ( int initialVersion, Vector3D position, |
||
LoadVoxelSize ( string filename ) : Vector3I |
Loads the header details only for voxel files, without having to decompress the entire file.
|
|
RemoveContent ( ) : void | ||
RemoveContent ( string materialName, string replaceFillMaterial ) : void | ||
RemoveMaterial ( int xMin, int xMax, int yMin, int yMax, int zMin, int zMax ) : void | ||
ReplaceMaterial ( string materialName, string replaceFillMaterial ) : void | ||
Save ( int initialVersion, |
||
Save ( string filename ) : void |
Saves the asteroid to the specified filename.
|
|
SeedMaterialSphere ( string materialName, byte radius ) : void |
Set a material for a random voxel cell and possibly nearest ones to it.
|
|
SetMaterialAssets ( IList |
||
SetVoxelContentRegion ( byte content, int xMin, int xMax, int yMin, int yMax, int zMin, int zMax ) : void | ||
SetVoxelMaterialAndIndestructibleContent ( string materialName, byte indestructibleContent, Vector3I &voxelCoord ) : void | ||
SetVoxelMaterialRegion ( string materialName, Vector3I &cellCoord ) : void |
Change the material of the voxel cell with the given coordinates
|
|
SumFullCells ( ) : long | ||
SumPartCells ( ) : long | ||
SumVoxelCells ( ) : long | ||
Uncompress ( string sourceFilename, int numberBytes ) : byte[] | ||
Uncompress ( string sourceFilename, string destinationFilename ) : void | ||
UpdateContentBounds ( ) : void |
Метод | Описание | |
---|---|---|
AddCell ( Vector3I &cellCoord ) : |
||
CheckCellType ( |
Check the given cell type against a possible cell contents state (full, empty, mixed)
|
|
CheckIfCellChangedToFull ( |
||
CheckVoxelCoord ( Vector3I &cellCoord ) : bool | ||
GetCell ( Vector3I &cellCoord ) : |
||
GetDataCellCoordinate ( Vector3I &voxelCoord ) : Vector3I | ||
GetVoxelContent ( Vector3I &voxelCoord ) : byte | ||
GetVoxelCoordinatesInDataCell ( Vector3I &voxelCoord ) : Vector3I | ||
InitVoxelMap ( Vector3D position, Vector3I size, string materialName, bool defineMemory ) : void | ||
IsVoxelAtBorder ( Vector3I &voxelCoord ) : bool | ||
LoadUncompressedV1 ( |
||
LoadUncompressedV2 ( |
||
SaveV1 ( |
||
SaveV2 ( |
||
SetVoxelContent ( byte content, Vector3I &voxelCoord, bool needLock = true ) : void |
public CalculateMaterialCellAssets ( IList |
||
materialAssetList | IList |
|
materialVoxelCells | long>.Dictionary | |
Результат | void |
public static Compress ( string sourceFilename, string destinationFilename ) : void | ||
sourceFilename | string | |
destinationFilename | string | |
Результат | void |
public CountAssets ( long>.Dictionary |
||
assetCount | long>.Dictionary | |
Результат | long>.Dictionary |
public CountAssets ( IList |
||
materialAssets | IList |
|
Результат | long>.Dictionary |
public ForceBaseMaterial ( string defaultMaterial, string materialName ) : void | ||
defaultMaterial | string | |
materialName | string | |
Результат | void |
public ForceShellMaterial ( string materialName, byte tgtThickness ) : void | ||
materialName | string | |
tgtThickness | byte | |
Результат | void |
public ForceVoxelFaceMaterial ( string materialName ) : void | ||
materialName | string | |
Результат | void |
public static GetMaterialAssetDetails ( string filename ) : long>.Dictionary |
||
filename | string | |
Результат | long>.Dictionary |
public static GetPreview ( string filename, Vector3I &size, BoundingBoxD &contentBounds, long &voxCells, bool &isValid ) : void | ||
filename | string | |
size | Vector3I | |
contentBounds | BoundingBoxD | |
voxCells | long | |
isValid | bool | |
Результат | void |
public GetVoxelMaterialContent ( Vector3I &voxelCoord, string &materialName, byte &content ) : void | ||
voxelCoord | Vector3I | |
materialName | string | |
content | byte | |
Результат | void |
public Init ( Vector3D position, Vector3I size, string material ) : void | ||
position | Vector3D | |
size | Vector3I | |
material | string | |
Результат | void |
public static IsVoxelMapFile ( string filename ) : bool | ||
filename | string | |
Результат | bool |
public Load ( string filename, string defaultMaterial ) : void | ||
filename | string | |
defaultMaterial | string | |
Результат | void |
public Load ( string filename, string defaultMaterial, bool loadMaterial ) : void | ||
filename | string | |
defaultMaterial | string | |
loadMaterial | bool | |
Результат | void |
public LoadUncompressed ( int initialVersion, Vector3D position, |
||
initialVersion | int | |
position | Vector3D | |
reader | ||
defaultMaterial | string | |
loadMaterial | bool | |
Результат | void |
public static LoadVoxelSize ( string filename ) : Vector3I | ||
filename | string | |
Результат | Vector3I |
public RemoveContent ( string materialName, string replaceFillMaterial ) : void | ||
materialName | string | |
replaceFillMaterial | string | |
Результат | void |
public RemoveMaterial ( int xMin, int xMax, int yMin, int yMax, int zMin, int zMax ) : void | ||
xMin | int | |
xMax | int | |
yMin | int | |
yMax | int | |
zMin | int | |
zMax | int | |
Результат | void |
public ReplaceMaterial ( string materialName, string replaceFillMaterial ) : void | ||
materialName | string | |
replaceFillMaterial | string | |
Результат | void |
public Save ( int initialVersion, |
||
initialVersion | int | |
writer | ||
saveMaterialContent | bool | |
Результат | void |
public Save ( string filename ) : void | ||
filename | string | the file extension indicates the version of file been saved. |
Результат | void |
public SeedMaterialSphere ( string materialName, byte radius ) : void | ||
materialName | string | material name |
radius | byte | radius in voxels, defaults to zero, meaning only a random grid. |
Результат | void |
public SetMaterialAssets ( IList |
||
materialsList | IList |
|
Результат | void |
public SetVoxelContentRegion ( byte content, int xMin, int xMax, int yMin, int yMax, int zMin, int zMax ) : void | ||
content | byte | |
xMin | int | |
xMax | int | |
yMin | int | |
yMax | int | |
zMin | int | |
zMax | int | |
Результат | void |
public SetVoxelMaterialAndIndestructibleContent ( string materialName, byte indestructibleContent, Vector3I &voxelCoord ) : void | ||
materialName | string | |
indestructibleContent | byte | |
voxelCoord | Vector3I | |
Результат | void |
public SetVoxelMaterialRegion ( string materialName, Vector3I &cellCoord ) : void | ||
materialName | string | The material name to set the cell to |
cellCoord | Vector3I | Cell coordinates vector (internal) |
Результат | void |
public static Uncompress ( string sourceFilename, int numberBytes ) : byte[] | ||
sourceFilename | string | |
numberBytes | int | |
Результат | byte[] |
public static Uncompress ( string sourceFilename, string destinationFilename ) : void | ||
sourceFilename | string | |
destinationFilename | string | |
Результат | void |