Show / Hide Table of Contents

Class MyFloatingObjects

Inheritance
System.Object
MySessionComponentBase
MyFloatingObjects
Inherited Members
MySessionComponentBase.DebugName
MySessionComponentBase.Priority
MySessionComponentBase.ComponentType
MySessionComponentBase.Session
MySessionComponentBase.UpdatedBeforeInit()
MySessionComponentBase.SetUpdateOrder(MyUpdateOrder)
MySessionComponentBase.InitFromDefinition(MySessionComponentDefinition)
MySessionComponentBase.Init(MyObjectBuilder_SessionComponent)
MySessionComponentBase.GetObjectBuilder()
MySessionComponentBase.AfterLoadData()
MySessionComponentBase.UnloadDataConditional()
MySessionComponentBase.UnloadData()
MySessionComponentBase.SaveData()
MySessionComponentBase.BeforeStart()
MySessionComponentBase.UpdateBeforeSimulation()
MySessionComponentBase.Simulate()
MySessionComponentBase.UpdatingStopped()
MySessionComponentBase.Draw()
MySessionComponentBase.HandleInput()
MySessionComponentBase.ToString()
MySessionComponentBase.UpdateOrder
MySessionComponentBase.ObjectBuilderType
MySessionComponentBase.ModContext
MySessionComponentBase.Loaded
MySessionComponentBase.Initialized
MySessionComponentBase.UpdateOnPause
MySessionComponentBase.IsServerOnly
MySessionComponentBase.Definition
MySessionComponentBase.IsRequiredByGame
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MySessionComponentDescriptor]
[StaticEventOwner]
public class MyFloatingObjects : MySessionComponentBase, IMyUserInputComponent

Constructors

MyFloatingObjects()

Declaration
public MyFloatingObjects()

Properties

Dependencies

Declaration
public override Type[] Dependencies { get; }
Property Value
Type Description
System.Type[]
Overrides
MySessionComponentBase.Dependencies

FloatingBagsCount

Declaration
public static int FloatingBagsCount { get; }
Property Value
Type Description
System.Int32

FloatingItemCount

Declaration
public static int FloatingItemCount { get; }
Property Value
Type Description
System.Int32

FloatingOreCount

Declaration
public static int FloatingOreCount { get; }
Property Value
Type Description
System.Int32

Methods

AddFloatingObjectAmount(MyFloatingObject, MyFixedPoint)

Declaration
public static void AddFloatingObjectAmount(MyFloatingObject obj, MyFixedPoint amount)
Parameters
Type Name Description
MyFloatingObject obj
VRage.MyFixedPoint amount

ChangeObjectBuilder(MyComponentDefinition, MyObjectBuilder_EntityBase)

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

Declaration
public static MyObjectBuilder_FloatingObject ChangeObjectBuilder(MyComponentDefinition componentDef, MyObjectBuilder_EntityBase entityOb)
Parameters
Type Name Description
MyComponentDefinition componentDef
MyObjectBuilder_EntityBase entityOb
Returns
Type Description
MyObjectBuilder_FloatingObject

EnqueueCargoContainerBagSpawn(Action)

Declaration
public static void EnqueueCargoContainerBagSpawn(Action action)
Parameters
Type Name Description
System.Action action

EnqueueInventoryItemSpawn(MyPhysicalInventoryItem, BoundingBoxD, Vector3D)

Declaration
public static void EnqueueInventoryItemSpawn(MyPhysicalInventoryItem inventoryItem, BoundingBoxD boundingBox, Vector3D inheritedVelocity)
Parameters
Type Name Description
MyPhysicalInventoryItem inventoryItem
BoundingBoxD boundingBox
Vector3D inheritedVelocity

LoadData()

Declaration
public override void LoadData()
Overrides
MySessionComponentBase.LoadData()

ReduceCargoBags()

Declaration
public static void ReduceCargoBags()

ReduceFloatingObjects()

Declaration
public static void ReduceFloatingObjects()

RemoveFloatingObject(MyFloatingObject)

Declaration
public static void RemoveFloatingObject(MyFloatingObject obj)
Parameters
Type Name Description
MyFloatingObject obj

RemoveFloatingObject(MyFloatingObject, Boolean)

Declaration
public static void RemoveFloatingObject(MyFloatingObject obj, bool sync)
Parameters
Type Name Description
MyFloatingObject obj
System.Boolean sync

RemoveInventoryBag(MyCargoContainerInventoryBagEntity)

Declaration
public static void RemoveInventoryBag(MyCargoContainerInventoryBagEntity obj)
Parameters
Type Name Description
MyCargoContainerInventoryBagEntity obj

RemoveInventoryBag(MyCargoContainerInventoryBagEntity, Boolean)

Declaration
public static void RemoveInventoryBag(MyCargoContainerInventoryBagEntity obj, bool sync)
Parameters
Type Name Description
MyCargoContainerInventoryBagEntity obj
System.Boolean sync

RequestSpawnCreative(MyObjectBuilder_FloatingObject)

Players are allowed to spawn any object in creative

Declaration
public static void RequestSpawnCreative(MyObjectBuilder_FloatingObject obj)
Parameters
Type Name Description
MyObjectBuilder_FloatingObject obj

Spawn(MyPhysicalItemDefinition, Vector3D, Vector3D, Vector3D, Int32, Single)

Declaration
public static void Spawn(MyPhysicalItemDefinition itemDefinition, Vector3D translation, Vector3D forward, Vector3D up, int amount = 1, float scale = 1F)
Parameters
Type Name Description
MyPhysicalItemDefinition itemDefinition
Vector3D translation
Vector3D forward
Vector3D up
System.Int32 amount
System.Single scale

Spawn(MyPhysicalInventoryItem, BoundingSphereD, MyPhysicsComponentBase, MyVoxelMaterialDefinition, Action<MyEntity>)

Declaration
public static void Spawn(MyPhysicalInventoryItem item, BoundingSphereD sphere, MyPhysicsComponentBase motionInheritedFrom, MyVoxelMaterialDefinition voxelMaterial, Action<MyEntity> OnDone)
Parameters
Type Name Description
MyPhysicalInventoryItem item
BoundingSphereD sphere
MyPhysicsComponentBase motionInheritedFrom
MyVoxelMaterialDefinition voxelMaterial
System.Action<MyEntity> OnDone

Spawn(MyPhysicalInventoryItem, MatrixD, MyPhysicsComponentBase, Action<MyEntity>)

Declaration
public static void Spawn(MyPhysicalInventoryItem item, MatrixD worldMatrix, MyPhysicsComponentBase motionInheritedFrom, Action<MyEntity> completionCallback)
Parameters
Type Name Description
MyPhysicalInventoryItem item
MatrixD worldMatrix
MyPhysicsComponentBase motionInheritedFrom
System.Action<MyEntity> completionCallback

Spawn(MyPhysicalInventoryItem, Vector3D, Vector3D, Vector3D, MyPhysicsComponentBase, Action<MyEntity>)

Declaration
public static void Spawn(MyPhysicalInventoryItem item, Vector3D position, Vector3D forward, Vector3D up, MyPhysicsComponentBase motionInheritedFrom = null, Action<MyEntity> completionCallback = null)
Parameters
Type Name Description
MyPhysicalInventoryItem item
Vector3D position
Vector3D forward
Vector3D up
MyPhysicsComponentBase motionInheritedFrom
System.Action<MyEntity> completionCallback

UpdateAfterSimulation()

Declaration
public override void UpdateAfterSimulation()
Overrides
MySessionComponentBase.UpdateAfterSimulation()
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾