Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | Events | List of all members
Sandbox.Game.SessionComponents.MyFloraAreas Class Reference
Inheritance diagram for Sandbox.Game.SessionComponents.MyFloraAreas:
VRage.Game.Components.MySessionComponentBase VRage.Game.Components.Interfaces.IMyUserInputComponent

Classes

struct  AreaData
 

Public Member Functions

 MyFloraAreas ()
 
override void LoadData ()
 
override void BeforeStart ()
 
void AddEnvironmentItem (MyEnvironmentItems item)
 
override void UpdateBeforeSimulation ()
 
void DebugDraw ()
 
- Public Member Functions inherited from VRage.Game.Components.MySessionComponentBase
virtual bool UpdatedBeforeInit ()
 
 MySessionComponentBase ()
 
void SetUpdateOrder (MyUpdateOrder order)
 
virtual void InitFromDefinition (MySessionComponentDefinition definition)
 
virtual void Init (MyObjectBuilder_SessionComponent sessionComponent)
 
virtual MyObjectBuilder_SessionComponent GetObjectBuilder ()
 
void AfterLoadData ()
 
void UnloadDataConditional ()
 
virtual void SaveData ()
 
virtual void Simulate ()
 
virtual void UpdateAfterSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void Draw ()
 
virtual void HandleInput ()
 
override string ToString ()
 

Static Public Member Functions

static void ImmediateInvalidateAreaValues ()
 
static bool HasBelongingItems (int areaId, MyEnvironmentItems items)
 
static bool TryFindLocationInsideForest (out Vector3D location, Predicate< AreaData > predicate=null)
 
static bool TryFindLocationInsideForest (Vector3D desiredLocationSize, out Vector3D location, Predicate< AreaData > predicate=null)
 
static bool TryFindLocationOutsideForest (out Vector3D location, Predicate< AreaData > predicate=null)
 
static bool TryFindLocationOutsideForest (Vector3D desiredLocationSize, out Vector3D location, Predicate< AreaData > predicate=null)
 

Protected Member Functions

override void UnloadData ()
 

Properties

static double ForestsPercent [get]
 
static double WorldArea [get]
 
static double FullAreasRatio [get]
 
override bool IsRequiredByGame [get]
 
- Properties inherited from VRage.Game.Components.MySessionComponentBase
MyUpdateOrder UpdateOrder [get]
 
MyObjectBuilderType ObjectBuilderType [get]
 
bool Loaded [get]
 
bool Initialized [get]
 
MyDefinitionId Definition [get, set]
 
virtual Type[] Dependencies [get]
 
virtual bool IsRequiredByGame [get]
 Indicates whether a session component should be used in current configuration. Example: MyDestructionData component returns true only when game uses Havok Destruction More...
 

Events

static Action LoadFinished
 
static Action< int > ItemAddedToArea
 
static Action< int > SelectedArea
 
static Action< int > RemovedArea
 

Additional Inherited Members

- Public Attributes inherited from VRage.Game.Components.MySessionComponentBase
readonly string DebugName
 
readonly int Priority
 
readonly Type ComponentType
 
IMySession Session
 

Detailed Description

Definition at line 25 of file MyFloraAreas.cs.

Constructor & Destructor Documentation

Sandbox.Game.SessionComponents.MyFloraAreas.MyFloraAreas ( )
inline

Definition at line 206 of file MyFloraAreas.cs.

Member Function Documentation

void Sandbox.Game.SessionComponents.MyFloraAreas.AddEnvironmentItem ( MyEnvironmentItems  item)
inline

Definition at line 289 of file MyFloraAreas.cs.

override void Sandbox.Game.SessionComponents.MyFloraAreas.BeforeStart ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 252 of file MyFloraAreas.cs.

void Sandbox.Game.SessionComponents.MyFloraAreas.DebugDraw ( )
inline

Definition at line 1333 of file MyFloraAreas.cs.

static bool Sandbox.Game.SessionComponents.MyFloraAreas.HasBelongingItems ( int  areaId,
MyEnvironmentItems  items 
)
inlinestatic

Definition at line 1036 of file MyFloraAreas.cs.

static void Sandbox.Game.SessionComponents.MyFloraAreas.ImmediateInvalidateAreaValues ( )
inlinestatic

Definition at line 627 of file MyFloraAreas.cs.

override void Sandbox.Game.SessionComponents.MyFloraAreas.LoadData ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 222 of file MyFloraAreas.cs.

static bool Sandbox.Game.SessionComponents.MyFloraAreas.TryFindLocationInsideForest ( out Vector3D  location,
Predicate< AreaData predicate = null 
)
inlinestatic

Definition at line 1041 of file MyFloraAreas.cs.

static bool Sandbox.Game.SessionComponents.MyFloraAreas.TryFindLocationInsideForest ( Vector3D  desiredLocationSize,
out Vector3D  location,
Predicate< AreaData predicate = null 
)
inlinestatic

Definition at line 1046 of file MyFloraAreas.cs.

static bool Sandbox.Game.SessionComponents.MyFloraAreas.TryFindLocationOutsideForest ( out Vector3D  location,
Predicate< AreaData predicate = null 
)
inlinestatic

Definition at line 1051 of file MyFloraAreas.cs.

static bool Sandbox.Game.SessionComponents.MyFloraAreas.TryFindLocationOutsideForest ( Vector3D  desiredLocationSize,
out Vector3D  location,
Predicate< AreaData predicate = null 
)
inlinestatic

Definition at line 1056 of file MyFloraAreas.cs.

override void Sandbox.Game.SessionComponents.MyFloraAreas.UnloadData ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 257 of file MyFloraAreas.cs.

override void Sandbox.Game.SessionComponents.MyFloraAreas.UpdateBeforeSimulation ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 324 of file MyFloraAreas.cs.

Property Documentation

double Sandbox.Game.SessionComponents.MyFloraAreas.ForestsPercent
staticget

Definition at line 178 of file MyFloraAreas.cs.

double Sandbox.Game.SessionComponents.MyFloraAreas.FullAreasRatio
staticget

Definition at line 193 of file MyFloraAreas.cs.

override bool Sandbox.Game.SessionComponents.MyFloraAreas.IsRequiredByGame
get

Definition at line 215 of file MyFloraAreas.cs.

double Sandbox.Game.SessionComponents.MyFloraAreas.WorldArea
staticget

Definition at line 185 of file MyFloraAreas.cs.

Event Documentation

Action<int> Sandbox.Game.SessionComponents.MyFloraAreas.ItemAddedToArea
static

Definition at line 173 of file MyFloraAreas.cs.

Action Sandbox.Game.SessionComponents.MyFloraAreas.LoadFinished
static

Definition at line 172 of file MyFloraAreas.cs.

Action<int> Sandbox.Game.SessionComponents.MyFloraAreas.RemovedArea
static

Definition at line 175 of file MyFloraAreas.cs.

Action<int> Sandbox.Game.SessionComponents.MyFloraAreas.SelectedArea
static

Definition at line 174 of file MyFloraAreas.cs.


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