Space Engineers
|
Public Member Functions | |
void | WriteTo (Stream stream) |
void | ReadFrom (ref MyOctreeStorage.ChunkHeader header, Stream stream, ref bool isOldFormat) |
void | ReadRange (MyStorageData target, MyStorageDataTypeFlags dataType, ref Vector3I writeOffset, int lodIndex, ref Vector3I minInLod, ref Vector3I maxInLod) |
void | ReadRange (ref MyVoxelDataRequest request) |
MyVoxelRequestFlags | SupportedFlags () |
void | DebugDraw (ref MatrixD worldMatrix) |
void | ReindexMaterials (Dictionary< byte, byte > oldToNewIndexMap) |
float | GetDistanceToPoint (ref Vector3D localPos) |
MyVoxelMaterialDefinition | GetMaterialAtPosition (ref Vector3D localPosition) |
ContainmentType | Intersect (BoundingBoxI box, bool lazy) |
bool | Intersect (ref LineD line, out double startOffset, out double endOffset) |
void | Close () |
Properties | |
int | SerializedSize [get] |
bool | ProvidesAmbient [get] |
Definition at line 51 of file IMyStorageDataProvider.cs.
void Sandbox.Engine.Voxels.IMyStorageDataProvider.Close | ( | ) |
void Sandbox.Engine.Voxels.IMyStorageDataProvider.DebugDraw | ( | ref MatrixD | worldMatrix | ) |
Implemented in Sandbox.Engine.Voxels.MyPlanetStorageProvider.
float Sandbox.Engine.Voxels.IMyStorageDataProvider.GetDistanceToPoint | ( | ref Vector3D | localPos | ) |
MyVoxelMaterialDefinition Sandbox.Engine.Voxels.IMyStorageDataProvider.GetMaterialAtPosition | ( | ref Vector3D | localPosition | ) |
Get the material at a given position in the voxel storage.
Position is in storage local space.
Implemented in Sandbox.Game.World.Generator.MyCompositeShapeProvider, and Sandbox.Engine.Voxels.MyPlanetStorageProvider.
ContainmentType Sandbox.Engine.Voxels.IMyStorageDataProvider.Intersect | ( | BoundingBoxI | box, |
bool | lazy | ||
) |
bool Sandbox.Engine.Voxels.IMyStorageDataProvider.Intersect | ( | ref LineD | line, |
out double | startOffset, | ||
out double | endOffset | ||
) |
Intersect line with storage.
Returnas the tightest line interval that does intersect the storage. The precision of this method varies from storage to storage.
The offsets are normalised.
Implemented in Sandbox.Game.World.Generator.MyCompositeShapeProvider, and Sandbox.Engine.Voxels.MyPlanetStorageProvider.
void Sandbox.Engine.Voxels.IMyStorageDataProvider.ReadFrom | ( | ref MyOctreeStorage.ChunkHeader | header, |
Stream | stream, | ||
ref bool | isOldFormat | ||
) |
void Sandbox.Engine.Voxels.IMyStorageDataProvider.ReadRange | ( | MyStorageData | target, |
MyStorageDataTypeFlags | dataType, | ||
ref Vector3I | writeOffset, | ||
int | lodIndex, | ||
ref Vector3I | minInLod, | ||
ref Vector3I | maxInLod | ||
) |
Implemented in Sandbox.Engine.Voxels.MyPlanetStorageProvider.
void Sandbox.Engine.Voxels.IMyStorageDataProvider.ReadRange | ( | ref MyVoxelDataRequest | request | ) |
Read range of data.
The data for the request, providing any optimizations that are requested in there.
Implemented in Sandbox.Game.World.Generator.MyCompositeShapeProvider, and Sandbox.Engine.Voxels.MyPlanetStorageProvider.
void Sandbox.Engine.Voxels.IMyStorageDataProvider.ReindexMaterials | ( | Dictionary< byte, byte > | oldToNewIndexMap | ) |
Implemented in Sandbox.Engine.Voxels.MyPlanetStorageProvider.
MyVoxelRequestFlags Sandbox.Engine.Voxels.IMyStorageDataProvider.SupportedFlags | ( | ) |
What optimizations this storage supports, the caller will never request for an optimization the storage does not support.
Implemented in Sandbox.Game.World.Generator.MyCompositeShapeProvider, and Sandbox.Engine.Voxels.MyPlanetStorageProvider.
void Sandbox.Engine.Voxels.IMyStorageDataProvider.WriteTo | ( | Stream | stream | ) |
|
get |
Definition at line 100 of file IMyStorageDataProvider.cs.
|
get |
Definition at line 53 of file IMyStorageDataProvider.cs.