Space Engineers
Public Member Functions | Protected Member Functions | Properties | List of all members
Sandbox.Definitions.MyEnvironmentItemsDefinition Class Reference
Inheritance diagram for Sandbox.Definitions.MyEnvironmentItemsDefinition:
VRage.Game.MyDefinitionBase

Public Member Functions

void AddItemDefinition (MyStringHash definition, float frequency, bool recompute=true)
 
void RecomputeFrequencies ()
 
MyEnvironmentItemDefinition GetItemDefinition (MyStringHash subtypeId)
 
MyEnvironmentItemDefinition GetItemDefinition (int index)
 
MyEnvironmentItemDefinition GetRandomItemDefinition ()
 
MyEnvironmentItemDefinition GetRandomItemDefinition (MyRandom instance)
 
bool ContainsItemDefinition (MyStringHash subtypeId)
 
bool ContainsItemDefinition (MyDefinitionId definitionId)
 
bool ContainsItemDefinition (MyEnvironmentItemDefinition itemDefinition)
 
- Public Member Functions inherited from VRage.Game.MyDefinitionBase
void Init (MyObjectBuilder_DefinitionBase builder, MyModContext modContext)
 
virtual void Postprocess ()
 Override this in case you want to do some postprocessing of the definition before the game starts. More...
 
void Save (string filepath)
 
virtual MyObjectBuilder_DefinitionBase GetObjectBuilder ()
 
override string ToString ()
 

Protected Member Functions

override void Init (MyObjectBuilder_DefinitionBase builder)
 

Properties

MyObjectBuilderType ItemDefinitionType [get]
 
int Channel [get]
 
float MaxViewDistance [get]
 
float SectorSize [get]
 
float ItemSize [get]
 
MyStringHash Material [get]
 
int ItemDefinitionCount [get]
 
- Properties inherited from VRage.Game.MyDefinitionBase
virtual String DisplayNameText [get]
 Use this property when showing name in GUI instead of DisplayName. This takes into account more complex name construction. More...
 
virtual String DescriptionText [get]
 Use this property when showing description in GUI, as it takes into account more complex description construction. More...
 

Additional Inherited Members

- Public Attributes inherited from VRage.Game.MyDefinitionBase
MyDefinitionId Id
 
MyStringId DisplayNameEnum
 Enum used for localization of display name. Null for player created definitions. More...
 
MyStringId DescriptionEnum
 Enum used for localization of description. Null for player created definitions. More...
 
String DisplayNameString
 String name used for user created definitions which do not have localization support. More...
 
String DescriptionString
 String used for user created description which do not have localization support. More...
 
string[] Icons
 Icons for the definition, they are used from top to bottom. More...
 
bool Enabled = true
 Definition can be disabled by mod, then it will be removed from definition manager More...
 
bool Public = true
 Indicates if definition should be offered in Cube builder More...
 
bool AvailableInSurvival
 
MyModContext Context
 

Detailed Description

Definition at line 17 of file MyEnvironmentItemsDefinition.cs.

Member Function Documentation

void Sandbox.Definitions.MyEnvironmentItemsDefinition.AddItemDefinition ( MyStringHash  definition,
float  frequency,
bool  recompute = true 
)
inline

Definition at line 72 of file MyEnvironmentItemsDefinition.cs.

bool Sandbox.Definitions.MyEnvironmentItemsDefinition.ContainsItemDefinition ( MyStringHash  subtypeId)
inline

Definition at line 148 of file MyEnvironmentItemsDefinition.cs.

bool Sandbox.Definitions.MyEnvironmentItemsDefinition.ContainsItemDefinition ( MyDefinitionId  definitionId)
inline

Definition at line 153 of file MyEnvironmentItemsDefinition.cs.

bool Sandbox.Definitions.MyEnvironmentItemsDefinition.ContainsItemDefinition ( MyEnvironmentItemDefinition  itemDefinition)
inline

Definition at line 158 of file MyEnvironmentItemsDefinition.cs.

MyEnvironmentItemDefinition Sandbox.Definitions.MyEnvironmentItemsDefinition.GetItemDefinition ( MyStringHash  subtypeId)
inline

Definition at line 111 of file MyEnvironmentItemsDefinition.cs.

MyEnvironmentItemDefinition Sandbox.Definitions.MyEnvironmentItemsDefinition.GetItemDefinition ( int  index)
inline

Definition at line 122 of file MyEnvironmentItemsDefinition.cs.

MyEnvironmentItemDefinition Sandbox.Definitions.MyEnvironmentItemsDefinition.GetRandomItemDefinition ( )
inline

Definition at line 130 of file MyEnvironmentItemsDefinition.cs.

MyEnvironmentItemDefinition Sandbox.Definitions.MyEnvironmentItemsDefinition.GetRandomItemDefinition ( MyRandom  instance)
inline

Definition at line 139 of file MyEnvironmentItemsDefinition.cs.

override void Sandbox.Definitions.MyEnvironmentItemsDefinition.Init ( MyObjectBuilder_DefinitionBase  builder)
inlineprotectedvirtual

Reimplemented from VRage.Game.MyDefinitionBase.

Definition at line 40 of file MyEnvironmentItemsDefinition.cs.

void Sandbox.Definitions.MyEnvironmentItemsDefinition.RecomputeFrequencies ( )
inline

Definition at line 86 of file MyEnvironmentItemsDefinition.cs.

Property Documentation

int Sandbox.Definitions.MyEnvironmentItemsDefinition.Channel
get

Definition at line 28 of file MyEnvironmentItemsDefinition.cs.

int Sandbox.Definitions.MyEnvironmentItemsDefinition.ItemDefinitionCount
get

Definition at line 38 of file MyEnvironmentItemsDefinition.cs.

MyObjectBuilderType Sandbox.Definitions.MyEnvironmentItemsDefinition.ItemDefinitionType
get

Definition at line 26 of file MyEnvironmentItemsDefinition.cs.

float Sandbox.Definitions.MyEnvironmentItemsDefinition.ItemSize
get

Definition at line 34 of file MyEnvironmentItemsDefinition.cs.

MyStringHash Sandbox.Definitions.MyEnvironmentItemsDefinition.Material
get

Definition at line 36 of file MyEnvironmentItemsDefinition.cs.

float Sandbox.Definitions.MyEnvironmentItemsDefinition.MaxViewDistance
get

Definition at line 29 of file MyEnvironmentItemsDefinition.cs.

float Sandbox.Definitions.MyEnvironmentItemsDefinition.SectorSize
get

Definition at line 30 of file MyEnvironmentItemsDefinition.cs.


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