Space Engineers
Public Member Functions | Properties | List of all members
VRage.Game.Components.MyComponentBase Class Reference
Inheritance diagram for VRage.Game.Components.MyComponentBase:
VRage.Game.Components.MyEntityComponentBase Sandbox.Game.Components.MyCharacterSoundComponent Sandbox.Game.Components.MyEntityStatComponent Sandbox.Game.Components.MyTimerComponent Sandbox.Game.Components.MyTriggerComponent Sandbox.Game.Entities.Character.MyCharacterComponent Sandbox.Game.Entities.Inventory.MyTriggerAggregate Sandbox.Game.Entities.MyDataBroadcaster Sandbox.Game.Entities.MyDataReceiver Sandbox.Game.Entities.MyGravityProviderComponent Sandbox.Game.Entities.MyPlaceArea Sandbox.Game.Entities.MyWeaponSharedActionsComponentBase Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent Sandbox.Game.EntityComponents.MyAtmosphereDetectorComponent Sandbox.Game.EntityComponents.MyCasterComponent Sandbox.Game.EntityComponents.MyEntityInventorySpawnComponent Sandbox.Game.EntityComponents.MyEntityReferenceComponent Sandbox.Game.EntityComponents.MyEntityReverbDetectorComponent Sandbox.Game.EntityComponents.MyFractureComponentBase Sandbox.Game.EntityComponents.MyGridOwnershipComponentBase Sandbox.Game.EntityComponents.MyGridTargeting Sandbox.Game.EntityComponents.MyModelComponent Sandbox.Game.EntityComponents.MyResourceDistributorComponent Sandbox.Game.EntityComponents.MyShipSoundComponent Sandbox.Game.GameSystems.MyEntityThrustComponent VRage.Game.Components.MyAnimationControllerComponent VRage.Game.Components.MyGameLogicComponent VRage.Game.Components.MyHierarchyComponentBase VRage.Game.Components.MyModStorageComponentBase VRage.Game.Components.MyPhysicsComponentBase VRage.Game.Components.MyPositionComponentBase VRage.Game.Components.MyRenderComponentBase VRage.Game.Components.MyResourceSinkComponentBase VRage.Game.Components.MyResourceSourceComponentBase VRage.Game.Components.MyRespawnComponent VRage.Game.Components.MySyncComponentBase VRage.Game.Components.MyUseObjectsComponentBase VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent VRage.Game.Entity.MyInventoryBase

Public Member Functions

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 OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
virtual void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
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 void Init (MyComponentDefinitionBase definition)
 
virtual bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 

Properties

MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Detailed Description

Definition at line 5 of file MyComponentBase.cs.

Member Function Documentation

virtual void VRage.Game.Components.MyComponentBase.Deserialize ( MyObjectBuilder_ComponentBase  builder)
inlinevirtual
virtual T VRage.Game.Components.MyComponentBase.GetAs< T > ( )
inlinevirtual

Reimplemented in Sandbox.Game.Entities.MyCompositeGameLogicComponent.

Type Constraints
T :MyComponentBase 

Definition at line 43 of file MyComponentBase.cs.

virtual void VRage.Game.Components.MyComponentBase.Init ( MyComponentDefinitionBase  definition)
inlinevirtual
virtual bool VRage.Game.Components.MyComponentBase.IsSerialized ( )
inlinevirtual
virtual void VRage.Game.Components.MyComponentBase.OnAddedToContainer ( )
inlinevirtual

Gets called after the container of this component changes

Reimplemented in Sandbox.Engine.Physics.MyPhysicsBody, Sandbox.Game.GameSystems.MyEntityThrustComponent, Sandbox.Game.Components.MyCharacterSoundComponent, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Entities.Character.Components.MyCharacterRagdollComponent, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Entities.MyMeteor.MyMeteorGameLogic, Sandbox.Game.Components.MyCraftingComponentBlock, Sandbox.Game.Entities.Character.MyCharacterDetectorComponent, Sandbox.Game.Components.MyCraftingComponentBasic, Sandbox.Game.Entities.Debris.MyDebrisBase.MyDebrisBaseLogic, Sandbox.Game.Entities.Character.Components.MyInventorySpawnComponent, Sandbox.Game.EntityComponents.MyCasterComponent, Sandbox.Game.EntityComponents.MyEntityInventorySpawnComponent, Sandbox.Game.Components.MyRenderComponentCubeGrid, Sandbox.Game.Components.MyTriggerComponent, Sandbox.Game.Entities.MySphericalNaturalGravityComponent, Sandbox.Game.Components.MyTimerComponent, VRage.Game.Components.MyEntityComponentBase, Sandbox.Game.EntityComponents.MyFractureComponentBase, Sandbox.Game.EntityComponents.MyModelComponent, Sandbox.Game.Components.MyCharacterStatComponent, VRage.Game.Components.MyAnimationControllerComponent, Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock, VRage.Game.Components.MyPositionComponent, Sandbox.Game.Entities.MyPlaceArea, Sandbox.Game.Components.MyRenderComponentThrust, Sandbox.Game.Components.MyEntityGameLogic, Sandbox.Game.Components.MyRenderComponentSkinnedEntity, Sandbox.Game.EntityComponents.MyGridTargeting, Sandbox.Game.Components.MyRenderComponentPlanet, Sandbox.Game.Components.MyRenderComponentTextPanel, Sandbox.Game.EntityComponents.Renders.MyRenderComponentWheel, VRage.Game.Components.MyRespawnComponent, Sandbox.Game.Components.MyRenderComponentSensor, Sandbox.Game.Components.MyRenderComponentEngineerTool, Sandbox.Game.Components.MyRenderComponentVoxelMap, Sandbox.Game.Components.MyRenderComponentInventoryItem, Sandbox.Game.Components.MyRenderComponentFloatingObject, Sandbox.Game.Entities.Cube.MyRadioReceiver, Sandbox.Game.Components.MyRenderComponentAutomaticRifle, Sandbox.Game.Components.MyRenderComponentCubeBlock, Sandbox.Game.Components.MyRenderComponentSmallGatlingGun, Sandbox.Game.Components.MyRenderComponentReflectorLight, and SpaceEngineers.Game.EntityComponents.Renders.MyRenderComponentLargeTurret.

Definition at line 51 of file MyComponentBase.cs.

virtual void VRage.Game.Components.MyComponentBase.OnAddedToScene ( )
inlinevirtual
virtual void VRage.Game.Components.MyComponentBase.OnBeforeRemovedFromContainer ( )
inlinevirtual
virtual void VRage.Game.Components.MyComponentBase.OnRemovedFromScene ( )
inlinevirtual
virtual MyObjectBuilder_ComponentBase VRage.Game.Components.MyComponentBase.Serialize ( bool  copy = false)
inlinevirtual
virtual void VRage.Game.Components.MyComponentBase.SetContainer ( MyComponentContainer  container)
inlinevirtual

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.

Parameters
containerThe new container of the component

Definition at line 23 of file MyComponentBase.cs.

Property Documentation

MyComponentContainer VRage.Game.Components.MyComponentBase.ContainerBase
get

This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase.

Definition at line 13 of file MyComponentBase.cs.


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