Space Engineers
|
Public Member Functions | |
MyUpdateTriggerComponent () | |
override MyObjectBuilder_ComponentBase | Serialize (bool copy=false) |
override void | Deserialize (MyObjectBuilder_ComponentBase builder) |
MyUpdateTriggerComponent (int triggerSize) | |
override void | Dispose () |
Override for custom trigger disposal before removing. 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... | |
![]() | |
MyTriggerComponent (TriggerType type, uint updateFrequency=300) | |
MyTriggerComponent () | |
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 | DebugDraw () |
override bool | IsSerialized () |
Tells the component container serializer whether this component should be saved More... | |
bool | Contains (Vector3D point) |
![]() | |
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... | |
![]() | |
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) |
Protected Member Functions | |
override void | UpdateInternal () |
Override this function to set custom update behaviour. Call base at first because it queries objects if DoQuery is set. More... | |
override bool | QueryEvaluator (MyEntity entity) |
Override to discard query results of your choice. More... | |
Properties | |
int | Size [get, set] |
override string | ComponentTypeDebugString [get] |
![]() | |
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... | |
![]() | |
MyEntityComponentContainer | Container [get] |
IMyEntity | Entity [get] |
abstract string | ComponentTypeDebugString [get] |
Name of the base component type for debug purposes (e.g.: "Position") More... | |
![]() | |
MyComponentContainer | ContainerBase [get] |
This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More... | |
Additional Inherited Members | |
![]() | |
enum | TriggerType { TriggerType.AABB, TriggerType.Sphere } |
![]() | |
Vector3D | DefaultTranslation = Vector3D.Zero |
![]() | |
TriggerType | m_triggerType |
BoundingBoxD | m_AABB |
BoundingSphereD | m_boundingSphere |
![]() | |
static Action< MyEntityComponentBase > | OnAfterAddedToContainer |
Action< MyEntityComponentBase > | BeforeRemovedFromContainer |
Definition at line 12 of file MyUpdateTriggerComponent.cs.
|
inline |
Definition at line 30 of file MyUpdateTriggerComponent.cs.
|
inline |
Definition at line 74 of file MyUpdateTriggerComponent.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Components.MyTriggerComponent.
Definition at line 39 of file MyUpdateTriggerComponent.cs.
|
inlinevirtual |
Override for custom trigger disposal before removing.
Reimplemented from Sandbox.Game.Components.MyTriggerComponent.
Definition at line 166 of file MyUpdateTriggerComponent.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 Sandbox.Game.Components.MyTriggerComponent.
Definition at line 185 of file MyUpdateTriggerComponent.cs.
|
inlineprotectedvirtual |
Override to discard query results of your choice.
entity |
Reimplemented from Sandbox.Game.Components.MyTriggerComponent.
Definition at line 115 of file MyUpdateTriggerComponent.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Components.MyTriggerComponent.
Definition at line 32 of file MyUpdateTriggerComponent.cs.
|
inlineprotectedvirtual |
Override this function to set custom update behaviour. Call base at first because it queries objects if DoQuery is set.
Reimplemented from Sandbox.Game.Components.MyTriggerComponent.
Definition at line 79 of file MyUpdateTriggerComponent.cs.
|
get |
Definition at line 181 of file MyUpdateTriggerComponent.cs.
|
getset |
Definition at line 16 of file MyUpdateTriggerComponent.cs.