This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.Components.MyComponentBase
Malware edited this page Dec 21, 2018
·
31 revisions
← Index
Namespace: VRage.Game.Components
Assembly: VRage.Game.dll
| Member | Description |
|---|---|
MyComponentContainer ContainerBase |
This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. |
| Member | Description |
|---|---|
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. |
T GetAs<T>() |
|
void OnAddedToContainer() |
Gets called after the container of this component changes |
void OnBeforeRemovedFromContainer() |
Gets called before the removal of this component from a container |
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! |
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! |
MyObjectBuilder_ComponentBase Serialize(bool copy) |
|
void Deserialize(MyObjectBuilder_ComponentBase builder) |
|
void Init(MyComponentDefinitionBase definition) |
|
bool IsSerialized() |
Tells the component container serializer whether this component should be saved |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!