Show / Hide Table of Contents

Class MyStorageData

Inheritance
System.Object
MyStorageData
Namespace: VRage.Voxels
Assembly: VRage.dll
Syntax
public class MyStorageData : Object

Constructors

MyStorageData()

Declaration
public MyStorageData()

MyStorageData(MyStorageDataTypeFlags)

Declaration
public MyStorageData(MyStorageDataTypeFlags typesToStore)
Parameters
Type Name Description
MyStorageDataTypeFlags typesToStore

MyStorageData(Vector3I, Byte[], Byte[])

Declaration
public MyStorageData(Vector3I size, byte[] content = null, byte[] material = null)
Parameters
Type Name Description
Vector3I size
System.Byte[] content
System.Byte[] material

Properties

Item[MyStorageDataTypeEnum]

Declaration
public byte[] this[MyStorageDataTypeEnum type] { get; set; }
Parameters
Type Name Description
MyStorageDataTypeEnum type
Property Value
Type Description
System.Byte[]

Size3D

Declaration
public Vector3I Size3D { get; }
Property Value
Type Description
Vector3I

SizeLinear

Declaration
public int SizeLinear { get; }
Property Value
Type Description
System.Int32

Step

Declaration
public Vector3I Step { get; }
Property Value
Type Description
Vector3I

StepLinear

Declaration
public int StepLinear { get; }
Property Value
Type Description
System.Int32

StepX

Declaration
public int StepX { get; }
Property Value
Type Description
System.Int32

StepY

Declaration
public int StepY { get; }
Property Value
Type Description
System.Int32

StepZ

Declaration
public int StepZ { get; }
Property Value
Type Description
System.Int32

Methods

BlockFill(MyStorageDataTypeEnum, Vector3I, Vector3I, Byte)

Declaration
public void BlockFill(MyStorageDataTypeEnum type, Vector3I min, Vector3I max, byte content)
Parameters
Type Name Description
MyStorageDataTypeEnum type
Vector3I min
Vector3I max
System.Byte content

BlockFillContent(Vector3I, Vector3I, Byte)

Declaration
public void BlockFillContent(Vector3I min, Vector3I max, byte content)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Byte content

BlockFillMaterial(Vector3I, Vector3I, Byte)

Declaration
public void BlockFillMaterial(Vector3I min, Vector3I max, byte materialIdx)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Byte materialIdx

BlockFillMaterialConsiderContent(Vector3I, Vector3I, Byte)

Declaration
public void BlockFillMaterialConsiderContent(Vector3I min, Vector3I max, byte materialIdx)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Byte materialIdx

Clear(MyStorageDataTypeEnum, Byte)

Declaration
public void Clear(MyStorageDataTypeEnum type, byte p)
Parameters
Type Name Description
MyStorageDataTypeEnum type
System.Byte p

ClearContent(Byte)

Declaration
public void ClearContent(byte p)
Parameters
Type Name Description
System.Byte p

ClearMaterials(Byte)

Declaration
public void ClearMaterials(byte p)
Parameters
Type Name Description
System.Byte p

ComputeContentConstitution()

Declaration
public MyVoxelContentConstitution ComputeContentConstitution()
Returns
Type Description
MyVoxelContentConstitution

ComputeLinear(ref Vector3I)

Declaration
public int ComputeLinear(ref Vector3I p)
Parameters
Type Name Description
Vector3I p
Returns
Type Description
System.Int32

ComputePosition(Int32, out Vector3I)

Declaration
public void ComputePosition(int linear, out Vector3I p)
Parameters
Type Name Description
System.Int32 linear
Vector3I p

ContainsIsoSurface()

Declaration
public bool ContainsIsoSurface()
Returns
Type Description
System.Boolean

ContainsVoxelsAboveIsoLevel()

Declaration
public bool ContainsVoxelsAboveIsoLevel()
Returns
Type Description
System.Boolean

Content(Int32)

Declaration
public byte Content(int linearIdx)
Parameters
Type Name Description
System.Int32 linearIdx
Returns
Type Description
System.Byte

Content(Int32, Byte)

Declaration
public void Content(int linearIdx, byte content)
Parameters
Type Name Description
System.Int32 linearIdx
System.Byte content

Content(Int32, Int32, Int32)

Declaration
public byte Content(int x, int y, int z)
Parameters
Type Name Description
System.Int32 x
System.Int32 y
System.Int32 z
Returns
Type Description
System.Byte

Content(ref Vector3I)

Declaration
public byte Content(ref Vector3I p)
Parameters
Type Name Description
Vector3I p
Returns
Type Description
System.Byte

Content(ref Vector3I, Byte)

Declaration
public void Content(ref Vector3I p, byte content)
Parameters
Type Name Description
Vector3I p
System.Byte content

CopyRange(MyStorageData, Vector3I, Vector3I, Vector3I, MyStorageDataTypeEnum)

Declaration
public void CopyRange(MyStorageData src, Vector3I min, Vector3I max, Vector3I offset, MyStorageDataTypeEnum dataType)
Parameters
Type Name Description
MyStorageData src
Vector3I min
Vector3I max
Vector3I offset
MyStorageDataTypeEnum dataType

FromBase64(String)

Declaration
public static MyStorageData FromBase64(string str)
Parameters
Type Name Description
System.String str
Returns
Type Description
MyStorageData

Get(MyStorageDataTypeEnum, Int32)

Declaration
public byte Get(MyStorageDataTypeEnum type, int linearIdx)
Parameters
Type Name Description
MyStorageDataTypeEnum type
System.Int32 linearIdx
Returns
Type Description
System.Byte

Get(MyStorageDataTypeEnum, Int32, Int32, Int32)

Declaration
public byte Get(MyStorageDataTypeEnum type, int x, int y, int z)
Parameters
Type Name Description
MyStorageDataTypeEnum type
System.Int32 x
System.Int32 y
System.Int32 z
Returns
Type Description
System.Byte

Get(MyStorageDataTypeEnum, ref Vector3I)

Declaration
public byte Get(MyStorageDataTypeEnum type, ref Vector3I p)
Parameters
Type Name Description
MyStorageDataTypeEnum type
Vector3I p
Returns
Type Description
System.Byte

Material(Int32)

Declaration
public byte Material(int linearIdx)
Parameters
Type Name Description
System.Int32 linearIdx
Returns
Type Description
System.Byte

Material(Int32, Byte)

Declaration
public void Material(int linearIdx, byte materialIdx)
Parameters
Type Name Description
System.Int32 linearIdx
System.Byte materialIdx

Material(ref Vector3I)

Declaration
public byte Material(ref Vector3I p)
Parameters
Type Name Description
Vector3I p
Returns
Type Description
System.Byte

Material(ref Vector3I, Byte)

Declaration
public void Material(ref Vector3I p, byte materialIdx)
Parameters
Type Name Description
Vector3I p
System.Byte materialIdx

OpRange<Op>(MyStorageData, Vector3I, Vector3I, Vector3I, MyStorageDataTypeEnum)

Declaration
public void OpRange<Op>(MyStorageData src, Vector3I min, Vector3I max, Vector3I offset, MyStorageDataTypeEnum dataType)
    where Op : struct, MyStorageData.IOperator, ValueType
Parameters
Type Name Description
MyStorageData src
Vector3I min
Vector3I max
Vector3I offset
MyStorageDataTypeEnum dataType
Type Parameters
Name Description
Op

Resize(Vector3I)

Declaration
public void Resize(Vector3I size3D)
Parameters
Type Name Description
Vector3I size3D

Resize(Vector3I, Vector3I)

Declaration
public void Resize(Vector3I start, Vector3I end)
Parameters
Type Name Description
Vector3I start

Inclusive.

Vector3I end

Inclusive.

Set(MyStorageDataTypeEnum, ref Vector3I, Byte)

Declaration
public void Set(MyStorageDataTypeEnum type, ref Vector3I p, byte value)
Parameters
Type Name Description
MyStorageDataTypeEnum type
Vector3I p
System.Byte value

ToBase64()

Declaration
public string ToBase64()
Returns
Type Description
System.String

ValueWhenAllEqual(MyStorageDataTypeEnum)

Declaration
public int ValueWhenAllEqual(MyStorageDataTypeEnum dataType)
Parameters
Type Name Description
MyStorageDataTypeEnum dataType
Returns
Type Description
System.Int32

WrinkleVoxelContent(ref Vector3I, Single, Single)

Declaration
public bool WrinkleVoxelContent(ref Vector3I p, float wrinkleWeightAdd, float wrinkleWeightRemove)
Parameters
Type Name Description
Vector3I p
System.Single wrinkleWeightAdd
System.Single wrinkleWeightRemove
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾