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

Public Member Functions

override void LoadData ()
 
override void UpdateAfterSimulation ()
 
- 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 BeforeStart ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void Simulate ()
 
virtual void UpdatingStopped ()
 
virtual void Draw ()
 
virtual void HandleInput ()
 
override string ToString ()
 

Static Public Member Functions

static MyEntity Spawn (MyPhysicalInventoryItem item, Vector3D position, Vector3D forward, Vector3D up, MyPhysicsComponentBase motionInheritedFrom=null)
 
static MyEntity Spawn (MyPhysicalInventoryItem item, MatrixD worldMatrix, MyPhysicsComponentBase motionInheritedFrom=null)
 
static MyEntity Spawn (MyPhysicalInventoryItem item, BoundingSphereD sphere, MyPhysicsComponentBase motionInheritedFrom=null, MyVoxelMaterialDefinition voxelMaterial=null)
 
static MyEntity Spawn (MyPhysicalItemDefinition itemDefinition, Vector3D translation, Vector3D forward, Vector3D up, int amount=1, float scale=1)
 
static void EnqueueInventoryItemSpawn (MyPhysicalInventoryItem inventoryItem, BoundingBoxD boundingBox, Vector3D inheritedVelocity)
 
static void AddFloatingObjectAmount (MyFloatingObject obj, MyFixedPoint amount)
 
static void RemoveFloatingObject (MyFloatingObject obj, bool sync)
 
static void RemoveFloatingObject (MyFloatingObject obj)
 
static void ReduceFloatingObjects ()
 
static MyObjectBuilder_FloatingObject ChangeObjectBuilder (MyComponentDefinition componentDef, MyObjectBuilder_EntityBase entityOb)
 This is used mainly for compactibility issues, it takes the builder of an entity of old object representation and creates a floating object builder for it More...
 
static void RequestSpawnCreative (MyObjectBuilder_FloatingObject obj)
 Players are allowed to spawn any object in creative More...
 

Protected Member Functions

override void UnloadData ()
 

Properties

static int FloatingOreCount [get]
 
static int FloatingItemCount [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...
 

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 36 of file MyFloatingObjects.cs.

Member Function Documentation

static void Sandbox.Game.Entities.MyFloatingObjects.AddFloatingObjectAmount ( MyFloatingObject  obj,
MyFixedPoint  amount 
)
inlinestatic

Definition at line 514 of file MyFloatingObjects.cs.

static MyObjectBuilder_FloatingObject Sandbox.Game.Entities.MyFloatingObjects.ChangeObjectBuilder ( MyComponentDefinition  componentDef,
MyObjectBuilder_EntityBase  entityOb 
)
inlinestatic

This is used mainly for compactibility issues, it takes the builder of an entity of old object representation and creates a floating object builder for it

Definition at line 658 of file MyFloatingObjects.cs.

static void Sandbox.Game.Entities.MyFloatingObjects.EnqueueInventoryItemSpawn ( MyPhysicalInventoryItem  inventoryItem,
BoundingBoxD  boundingBox,
Vector3D  inheritedVelocity 
)
inlinestatic

Definition at line 404 of file MyFloatingObjects.cs.

override void Sandbox.Game.Entities.MyFloatingObjects.LoadData ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 110 of file MyFloatingObjects.cs.

static void Sandbox.Game.Entities.MyFloatingObjects.ReduceFloatingObjects ( )
inlinestatic

Definition at line 570 of file MyFloatingObjects.cs.

static void Sandbox.Game.Entities.MyFloatingObjects.RemoveFloatingObject ( MyFloatingObject  obj,
bool  sync 
)
inlinestatic

Definition at line 523 of file MyFloatingObjects.cs.

static void Sandbox.Game.Entities.MyFloatingObjects.RemoveFloatingObject ( MyFloatingObject  obj)
inlinestatic

Definition at line 542 of file MyFloatingObjects.cs.

static void Sandbox.Game.Entities.MyFloatingObjects.RequestSpawnCreative ( MyObjectBuilder_FloatingObject  obj)
inlinestatic

Players are allowed to spawn any object in creative

Definition at line 677 of file MyFloatingObjects.cs.

static MyEntity Sandbox.Game.Entities.MyFloatingObjects.Spawn ( MyPhysicalInventoryItem  item,
Vector3D  position,
Vector3D  forward,
Vector3D  up,
MyPhysicsComponentBase  motionInheritedFrom = null 
)
inlinestatic

Definition at line 293 of file MyFloatingObjects.cs.

static MyEntity Sandbox.Game.Entities.MyFloatingObjects.Spawn ( MyPhysicalInventoryItem  item,
MatrixD  worldMatrix,
MyPhysicsComponentBase  motionInheritedFrom = null 
)
inlinestatic

Definition at line 322 of file MyFloatingObjects.cs.

static MyEntity Sandbox.Game.Entities.MyFloatingObjects.Spawn ( MyPhysicalInventoryItem  item,
BoundingSphereD  sphere,
MyPhysicsComponentBase  motionInheritedFrom = null,
MyVoxelMaterialDefinition  voxelMaterial = null 
)
inlinestatic

Definition at line 366 of file MyFloatingObjects.cs.

static MyEntity Sandbox.Game.Entities.MyFloatingObjects.Spawn ( MyPhysicalItemDefinition  itemDefinition,
Vector3D  translation,
Vector3D  forward,
Vector3D  up,
int  amount = 1,
float  scale = 1 
)
inlinestatic

Definition at line 391 of file MyFloatingObjects.cs.

override void Sandbox.Game.Entities.MyFloatingObjects.UnloadData ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 121 of file MyFloatingObjects.cs.

override void Sandbox.Game.Entities.MyFloatingObjects.UpdateAfterSimulation ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 128 of file MyFloatingObjects.cs.

Property Documentation

int Sandbox.Game.Entities.MyFloatingObjects.FloatingItemCount
staticget

Definition at line 475 of file MyFloatingObjects.cs.

int Sandbox.Game.Entities.MyFloatingObjects.FloatingOreCount
staticget

Definition at line 470 of file MyFloatingObjects.cs.


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