Show / Hide Table of Contents

Class MyUseObjectsComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyUseObjectsComponentBase
MyUseObjectsComponent
Inherited Members
MyUseObjectsComponentBase.m_detectors
MyUseObjectsComponentBase.RaycastDetectors(Vector3D, Vector3D)
MyUseObjectsComponentBase.GetDetectors(String)
MyUseObjectsComponentBase.ClearPhysics()
MyUseObjectsComponentBase.OnBeforeRemovedFromContainer()
MyUseObjectsComponentBase.OnRemovedFromScene()
MyUseObjectsComponentBase.ComponentTypeDebugString
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Components
Assembly: Sandbox.Game.dll
Syntax
[MyComponentBuilder]
public class MyUseObjectsComponent : MyUseObjectsComponentBase, IMyEntityComponentBase, IMyComponentBase

Constructors

MyUseObjectsComponent()

Declaration
public MyUseObjectsComponent()

Fields

DetectorInteractiveObjects

Declaration
public readonly Dictionary<uint, MyUseObjectsComponent.DetectorData> DetectorInteractiveObjects
Field Value
Type Description
System.Collections.Generic.Dictionary<System.UInt32, MyUseObjectsComponent.DetectorData>

Properties

DetectorPhysics

Declaration
public override MyPhysicsComponentBase DetectorPhysics { get; protected set; }
Property Value
Type Description
MyPhysicsComponentBase
Overrides
MyUseObjectsComponentBase.DetectorPhysics

Methods

AddDetector(String, Matrix)

Declaration
public override uint AddDetector(string name, Matrix dummyMatrix)
Parameters
Type Name Description
System.String name
Matrix dummyMatrix
Returns
Type Description
System.UInt32
Overrides
MyUseObjectsComponentBase.AddDetector(String, Matrix)

Deserialize(MyObjectBuilder_ComponentBase)

Declaration
public override void Deserialize(MyObjectBuilder_ComponentBase builder)
Parameters
Type Name Description
MyObjectBuilder_ComponentBase builder
Overrides
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)

GetDetectorTransformation(IMyUseObject)

Declaration
public override Nullable<MatrixD> GetDetectorTransformation(IMyUseObject useObject)
Parameters
Type Name Description
IMyUseObject useObject
Returns
Type Description
System.Nullable<MatrixD>
Overrides
MyUseObjectsComponentBase.GetDetectorTransformation(IMyUseObject)

GetInteractiveObject(String)

Declaration
public override IMyUseObject GetInteractiveObject(string detectorName)
Parameters
Type Name Description
System.String detectorName
Returns
Type Description
IMyUseObject
Overrides
MyUseObjectsComponentBase.GetInteractiveObject(String)

GetInteractiveObject(UInt32)

Declaration
public override IMyUseObject GetInteractiveObject(uint shapeKey)
Parameters
Type Name Description
System.UInt32 shapeKey
Returns
Type Description
IMyUseObject
Overrides
MyUseObjectsComponentBase.GetInteractiveObject(UInt32)

GetInteractiveObjects<T>(List<T>)

Declaration
public override void GetInteractiveObjects<T>(List<T> objects)
    where T : class, IMyUseObject
Parameters
Type Name Description
System.Collections.Generic.List<T> objects
Type Parameters
Name Description
T
Overrides
VRage.Game.Components.MyUseObjectsComponentBase.GetInteractiveObjects<T>(System.Collections.Generic.List<T>)

Init(MyComponentDefinitionBase)

Declaration
public override void Init(MyComponentDefinitionBase definition)
Parameters
Type Name Description
MyComponentDefinitionBase definition
Overrides
MyComponentBase.Init(MyComponentDefinitionBase)

IsSerialized()

Declaration
public override bool IsSerialized()
Returns
Type Description
System.Boolean
Overrides
MyComponentBase.IsSerialized()

LoadDetectorsFromModel()

Declaration
public override void LoadDetectorsFromModel()
Overrides
MyUseObjectsComponentBase.LoadDetectorsFromModel()

OnAddedToScene()

Declaration
public override void OnAddedToScene()
Overrides
MyUseObjectsComponentBase.OnAddedToScene()

PositionChanged(MyPositionComponentBase)

Declaration
public override void PositionChanged(MyPositionComponentBase obj)
Parameters
Type Name Description
MyPositionComponentBase obj
Overrides
MyUseObjectsComponentBase.PositionChanged(MyPositionComponentBase)

ProcessComponentToUseObjectsAndDistances(ref Dictionary<IMyUseObject, Tuple<Single, Object>>, Vector3D, Vector3, Object)

Declaration
public override void ProcessComponentToUseObjectsAndDistances(ref Dictionary<IMyUseObject, Tuple<float, object>> output, Vector3D from, Vector3 dir, object hit)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<IMyUseObject, System.Tuple<System.Single, System.Object>> output
Vector3D from
Vector3 dir
System.Object hit
Overrides
MyUseObjectsComponentBase.ProcessComponentToUseObjectsAndDistances(ref Dictionary<IMyUseObject, Tuple<Single, Object>>, Vector3D, Vector3, Object)

RaycastDetector(IMyUseObject, Vector3D, Vector3D, out Single)

Declaration
public override IMyUseObject RaycastDetector(IMyUseObject useObject, Vector3D worldFrom, Vector3D worldTo, out float parameter)
Parameters
Type Name Description
IMyUseObject useObject
Vector3D worldFrom
Vector3D worldTo
System.Single parameter
Returns
Type Description
IMyUseObject
Overrides
MyUseObjectsComponentBase.RaycastDetector(IMyUseObject, Vector3D, Vector3D, out Single)

RaycastDetectors(Vector3D, Vector3D, out Single)

Declaration
public override IMyUseObject RaycastDetectors(Vector3D worldFrom, Vector3D worldTo, out float parameter)
Parameters
Type Name Description
Vector3D worldFrom
Vector3D worldTo
System.Single parameter
Returns
Type Description
IMyUseObject
Overrides
MyUseObjectsComponentBase.RaycastDetectors(Vector3D, Vector3D, out Single)

RecreatePhysics()

Declaration
public override void RecreatePhysics()
Overrides
MyUseObjectsComponentBase.RecreatePhysics()

RemoveDetector(UInt32)

Declaration
public override void RemoveDetector(uint id)
Parameters
Type Name Description
System.UInt32 id
Overrides
MyUseObjectsComponentBase.RemoveDetector(UInt32)

Serialize(Boolean)

Declaration
public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_ComponentBase
Overrides
MyComponentBase.Serialize(Boolean)

SetUseObjectIDs(UInt32, Int32)

Declaration
public void SetUseObjectIDs(uint renderId, int instanceId)
Parameters
Type Name Description
System.UInt32 renderId
System.Int32 instanceId

Extension Methods

MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾