VRage.Game.Components
MyComponentBase
Assembly: VRage.Game.dll
public abstract class MyComponentBase: IMyComponentBase
Properties
| Member | Description |
|---|---|
| ContainerBase | This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. |
| FailedOnSceneAdd | |
| RemoveExistingComponentOnNewInsert | |
| ContainerBase | Inherited from IMyComponentBase |
| RemoveExistingComponentOnNewInsert | Inherited from IMyComponentBase |
Methods
| Member | Description |
|---|---|
| Deserialize(MyObjectBuilder_ComponentBase) | |
| GetAs |
|
| Init(MyComponentDefinitionBase) | |
| IsSerialized() | Tells the component container serializer whether this component should be saved |
| OnAddedToContainer() | Gets called after the container of this component changes |
| OnAddedToScene() | CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! |
| OnBeforeRemovedFromContainer() | Gets called before the removal of this component from a container |
| OnRemovedFromScene() | CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! |
| Serialize(bool) | |
| SetContainer(IMyComponentContainer) | 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. |
| Deserialize(MyObjectBuilder_ComponentBase) | Inherited from IMyComponentBase |
| GetAs |
Inherited from IMyComponentBase |
| Init(MyComponentDefinitionBase) | Inherited from IMyComponentBase |
| IsSerialized() | Inherited from IMyComponentBase |
| OnAddedToContainer() | Inherited from IMyComponentBase |
| OnAddedToScene() | Inherited from IMyComponentBase |
| OnBeforeRemovedFromContainer() | Inherited from IMyComponentBase |
| OnRemovedFromScene() | Inherited from IMyComponentBase |
| Serialize(bool) | Inherited from IMyComponentBase |
| SetContainer(IMyComponentContainer) | Inherited from IMyComponentBase |
Implements:
Inheritors: