Space Engineers
|
Public Member Functions | |
void | Save (out byte[] outCompressedData) |
Gets compressed voxel data More... | |
void | OverwriteAllMaterials (byte materialIndex) |
Replaces all materials in range with the specific material More... | |
ContainmentType | Intersect (ref BoundingBox box, bool lazy) |
Returns the intersection with the storage region More... | |
bool | Intersect (ref LineD line) |
Returns true if the specific line intersects the storage region More... | |
void | PinAndExecute (Action action) |
Pins the voxel storage to prevent closing, then executes specified action. Unpins when action completes. More... | |
void | PinAndExecute (Action< IMyStorage > action) |
Pins the voxel storage to prevent closing, then executes specified action. Unpins when action completes. More... | |
void | Reset (MyStorageDataTypeFlags dataToReset) |
Resets the data specified by flags to values from data provider, or default if no provider is assigned. More... | |
void | ReadRange (MyStorageData target, MyStorageDataTypeFlags dataToRead, int lodIndex, Vector3I lodVoxelRangeMin, Vector3I lodVoxelRangeMax) |
Reads range of content and/or materials from specified LOD. If you want to write data back later, you must read LOD0 as that is the only writable one. More... | |
void | ReadRange (MyStorageData target, MyStorageDataTypeFlags dataToRead, int lodIndex, Vector3I lodVoxelRangeMin, Vector3I lodVoxelRangeMax, ref MyVoxelRequestFlags requestFlags) |
Reads range of content and/or materials from specified LOD. If you want to write data back later, you must read LOD0 as that is the only writable one. More... | |
void | WriteRange (MyStorageData source, MyStorageDataTypeFlags dataToWrite, Vector3I voxelRangeMin, Vector3I voxelRangeMax) |
Writes range of content and/or materials from cache to storage. Note that this can only write to LOD0 (higher LODs must be computed based on that). More... | |
Properties | |
bool | Closed [get] |
Returns true if voxel storage was closed More... | |
bool | MarkedForClose [get] |
Returns true if the voxel storage is marked for a pending close More... | |
Vector3I | Size [get] |
The size of the voxel storage, in voxels More... | |
Definition at line 7 of file IMyStorage.cs.
ContainmentType VRage.ModAPI.IMyStorage.Intersect | ( | ref BoundingBox | box, |
bool | lazy | ||
) |
Returns the intersection with the storage region
box | |
lazy |
Implemented in Sandbox.Engine.Voxels.MyStorageBase, and Sandbox.Engine.Voxels.IMyStorage.
bool VRage.ModAPI.IMyStorage.Intersect | ( | ref LineD | line | ) |
Returns true if the specific line intersects the storage region
line |
Implemented in Sandbox.Engine.Voxels.MyStorageBase, and Sandbox.Engine.Voxels.IMyStorage.
void VRage.ModAPI.IMyStorage.OverwriteAllMaterials | ( | byte | materialIndex | ) |
Replaces all materials in range with the specific material
materialIndex |
void VRage.ModAPI.IMyStorage.PinAndExecute | ( | Action | action | ) |
Pins the voxel storage to prevent closing, then executes specified action. Unpins when action completes.
action | Action to execute |
void VRage.ModAPI.IMyStorage.PinAndExecute | ( | Action< IMyStorage > | action | ) |
Pins the voxel storage to prevent closing, then executes specified action. Unpins when action completes.
action | Action to execute |
void VRage.ModAPI.IMyStorage.ReadRange | ( | MyStorageData | target, |
MyStorageDataTypeFlags | dataToRead, | ||
int | lodIndex, | ||
Vector3I | lodVoxelRangeMin, | ||
Vector3I | lodVoxelRangeMax | ||
) |
Reads range of content and/or materials from specified LOD. If you want to write data back later, you must read LOD0 as that is the only writable one.
target | |
dataToRead | |
lodIndex | |
lodVoxelRangeMin | Inclusive. |
lodVoxelRangeMax | Inclusive. |
void VRage.ModAPI.IMyStorage.ReadRange | ( | MyStorageData | target, |
MyStorageDataTypeFlags | dataToRead, | ||
int | lodIndex, | ||
Vector3I | lodVoxelRangeMin, | ||
Vector3I | lodVoxelRangeMax, | ||
ref MyVoxelRequestFlags | requestFlags | ||
) |
Reads range of content and/or materials from specified LOD. If you want to write data back later, you must read LOD0 as that is the only writable one.
target | |
dataToRead | |
lodIndex | |
lodVoxelRangeMin | |
lodVoxelRangeMax | |
requestFlags |
void VRage.ModAPI.IMyStorage.Reset | ( | MyStorageDataTypeFlags | dataToReset | ) |
Resets the data specified by flags to values from data provider, or default if no provider is assigned.
dataToReset |
Implemented in Sandbox.Engine.Voxels.MyStorageBase.
void VRage.ModAPI.IMyStorage.Save | ( | out byte[] | outCompressedData | ) |
Gets compressed voxel data
Implemented in Sandbox.Engine.Voxels.MyStorageBase.
void VRage.ModAPI.IMyStorage.WriteRange | ( | MyStorageData | source, |
MyStorageDataTypeFlags | dataToWrite, | ||
Vector3I | voxelRangeMin, | ||
Vector3I | voxelRangeMax | ||
) |
Writes range of content and/or materials from cache to storage. Note that this can only write to LOD0 (higher LODs must be computed based on that).
source | |
dataToWrite | |
voxelRangeMin | Inclusive. |
voxelRangeMax | Inclusive. |
|
get |
Returns true if voxel storage was closed
Definition at line 12 of file IMyStorage.cs.
|
get |
Returns true if the voxel storage is marked for a pending close
Definition at line 17 of file IMyStorage.cs.
|
get |
The size of the voxel storage, in voxels
Definition at line 27 of file IMyStorage.cs.