Space Engineers
Classes | Public Member Functions | Properties | List of all members
Sandbox.Engine.Voxels.MyPlanetMaterialProvider Class Reference

Classes

struct  MaterialSampleParams
 
class  PlanetBiome
 
class  PlanetMaterial
 
class  PlanetMaterialRule
 
struct  PlanetOre
 
class  VoxelMaterial
 

Public Member Functions

 MyPlanetMaterialProvider (MyPlanetGeneratorDefinition generatorDef, MyPlanetShapeProvider planetShape)
 
void Close ()
 
void PrepareRulesForBox (ref BoundingBox request)
 
void ReadMaterialRange (ref MyVoxelDataRequest req)
 
void ReadOcclusion (ref MyVoxelDataRequest req)
 
MyVoxelMaterialDefinition GetMaterialForPosition (ref Vector3 pos, float lodSize)
 
MyVoxelMaterialDefinition GetMaterialForPosition (ref Vector3 pos, float lodSize, out byte biomeValue, ref byte occlusion)
 
void GetPositionParams (ref Vector3 pos, float lodSize, out MaterialSampleParams ps, bool skipCache=false)
 
PlanetMaterial GetLayeredMaterialForPosition (ref MaterialSampleParams ps, out byte spawnsItems, ref byte occlusion)
 
unsafe void GetMaterialForPositionDebug (ref Vector3 pos, out MyPlanetStorageProvider.SurfacePropertiesExtended props)
 

Properties

bool Closed [get]
 

Detailed Description

Definition at line 14 of file MyPlanetMaterialProvider.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Voxels.MyPlanetMaterialProvider.MyPlanetMaterialProvider ( MyPlanetGeneratorDefinition  generatorDef,
MyPlanetShapeProvider  planetShape 
)
inline

Definition at line 91 of file MyPlanetMaterialProvider.cs.

Member Function Documentation

void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.Close ( )
inline

Definition at line 179 of file MyPlanetMaterialProvider.cs.

PlanetMaterial Sandbox.Engine.Voxels.MyPlanetMaterialProvider.GetLayeredMaterialForPosition ( ref MaterialSampleParams  ps,
out byte  spawnsItems,
ref byte  occlusion 
)
inline

Definition at line 757 of file MyPlanetMaterialProvider.cs.

MyVoxelMaterialDefinition Sandbox.Engine.Voxels.MyPlanetMaterialProvider.GetMaterialForPosition ( ref Vector3  pos,
float  lodSize 
)
inline

Definition at line 510 of file MyPlanetMaterialProvider.cs.

MyVoxelMaterialDefinition Sandbox.Engine.Voxels.MyPlanetMaterialProvider.GetMaterialForPosition ( ref Vector3  pos,
float  lodSize,
out byte  biomeValue,
ref byte  occlusion 
)
inline

Definition at line 516 of file MyPlanetMaterialProvider.cs.

unsafe void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.GetMaterialForPositionDebug ( ref Vector3  pos,
out MyPlanetStorageProvider.SurfacePropertiesExtended  props 
)
inline

Definition at line 10 of file MyPlanetMaterialProvider.Debug.cs.

void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.GetPositionParams ( ref Vector3  pos,
float  lodSize,
out MaterialSampleParams  ps,
bool  skipCache = false 
)
inline

Definition at line 714 of file MyPlanetMaterialProvider.cs.

void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.PrepareRulesForBox ( ref BoundingBox  request)
inline

Definition at line 287 of file MyPlanetMaterialProvider.cs.

void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.ReadMaterialRange ( ref MyVoxelDataRequest  req)
inline

Definition at line 332 of file MyPlanetMaterialProvider.cs.

void Sandbox.Engine.Voxels.MyPlanetMaterialProvider.ReadOcclusion ( ref MyVoxelDataRequest  req)
inline

Definition at line 418 of file MyPlanetMaterialProvider.cs.

Property Documentation

bool Sandbox.Engine.Voxels.MyPlanetMaterialProvider.Closed
get

Definition at line 89 of file MyPlanetMaterialProvider.cs.


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