Space Engineers
Public Member Functions | Properties | List of all members
Sandbox.Engine.Voxels.IMyStorageDataProvider Interface Reference
Inheritance diagram for Sandbox.Engine.Voxels.IMyStorageDataProvider:
Sandbox.Engine.Voxels.MyPlanetStorageProvider Sandbox.Game.World.Generator.MyCompositeShapeProvider

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]
 

Detailed Description

Definition at line 51 of file IMyStorageDataProvider.cs.

Member Function Documentation

void Sandbox.Engine.Voxels.IMyStorageDataProvider.Close ( )
void Sandbox.Engine.Voxels.IMyStorageDataProvider.DebugDraw ( ref MatrixD  worldMatrix)
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 
)
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)
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)

Property Documentation

bool Sandbox.Engine.Voxels.IMyStorageDataProvider.ProvidesAmbient
get

Definition at line 100 of file IMyStorageDataProvider.cs.

int Sandbox.Engine.Voxels.IMyStorageDataProvider.SerializedSize
get

Definition at line 53 of file IMyStorageDataProvider.cs.


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