C# Class SEToolbox.Interop.Asteroids.MyVoxelMaterialCell

Exibir arquivo Open project: midspace/SEToolbox Class Usage Examples

Public Methods

Method Description
CalcAverageCellMaterial ( ) : void
ForceReplaceMaterial ( byte materialIndex ) : void

This will forcefully wipe the materials, and replace everything with the specified material

GetIndestructibleContent ( Vector3I &voxelCoordInCell ) : byte
GetMaterial ( Vector3I &voxelCoordInCell ) : byte
MyVoxelMaterialCell ( byte defaultMaterialIndex, byte defaultIndestructibleContents ) : System.Collections.Generic
Reset ( byte defaultMaterialIndex, byte defaultIndestructibleContents ) : void
SetMaterialAndIndestructibleContent ( byte materialIndex, byte indestructibleContent, Vector3I &voxelCoordInCell ) : void

Private Methods

Method Description
CheckInitArrays ( byte materialIndex ) : void

Method Details

CalcAverageCellMaterial() public method

public CalcAverageCellMaterial ( ) : void
return void

ForceReplaceMaterial() public method

This will forcefully wipe the materials, and replace everything with the specified material
public ForceReplaceMaterial ( byte materialIndex ) : void
materialIndex byte
return void

GetIndestructibleContent() public method

public GetIndestructibleContent ( Vector3I &voxelCoordInCell ) : byte
voxelCoordInCell Vector3I
return byte

GetMaterial() public method

public GetMaterial ( Vector3I &voxelCoordInCell ) : byte
voxelCoordInCell Vector3I
return byte

MyVoxelMaterialCell() public method

public MyVoxelMaterialCell ( byte defaultMaterialIndex, byte defaultIndestructibleContents ) : System.Collections.Generic
defaultMaterialIndex byte
defaultIndestructibleContents byte
return System.Collections.Generic

Reset() public method

public Reset ( byte defaultMaterialIndex, byte defaultIndestructibleContents ) : void
defaultMaterialIndex byte
defaultIndestructibleContents byte
return void

SetMaterialAndIndestructibleContent() public method

public SetMaterialAndIndestructibleContent ( byte materialIndex, byte indestructibleContent, Vector3I &voxelCoordInCell ) : void
materialIndex byte
indestructibleContent byte
voxelCoordInCell Vector3I
return void