Show / Hide Table of Contents

Class MyUseObjectsComponentBase

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyUseObjectsComponentBase
MyUseObjectsComponent
Inherited Members
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: VRage.Game.Components
Assembly: VRage.Game.dll
Syntax
[MyComponentType]
public abstract class MyUseObjectsComponentBase : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase

Constructors

MyUseObjectsComponentBase()

Declaration
protected MyUseObjectsComponentBase()

Fields

m_detectors

Declaration
protected Dictionary<string, List<Matrix>> m_detectors
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<Matrix>>

Properties

ComponentTypeDebugString

Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type Description
System.String
Overrides
MyEntityComponentBase.ComponentTypeDebugString

DetectorPhysics

Declaration
public abstract MyPhysicsComponentBase DetectorPhysics { get; protected set; }
Property Value
Type Description
MyPhysicsComponentBase

Methods

AddDetector(String, Matrix)

Declaration
public abstract uint AddDetector(string name, Matrix matrix)
Parameters
Type Name Description
System.String name
Matrix matrix
Returns
Type Description
System.UInt32

ClearPhysics()

Declaration
public virtual void ClearPhysics()

GetDetectors(String)

Declaration
public ListReader<Matrix> GetDetectors(string detectorName)
Parameters
Type Name Description
System.String detectorName
Returns
Type Description
ListReader<Matrix>

GetDetectorTransformation(IMyUseObject)

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

GetInteractiveObject(String)

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

GetInteractiveObject(UInt32)

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

GetInteractiveObjects<T>(List<T>)

Declaration
public abstract 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

LoadDetectorsFromModel()

Declaration
public abstract void LoadDetectorsFromModel()

OnAddedToScene()

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

OnBeforeRemovedFromContainer()

Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
MyEntityComponentBase.OnBeforeRemovedFromContainer()

OnRemovedFromScene()

Declaration
public override void OnRemovedFromScene()
Overrides
MyComponentBase.OnRemovedFromScene()

PositionChanged(MyPositionComponentBase)

Declaration
public abstract void PositionChanged(MyPositionComponentBase obj)
Parameters
Type Name Description
MyPositionComponentBase obj

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

Declaration
public virtual 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

RaycastDetector(IMyUseObject, Vector3D, Vector3D, out Single)

Declaration
public abstract 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

RaycastDetectors(Vector3D, Vector3D)

Declaration
public string RaycastDetectors(Vector3D worldFrom, Vector3D worldTo)
Parameters
Type Name Description
Vector3D worldFrom
Vector3D worldTo
Returns
Type Description
System.String

RaycastDetectors(Vector3D, Vector3D, out Single)

Determine whether the given ray intersects any detector. If so, returns the parametric value of the point of first intersection. PARAMATER IS NOT DISTANCE!

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

RecreatePhysics()

Declaration
public abstract void RecreatePhysics()

RemoveDetector(UInt32)

Declaration
public abstract void RemoveDetector(uint id)
Parameters
Type Name Description
System.UInt32 id

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
☀
☾