Space Engineers
|
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... | |
Definition at line 5 of file MyComponentBase.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.MyInventory, Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Entities.Inventory.MyInventoryAggregate, Sandbox.Game.Components.MyCraftingComponentBlock, VRage.Game.Components.MyHierarchyComponentBase, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Components.MyCraftingComponentInteractive, Sandbox.Game.Components.MyTimerComponent, Sandbox.Game.Components.MyCraftingComponentBasic, Sandbox.Game.Entities.Inventory.MyTriggerAggregate, Sandbox.Game.EntityComponents.MyAreaTriggerComponent, Sandbox.Game.EntityComponents.MyModStorageComponent, Sandbox.Game.Components.MyTriggerComponent, Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock, VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent, VRage.Game.Entity.MyInventoryBase, and Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 81 of file MyComponentBase.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyCompositeGameLogicComponent.
T | : | MyComponentBase |
Definition at line 43 of file MyComponentBase.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Engine.Physics.MyPhysicsBody, Sandbox.Game.MyInventory, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Components.MyUseObjectsComponent, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Components.MyCraftingComponentBlock, Sandbox.Game.EntityComponents.MyEntityInventorySpawnComponent, Sandbox.Game.Components.MyTimerComponent, Sandbox.Game.EntityComponents.MyCasterComponent, Sandbox.Game.EntityComponents.MyModelComponent, Sandbox.Game.Components.MyCraftingComponentInteractive, and Sandbox.Game.Components.MyCraftingComponentBasic.
Definition at line 85 of file MyComponentBase.cs.
|
inlinevirtual |
Tells the component container serializer whether this component should be saved
Reimplemented in Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Components.MyUseObjectsComponent, Sandbox.Game.Components.MyCraftingComponentBlock, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Components.MyTriggerComponent, VRage.Game.Components.MyHierarchyComponentBase, Sandbox.Game.Components.MyCraftingComponentInteractive, Sandbox.Game.Entities.Character.Components.MyInventorySpawnComponent, Sandbox.Game.EntityComponents.MyEntityInventorySpawnComponent, VRage.Game.Entity.MyInventoryBase, Sandbox.Game.Components.MyTimerComponent, Sandbox.Game.EntityComponents.MyAreaTriggerComponent, Sandbox.Game.Components.MyCraftingComponentBasic, VRage.Game.Components.MyRespawnComponent, VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent, Sandbox.Game.EntityComponents.MyFractureComponentBase, Sandbox.Game.Entities.Inventory.MyTriggerAggregate, and Sandbox.Game.EntityComponents.MyModStorageComponent.
Definition at line 91 of file MyComponentBase.cs.
|
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.
|
inlinevirtual |
CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already!
Reimplemented in Sandbox.Engine.Physics.MyPhysicsBody, Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent, Sandbox.Game.Components.MyUseObjectsComponent, VRage.Game.Components.MyHierarchyComponentBase, Sandbox.Game.Components.MyUpdateTriggerComponent, Sandbox.Game.Entities.Inventory.MyTriggerAggregate, Sandbox.Game.Components.MyTriggerComponent, VRage.Game.Components.MyUseObjectsComponentBase, and VRage.Game.Components.MyRespawnComponent.
Definition at line 65 of file MyComponentBase.cs.
|
inlinevirtual |
Gets called before the removal of this component from a container
Reimplemented in Sandbox.Game.GameSystems.MyEntityThrustComponent, Sandbox.Game.Components.MyCharacterSoundComponent, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Components.MyCraftingComponentBlock, Sandbox.Game.Components.MyUseObjectsComponent, VRage.Game.Components.MyHierarchyComponentBase, Sandbox.Game.Entities.Character.Components.MyInventorySpawnComponent, Sandbox.Game.EntityComponents.MyEntityInventorySpawnComponent, Sandbox.Game.EntityComponents.MyCasterComponent, Sandbox.Game.Components.MyRenderComponentCubeGrid, Sandbox.Game.Entities.Character.Components.MyCharacterJetpackComponent, Sandbox.Game.Components.MyTimerComponent, Sandbox.Game.Components.MyTriggerComponent, VRage.Game.Components.MyUseObjectsComponentBase, Sandbox.Game.EntityComponents.MyFractureComponentBase, VRage.Game.Components.MyEntityComponentBase, Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock, Sandbox.Game.Components.MyCharacterStatComponent, VRage.Game.Components.MyAnimationControllerComponent, VRage.Game.Components.MyPositionComponent, Sandbox.Game.Entities.MyPlaceArea, VRage.Game.Components.MyRespawnComponent, Sandbox.Game.Components.MyRenderComponentThrust, Sandbox.Game.Components.MyRenderComponentPlanet, Sandbox.Game.Entities.Cube.MyRadioBroadcaster, and Sandbox.Game.Entities.Cube.MyRadioReceiver.
Definition at line 58 of file MyComponentBase.cs.
|
inlinevirtual |
CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene!
Reimplemented in Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent, Sandbox.Game.Entities.Character.MyCharacterDetectorComponent, Sandbox.Game.Entities.Inventory.MyTriggerAggregate, VRage.Game.Components.MyUseObjectsComponentBase, and VRage.Game.Components.MyRespawnComponent.
Definition at line 72 of file MyComponentBase.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.MyInventory, Sandbox.Game.Components.MyCraftingComponentBase, Sandbox.Game.Entities.Planet.MyPlanetEnvironmentComponent, VRage.Game.Components.MyPhysicsComponentBase, Sandbox.Game.Components.MyCraftingComponentBlock, Sandbox.Game.Entities.Inventory.MyInventoryAggregate, Sandbox.Game.Components.MyUseObjectsComponent, VRage.Game.Components.MyHierarchyComponentBase, Sandbox.Game.Components.MyCraftingComponentInteractive, Sandbox.Game.Components.MyEntityStatComponent, Sandbox.Game.Components.MyCraftingComponentBasic, Sandbox.Game.Components.MyTimerComponent, Sandbox.Game.EntityComponents.MyAreaTriggerComponent, Sandbox.Game.Entities.Inventory.MyTriggerAggregate, Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock, Sandbox.Game.Components.MyTriggerComponent, Sandbox.Game.EntityComponents.MyModStorageComponent, VRage.Game.Entity.MyInventoryBase, VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent, VRage.Game.Components.MyModStorageComponentBase, and Sandbox.Game.Components.MyUpdateTriggerComponent.
Definition at line 76 of file MyComponentBase.cs.
|
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.
container | The new container of the component |
Definition at line 23 of file MyComponentBase.cs.
|
get |
This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase.
Definition at line 13 of file MyComponentBase.cs.