Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.Components.MyComponentBase

Malware edited this page Dec 21, 2018 · 31 revisions

Index #MyComponentBase Class Namespace: VRage.Game.Components
Assembly: VRage.Game.dll
###Properties

Member Description
MyComponentContainer ContainerBase
###Methods
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()
void OnBeforeRemovedFromContainer()
void OnAddedToScene()
void OnRemovedFromScene()
MyObjectBuilder_ComponentBase Serialize(bool copy)
void Deserialize(MyObjectBuilder_ComponentBase builder)
void Init(MyComponentDefinitionBase definition)
bool IsSerialized()

Clone this wiki locally