Space Engineers
Classes | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition Class Reference
Inheritance diagram for Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition:
VRage.Game.MyDefinitionBase

Classes

struct  EnvironmentItemAction
 
class  GrowthSubtree
 
class  ItemGrowthStep
 

Public Member Functions

void UpdateState (ref int last, ref long enlapsedTime)
 Get the current state of an item based on it's last known state and the ammount of time since. More...
 
- 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 ()
 

Public Attributes

Dictionary< string, int > StepNameIndex
 
ItemGrowthStep[] GrowthSteps
 
MyDiscreteSampler< int > StartingSteps
 
- 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
 

Protected Member Functions

override void Init (MyObjectBuilder_DefinitionBase builder)
 

Additional Inherited Members

- 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...
 

Detailed Description

Definition at line 19 of file MyGrowableEnvironmentItemDefinition.cs.

Member Function Documentation

override void Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition.Init ( MyObjectBuilder_DefinitionBase  builder)
inlineprotectedvirtual

Reimplemented from VRage.Game.MyDefinitionBase.

Definition at line 67 of file MyGrowableEnvironmentItemDefinition.cs.

void Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition.UpdateState ( ref int  last,
ref long  enlapsedTime 
)
inline

Get the current state of an item based on it's last known state and the ammount of time since.

Parameters
lastLast known state of the item.
enlapsedTimeAmmount of time enlapsed since the last known state transition (in seconds).
Returns

Definition at line 458 of file MyGrowableEnvironmentItemDefinition.cs.

Member Data Documentation

ItemGrowthStep [] Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition.GrowthSteps

Definition at line 61 of file MyGrowableEnvironmentItemDefinition.cs.

MyDiscreteSampler<int> Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition.StartingSteps

Definition at line 62 of file MyGrowableEnvironmentItemDefinition.cs.

Dictionary<string, int> Sandbox.Game.WorldEnvironment.Definitions.MyGrowableEnvironmentItemDefinition.StepNameIndex

Definition at line 60 of file MyGrowableEnvironmentItemDefinition.cs.


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