Space Engineers
Public Member Functions | Properties | List of all members
Sandbox.Game.EntityComponents.MyCasterComponent Class Reference

Component used for finding object by casting. It is possible to create this component with different types of casting: Box, Raycast, Shape More...

Inheritance diagram for Sandbox.Game.EntityComponents.MyCasterComponent:
VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

 MyCasterComponent (MyDrillSensorBase caster)
 
override void Init (MyComponentDefinitionBase definition)
 
void OnWorldPosChanged (ref MatrixD newTransform)
 
void SetPointOfReference (Vector3D pointOfRef)
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container 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 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...
 
virtual 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...
 
virtual MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
virtual void Deserialize (MyObjectBuilder_ComponentBase builder)
 
virtual bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 

Properties

override string ComponentTypeDebugString [get]
 
MySlimBlock HitBlock [get]
 Gets block that is hit by a raycaster. More...
 
MyCubeGrid HitCubeGrid [get]
 
Vector3D HitPosition [get]
 
IMyDestroyableObject HitDestroyableObj [get]
 
MyFloatingObject HitFloatingObject [get]
 
MyEnvironmentSector HitEnvironmentSector [get]
 
int EnvironmentItem [get]
 
MyCharacter HitCharacter [get]
 
double DistanceToHitSq [get]
 
Vector3D PointOfReference [get]
 
MyDrillSensorBase Caster [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

- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Component used for finding object by casting. It is possible to create this component with different types of casting: Box, Raycast, Shape

Definition at line 26 of file MyCasterComponent.cs.

Constructor & Destructor Documentation

Sandbox.Game.EntityComponents.MyCasterComponent.MyCasterComponent ( MyDrillSensorBase  caster)
inline

Definition at line 90 of file MyCasterComponent.cs.

Member Function Documentation

override void Sandbox.Game.EntityComponents.MyCasterComponent.Init ( MyComponentDefinitionBase  definition)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 95 of file MyCasterComponent.cs.

override void Sandbox.Game.EntityComponents.MyCasterComponent.OnAddedToContainer ( )
inlinevirtual

Gets called after the container of this component changes

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 164 of file MyCasterComponent.cs.

override void Sandbox.Game.EntityComponents.MyCasterComponent.OnBeforeRemovedFromContainer ( )
inlinevirtual

Gets called before the removal of this component from a container

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 170 of file MyCasterComponent.cs.

void Sandbox.Game.EntityComponents.MyCasterComponent.OnWorldPosChanged ( ref MatrixD  newTransform)
inline

Definition at line 100 of file MyCasterComponent.cs.

void Sandbox.Game.EntityComponents.MyCasterComponent.SetPointOfReference ( Vector3D  pointOfRef)
inline

Definition at line 158 of file MyCasterComponent.cs.

Property Documentation

MyDrillSensorBase Sandbox.Game.EntityComponents.MyCasterComponent.Caster
get

Definition at line 205 of file MyCasterComponent.cs.

override string Sandbox.Game.EntityComponents.MyCasterComponent.ComponentTypeDebugString
get

Definition at line 178 of file MyCasterComponent.cs.

double Sandbox.Game.EntityComponents.MyCasterComponent.DistanceToHitSq
get

Definition at line 201 of file MyCasterComponent.cs.

int Sandbox.Game.EntityComponents.MyCasterComponent.EnvironmentItem
get

Definition at line 197 of file MyCasterComponent.cs.

MySlimBlock Sandbox.Game.EntityComponents.MyCasterComponent.HitBlock
get

Gets block that is hit by a raycaster.

Definition at line 185 of file MyCasterComponent.cs.

MyCharacter Sandbox.Game.EntityComponents.MyCasterComponent.HitCharacter
get

Definition at line 199 of file MyCasterComponent.cs.

MyCubeGrid Sandbox.Game.EntityComponents.MyCasterComponent.HitCubeGrid
get

Definition at line 187 of file MyCasterComponent.cs.

IMyDestroyableObject Sandbox.Game.EntityComponents.MyCasterComponent.HitDestroyableObj
get

Definition at line 191 of file MyCasterComponent.cs.

MyEnvironmentSector Sandbox.Game.EntityComponents.MyCasterComponent.HitEnvironmentSector
get

Definition at line 195 of file MyCasterComponent.cs.

MyFloatingObject Sandbox.Game.EntityComponents.MyCasterComponent.HitFloatingObject
get

Definition at line 193 of file MyCasterComponent.cs.

Vector3D Sandbox.Game.EntityComponents.MyCasterComponent.HitPosition
get

Definition at line 189 of file MyCasterComponent.cs.

Vector3D Sandbox.Game.EntityComponents.MyCasterComponent.PointOfReference
get

Definition at line 203 of file MyCasterComponent.cs.


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