Space Engineers
Public Member Functions | Static Public Attributes | Properties | List of all members
Sandbox.Game.EntityComponents.MyModelComponent Class Reference
Inheritance diagram for Sandbox.Game.EntityComponents.MyModelComponent:
VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

override void Init (MyComponentDefinitionBase definition)
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
void InitEntity ()
 This calls Refresh Models on Entity, this should be later handled by Render Component and Physics Component after receiving the "ModelChanged" entity event 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...
 

Static Public Attributes

static MyStringHash ModelChanged = MyStringHash.GetOrCompute("ModelChanged")
 

Properties

MyModelComponentDefinition Definition [get]
 
MyModel Model [get]
 
MyModel ModelCollision [get]
 
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

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

Detailed Description

Definition at line 22 of file MyModelComponent.cs.

Member Function Documentation

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

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 46 of file MyModelComponent.cs.

void Sandbox.Game.EntityComponents.MyModelComponent.InitEntity ( )
inline

This calls Refresh Models on Entity, this should be later handled by Render Component and Physics Component after receiving the "ModelChanged" entity event

Definition at line 70 of file MyModelComponent.cs.

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

Gets called after the container of this component changes

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 54 of file MyModelComponent.cs.

Member Data Documentation

MyStringHash Sandbox.Game.EntityComponents.MyModelComponent.ModelChanged = MyStringHash.GetOrCompute("ModelChanged")
static

Definition at line 24 of file MyModelComponent.cs.

Property Documentation

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

Definition at line 41 of file MyModelComponent.cs.

MyModelComponentDefinition Sandbox.Game.EntityComponents.MyModelComponent.Definition
get

Definition at line 26 of file MyModelComponent.cs.

MyModel Sandbox.Game.EntityComponents.MyModelComponent.Model
get

Definition at line 29 of file MyModelComponent.cs.

MyModel Sandbox.Game.EntityComponents.MyModelComponent.ModelCollision
get

Definition at line 35 of file MyModelComponent.cs.


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