Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
Sandbox.Definitions.MyPlanetEnvironmentMapping Class Reference

Public Member Functions

 MyPlanetEnvironmentMapping (PlanetEnvironmentItemMapping map)
 
void ComputeDistribution ()
 
int GetItemRated (float rate)
 

Public Attributes

MyMaterialEnvironmentItem[] Items
 
MyPlanetSurfaceRule Rule
 
float TotalFrequency
 

Properties

bool Valid [get]
 

Detailed Description

Definition at line 51 of file MyPlanetGeneratorDefinition.cs.

Constructor & Destructor Documentation

Sandbox.Definitions.MyPlanetEnvironmentMapping.MyPlanetEnvironmentMapping ( PlanetEnvironmentItemMapping  map)
inline

Definition at line 65 of file MyPlanetGeneratorDefinition.cs.

Member Function Documentation

void Sandbox.Definitions.MyPlanetEnvironmentMapping.ComputeDistribution ( )
inline

Definition at line 120 of file MyPlanetGeneratorDefinition.cs.

int Sandbox.Definitions.MyPlanetEnvironmentMapping.GetItemRated ( float  rate)
inline

Given a value between 0 and 1 this will return the id of a vegetation item in which's range the value falls.

If the value of rate is uniformly distributed then the definitions will be distributed according to their defined densities.

Definition at line 153 of file MyPlanetGeneratorDefinition.cs.

Member Data Documentation

MyMaterialEnvironmentItem [] Sandbox.Definitions.MyPlanetEnvironmentMapping.Items

Definition at line 54 of file MyPlanetGeneratorDefinition.cs.

MyPlanetSurfaceRule Sandbox.Definitions.MyPlanetEnvironmentMapping.Rule

Definition at line 57 of file MyPlanetGeneratorDefinition.cs.

float Sandbox.Definitions.MyPlanetEnvironmentMapping.TotalFrequency

Definition at line 63 of file MyPlanetGeneratorDefinition.cs.

Property Documentation

bool Sandbox.Definitions.MyPlanetEnvironmentMapping.Valid
get

Weather this mapping is valid.

Definition at line 162 of file MyPlanetGeneratorDefinition.cs.


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