Space Engineers
|
Public Types | |
enum | TriggerType { TriggerType.AABB, TriggerType.Sphere } |
Public Member Functions | |
MyTriggerComponent (TriggerType type, uint updateFrequency=300) | |
MyTriggerComponent () | |
override MyObjectBuilder_ComponentBase | Serialize (bool copy=false) |
override void | Deserialize (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 | OnBeforeRemovedFromContainer () |
Gets called before the removal of this component from a container More... | |
override void | OnAddedToContainer () |
Gets called after the container of this component changes More... | |
void | Update () |
virtual void | Dispose () |
Override for custom trigger disposal before removing. More... | |
virtual void | DebugDraw () |
override bool | IsSerialized () |
Tells the component container serializer whether this component should be saved More... | |
bool | Contains (Vector3D point) |
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 | 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 | |
Vector3D | DefaultTranslation = Vector3D.Zero |
Protected Member Functions | |
virtual void | UpdateInternal () |
Override this function to set custom update behaviour. Call base at first because it queries objects if DoQuery is set. More... | |
virtual bool | QueryEvaluator (MyEntity entity) |
Override to discard query results of your choice. More... | |
Protected Attributes | |
TriggerType | m_triggerType |
BoundingBoxD | m_AABB |
BoundingSphereD | m_boundingSphere |
Properties | |
bool | DoQuery [get, set] |
List< MyEntity > | QueryResult [get] |
uint | UpdateFrequency [get, set] |
virtual bool | Enabled [get, protected set] |
override string | ComponentTypeDebugString [get] |
Color | CustomDebugColor [get, set] |
Vector3D | Center [get] |
Trigger BB center position. More... | |
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< MyEntityComponentBase > | OnAfterAddedToContainer |
Action< MyEntityComponentBase > | BeforeRemovedFromContainer |
Definition at line 15 of file MyTriggerComponent.cs.
Enumerator | |
---|---|
AABB | |
Sphere |
Definition at line 17 of file MyTriggerComponent.cs.
|
inline |
Definition at line 62 of file MyTriggerComponent.cs.
|
inline |
Definition at line 71 of file MyTriggerComponent.cs.
|
inline |
Definition at line 257 of file MyTriggerComponent.cs.
|
inlinevirtual |
Definition at line 219 of file MyTriggerComponent.cs.
|
inlinevirtual |
Reimplemented from VRage.Game.Components.MyComponentBase.
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 94 of file MyTriggerComponent.cs.
|
inlinevirtual |
Override for custom trigger disposal before removing.
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 214 of file MyTriggerComponent.cs.
|
inlinevirtual |
Tells the component container serializer whether this component should be saved
Reimplemented from VRage.Game.Components.MyComponentBase.
Definition at line 252 of file MyTriggerComponent.cs.
|
inlinevirtual |
Gets called after the container of this component changes
Reimplemented from VRage.Game.Components.MyComponentBase.
Definition at line 121 of file MyTriggerComponent.cs.
|
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.
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 108 of file MyTriggerComponent.cs.
|
inlinevirtual |
Gets called before the removal of this component from a container
Reimplemented from VRage.Game.Components.MyComponentBase.
Definition at line 113 of file MyTriggerComponent.cs.
|
inlineprotectedvirtual |
Override to discard query results of your choice.
entity |
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent, and Sandbox.Game.EntityComponents.MyAreaTriggerComponent.
Definition at line 247 of file MyTriggerComponent.cs.
|
inlinevirtual |
Reimplemented from VRage.Game.Components.MyComponentBase.
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 80 of file MyTriggerComponent.cs.
|
inline |
Definition at line 150 of file MyTriggerComponent.cs.
|
inlineprotectedvirtual |
Override this function to set custom update behaviour. Call base at first because it queries objects if DoQuery is set.
Reimplemented in Sandbox.Game.Components.MyUpdateTriggerComponent, and Sandbox.Game.EntityComponents.MyAreaTriggerComponent.
Definition at line 162 of file MyTriggerComponent.cs.
Vector3D Sandbox.Game.Components.MyTriggerComponent.DefaultTranslation = Vector3D.Zero |
Definition at line 31 of file MyTriggerComponent.cs.
|
protected |
Definition at line 29 of file MyTriggerComponent.cs.
|
protected |
Definition at line 30 of file MyTriggerComponent.cs.
|
protected |
Definition at line 28 of file MyTriggerComponent.cs.
|
get |
Trigger BB center position.
Definition at line 45 of file MyTriggerComponent.cs.
|
get |
Definition at line 38 of file MyTriggerComponent.cs.
|
getset |
Definition at line 39 of file MyTriggerComponent.cs.
|
getsetprotected |
Definition at line 33 of file MyTriggerComponent.cs.
|
getprotected set |
Definition at line 37 of file MyTriggerComponent.cs.
|
getprotected |
Definition at line 34 of file MyTriggerComponent.cs.
|
getset |
Definition at line 36 of file MyTriggerComponent.cs.