Space Engineers
Public Member Functions | Public Attributes | List of all members
VRage.Game.Components.MyHierarchyComponent< TYPE > Class Template Reference
Inheritance diagram for VRage.Game.Components.MyHierarchyComponent< TYPE >:
VRage.Game.Components.MyHierarchyComponentBase VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

void QueryAABB (ref BoundingBoxD aabb, List< TYPE > result)
 
void QuerySphere (ref BoundingSphereD sphere, List< TYPE > result)
 
void QueryLine (ref LineD line, List< MyLineSegmentOverlapResult< TYPE >> result)
 
- Public Member Functions inherited from VRage.Game.Components.MyHierarchyComponentBase
MyHierarchyComponentBase GetTopMostParent (Type type=null)
 Return top most parent of this entity More...
 
void AddChild (IMyEntity child, bool preserveWorldPos=false, bool insertIntoSceneIfNeeded=true)
 Adds the child. More...
 
void AddChildWithMatrix (IMyEntity child, ref Matrix childLocalMatrix, bool insertIntoSceneIfNeeded=true)
 
void RemoveChild (IMyEntity child, bool preserveWorldPos=false)
 Adds the child. More...
 
void GetChildrenRecursive (HashSet< IMyEntity > result)
 
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 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 MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override void Deserialize (MyObjectBuilder_ComponentBase builder)
 
- 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 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 void Init (MyComponentDefinitionBase definition)
 

Public Attributes

Action< BoundingBoxD, List< TYPE > > QueryAABBImpl
 
Action< BoundingSphereD, List< TYPE > > QuerySphereImpl
 
Action< LineD, List< MyLineSegmentOverlapResult< TYPE > > > QueryLineImpl
 
- Public Attributes inherited from VRage.Game.Components.MyHierarchyComponentBase
long ChildId
 

Additional Inherited Members

- Protected Attributes inherited from VRage.Game.Components.MyHierarchyComponentBase
List< MyHierarchyComponentBasem_children = new List<MyHierarchyComponentBase>()
 
readonly List< MyEntitym_deserializedEntities = new List<MyEntity>()
 
- Properties inherited from VRage.Game.Components.MyHierarchyComponentBase
List< MyHierarchyComponentBaseChildren [get]
 Gets the childs collection. More...
 
MyHierarchyComponentBase Parent [get, 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...
 
- Events inherited from VRage.Game.Components.MyHierarchyComponentBase
Action< IMyEntityOnChildRemoved
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 7 of file MyHierarchyComponent.cs.

Member Function Documentation

void VRage.Game.Components.MyHierarchyComponent< TYPE >.QueryAABB ( ref BoundingBoxD  aabb,
List< TYPE >  result 
)
inline

Definition at line 13 of file MyHierarchyComponent.cs.

void VRage.Game.Components.MyHierarchyComponent< TYPE >.QueryLine ( ref LineD  line,
List< MyLineSegmentOverlapResult< TYPE >>  result 
)
inline

Definition at line 29 of file MyHierarchyComponent.cs.

void VRage.Game.Components.MyHierarchyComponent< TYPE >.QuerySphere ( ref BoundingSphereD  sphere,
List< TYPE >  result 
)
inline

Definition at line 21 of file MyHierarchyComponent.cs.

Member Data Documentation

Action<BoundingBoxD, List<TYPE> > VRage.Game.Components.MyHierarchyComponent< TYPE >.QueryAABBImpl

Definition at line 9 of file MyHierarchyComponent.cs.

Action<LineD, List<MyLineSegmentOverlapResult<TYPE> > > VRage.Game.Components.MyHierarchyComponent< TYPE >.QueryLineImpl

Definition at line 11 of file MyHierarchyComponent.cs.

Action<BoundingSphereD, List<TYPE> > VRage.Game.Components.MyHierarchyComponent< TYPE >.QuerySphereImpl

Definition at line 10 of file MyHierarchyComponent.cs.


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