Space Engineers
Classes | Public Member Functions | Properties | List of all members
Sandbox.Game.Components.MyUseObjectsComponent Class Reference
Inheritance diagram for Sandbox.Game.Components.MyUseObjectsComponent:
VRage.Game.Components.MyUseObjectsComponentBase VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

override void LoadDetectorsFromModel ()
 
override void RemoveDetector (uint id)
 
override uint AddDetector (string name, Matrix dummyMatrix)
 
void SetUseObjectIDs (uint renderId, int instanceId)
 
override void RecreatePhysics ()
 
override void PositionChanged (MyPositionComponentBase obj)
 
override IMyUseObject RaycastDetectors (Vector3D worldFrom, Vector3D worldTo, out float parameter)
 Determine whether the given ray intersects any detector. If so, returns the parametric value of the point of first intersection. PARAMATER IS NOT DISTANCE! More...
 
override IMyUseObject GetInteractiveObject (uint shapeKey)
 
override IMyUseObject GetInteractiveObject (string detectorName)
 
override void GetInteractiveObjects< T > (List< T > objects)
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
override bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 
override MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override void Deserialize (VRage.Game.ObjectBuilders.ComponentSystem.MyObjectBuilder_ComponentBase builder)
 
override void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
override void Init (MyComponentDefinitionBase definition)
 
- Public Member Functions inherited from VRage.Game.Components.MyUseObjectsComponentBase
string RaycastDetectors (Vector3 worldFrom, Vector3 worldTo)
 
ListReader< MatrixGetDetectors (string detectorName)
 
virtual void ClearPhysics ()
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
override void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
override void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void Deserialize (MyObjectBuilder_ComponentBase builder)
 

Properties

override MyPhysicsComponentBase DetectorPhysics [get, protected set]
 
- Properties inherited from VRage.Game.Components.MyUseObjectsComponentBase
abstract MyPhysicsComponentBase DetectorPhysics [get, protected set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Protected Attributes inherited from VRage.Game.Components.MyUseObjectsComponentBase
Dictionary< string, List< Matrix > > m_detectors = new Dictionary<string, List<Matrix>>()
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 23 of file MyUseObjectsComponent.cs.

Member Function Documentation

override uint Sandbox.Game.Components.MyUseObjectsComponent.AddDetector ( string  name,
Matrix  dummyMatrix 
)
inlinevirtual
override void Sandbox.Game.Components.MyUseObjectsComponent.Deserialize ( VRage.Game.ObjectBuilders.ComponentSystem.MyObjectBuilder_ComponentBase  builder)
inline

Definition at line 327 of file MyUseObjectsComponent.cs.

override IMyUseObject Sandbox.Game.Components.MyUseObjectsComponent.GetInteractiveObject ( uint  shapeKey)
inlinevirtual
override IMyUseObject Sandbox.Game.Components.MyUseObjectsComponent.GetInteractiveObject ( string  detectorName)
inlinevirtual
override void Sandbox.Game.Components.MyUseObjectsComponent.GetInteractiveObjects< T > ( List< T >  objects)
inlinevirtual
override void Sandbox.Game.Components.MyUseObjectsComponent.Init ( MyComponentDefinitionBase  definition)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 365 of file MyUseObjectsComponent.cs.

override bool Sandbox.Game.Components.MyUseObjectsComponent.IsSerialized ( )
inlinevirtual

Tells the component container serializer whether this component should be saved

Returns

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 301 of file MyUseObjectsComponent.cs.

override void Sandbox.Game.Components.MyUseObjectsComponent.LoadDetectorsFromModel ( )
inlinevirtual
override void Sandbox.Game.Components.MyUseObjectsComponent.OnAddedToScene ( )
inlinevirtual

CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already!

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 333 of file MyUseObjectsComponent.cs.

override void Sandbox.Game.Components.MyUseObjectsComponent.OnBeforeRemovedFromContainer ( )
inlinevirtual

Gets called before the removal of this component from a container

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 290 of file MyUseObjectsComponent.cs.

override void Sandbox.Game.Components.MyUseObjectsComponent.PositionChanged ( MyPositionComponentBase  obj)
inlinevirtual
override IMyUseObject Sandbox.Game.Components.MyUseObjectsComponent.RaycastDetectors ( Vector3D  worldFrom,
Vector3D  worldTo,
out float  parameter 
)
inlinevirtual

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

Implements VRage.Game.Components.MyUseObjectsComponentBase.

Definition at line 236 of file MyUseObjectsComponent.cs.

override void Sandbox.Game.Components.MyUseObjectsComponent.RecreatePhysics ( )
inlinevirtual
override void Sandbox.Game.Components.MyUseObjectsComponent.RemoveDetector ( uint  id)
inlinevirtual
override MyObjectBuilder_ComponentBase Sandbox.Game.Components.MyUseObjectsComponent.Serialize ( bool  copy = false)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 306 of file MyUseObjectsComponent.cs.

void Sandbox.Game.Components.MyUseObjectsComponent.SetUseObjectIDs ( uint  renderId,
int  instanceId 
)
inline

Definition at line 170 of file MyUseObjectsComponent.cs.

Property Documentation

override MyPhysicsComponentBase Sandbox.Game.Components.MyUseObjectsComponent.DetectorPhysics
getprotected set

Definition at line 54 of file MyUseObjectsComponent.cs.


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