Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Properties | List of all members
VRage.Voxels.MyStorageData Class Reference

Classes

struct  MortonEnumerator
 

Public Member Functions

 MyStorageData (MyStorageDataTypeFlags typesToStore=MyStorageDataTypeFlags.ContentAndMaterial)
 
 MyStorageData (Vector3I size, byte[] content=null, byte[] material=null, byte[] occlusion=null)
 
void Resize (Vector3I start, Vector3I end)
 
void Resize (Vector3I size3D)
 
byte Get (MyStorageDataTypeEnum type, ref Vector3I p)
 
byte Get (MyStorageDataTypeEnum type, int linearIdx)
 
byte Get (MyStorageDataTypeEnum type, int x, int y, int z)
 
void Set (MyStorageDataTypeEnum type, ref Vector3I p, byte value)
 
void Content (ref Vector3I p, byte content)
 
void Content (int linearIdx, byte content)
 
byte Content (ref Vector3I p)
 
byte Content (int x, int y, int z)
 
byte Content (int linearIdx)
 
void Material (ref Vector3I p, byte materialIdx)
 
byte Material (ref Vector3I p)
 
byte Material (int linearIdx)
 
void Material (int linearIdx, byte materialIdx)
 
int ComputeLinear (ref Vector3I p)
 
bool WrinkleVoxelContent (ref Vector3I p, float wrinkleWeightAdd, float wrinkleWeightRemove)
 
void BlockFill (MyStorageDataTypeEnum type, Vector3I min, Vector3I max, byte content)
 
void BlockFillContent (Vector3I min, Vector3I max, byte content)
 
void BlockFillMaterial (Vector3I min, Vector3I max, byte materialIdx)
 
bool ContainsIsoSurface ()
 
bool ContainsVoxelsAboveIsoLevel ()
 
int ValueWhenAllEqual (MyStorageDataTypeEnum dataType)
 
void ClearContent (byte p)
 
void ClearMaterials (byte p)
 
void Clear (MyStorageDataTypeEnum type, byte p)
 
string ToBase64 ()
 

Static Public Member Functions

static MyStorageData FromBase64 (string str)
 

Properties

byte[] this[MyStorageDataTypeEnum type] [get, set]
 
int SizeLinear [get]
 
int StepLinear [get]
 
int StepX [get]
 
int StepY [get]
 
int StepZ [get]
 
Vector3I Size3D [get]
 
bool StoreOcclusion [get, set]
 

Detailed Description

Definition at line 14 of file MyStorageData.cs.

Constructor & Destructor Documentation

VRage.Voxels.MyStorageData.MyStorageData ( MyStorageDataTypeFlags  typesToStore = MyStorageDataTypeFlags.ContentAndMaterial)
inline

Definition at line 74 of file MyStorageData.cs.

VRage.Voxels.MyStorageData.MyStorageData ( Vector3I  size,
byte[]  content = null,
byte[]  material = null,
byte[]  occlusion = null 
)
inline

Definition at line 81 of file MyStorageData.cs.

Member Function Documentation

void VRage.Voxels.MyStorageData.BlockFill ( MyStorageDataTypeEnum  type,
Vector3I  min,
Vector3I  max,
byte  content 
)
inline

Definition at line 286 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.BlockFillContent ( Vector3I  min,
Vector3I  max,
byte  content 
)
inline

Definition at line 320 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.BlockFillMaterial ( Vector3I  min,
Vector3I  max,
byte  materialIdx 
)
inline

Definition at line 402 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Clear ( MyStorageDataTypeEnum  type,
byte  p 
)
inline

Definition at line 494 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.ClearContent ( byte  p)
inline

Definition at line 480 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.ClearMaterials ( byte  p)
inline

Definition at line 487 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.ComputeLinear ( ref Vector3I  p)
inline

Definition at line 235 of file MyStorageData.cs.

bool VRage.Voxels.MyStorageData.ContainsIsoSurface ( )
inline

Definition at line 413 of file MyStorageData.cs.

bool VRage.Voxels.MyStorageData.ContainsVoxelsAboveIsoLevel ( )
inline

Definition at line 434 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Content ( ref Vector3I  p,
byte  content 
)
inline

Definition at line 181 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Content ( int  linearIdx,
byte  content 
)
inline

Definition at line 187 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Content ( ref Vector3I  p)
inline

Definition at line 193 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Content ( int  x,
int  y,
int  z 
)
inline

Definition at line 199 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Content ( int  linearIdx)
inline

Definition at line 205 of file MyStorageData.cs.

static MyStorageData VRage.Voxels.MyStorageData.FromBase64 ( string  str)
inlinestatic

Definition at line 562 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Get ( MyStorageDataTypeEnum  type,
ref Vector3I  p 
)
inline

Definition at line 157 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Get ( MyStorageDataTypeEnum  type,
int  linearIdx 
)
inline

Definition at line 163 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Get ( MyStorageDataTypeEnum  type,
int  x,
int  y,
int  z 
)
inline

Definition at line 169 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Material ( ref Vector3I  p,
byte  materialIdx 
)
inline

Definition at line 211 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Material ( ref Vector3I  p)
inline

Definition at line 217 of file MyStorageData.cs.

byte VRage.Voxels.MyStorageData.Material ( int  linearIdx)
inline

Definition at line 223 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Material ( int  linearIdx,
byte  materialIdx 
)
inline

Definition at line 229 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Resize ( Vector3I  start,
Vector3I  end 
)
inline
Parameters
startInclusive.
endInclusive.

Definition at line 130 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Resize ( Vector3I  size3D)
inline

Definition at line 135 of file MyStorageData.cs.

void VRage.Voxels.MyStorageData.Set ( MyStorageDataTypeEnum  type,
ref Vector3I  p,
byte  value 
)
inline

Definition at line 175 of file MyStorageData.cs.

string VRage.Voxels.MyStorageData.ToBase64 ( )
inline

Definition at line 554 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.ValueWhenAllEqual ( MyStorageDataTypeEnum  dataType)
inline

Definition at line 453 of file MyStorageData.cs.

bool VRage.Voxels.MyStorageData.WrinkleVoxelContent ( ref Vector3I  p,
float  wrinkleWeightAdd,
float  wrinkleWeightRemove 
)
inline

Definition at line 240 of file MyStorageData.cs.

Property Documentation

Vector3I VRage.Voxels.MyStorageData.Size3D
get

Definition at line 68 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.SizeLinear
get

Definition at line 44 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.StepLinear
get

Definition at line 48 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.StepX
get

Definition at line 53 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.StepY
get

Definition at line 58 of file MyStorageData.cs.

int VRage.Voxels.MyStorageData.StepZ
get

Definition at line 63 of file MyStorageData.cs.

bool VRage.Voxels.MyStorageData.StoreOcclusion
getset

Wreather this storage data should keep occlusion values.

Definition at line 110 of file MyStorageData.cs.

byte [] VRage.Voxels.MyStorageData.this[MyStorageDataTypeEnum type]
getset

Definition at line 27 of file MyStorageData.cs.


The documentation for this class was generated from the following file: