Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent Class Reference
Inheritance diagram for VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent:
VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

override bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 
override MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override void Deserialize (MyObjectBuilder_ComponentBase builder)
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
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 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 void Init (MyComponentDefinitionBase definition)
 

Public Attributes

Action< long, long > OwnerChanged
 
Action< MyOwnershipShareModeEnumShareModeChanged
 

Properties

long OwnerId [get, set]
 
MyOwnershipShareModeEnum ShareMode [get, set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 14 of file MyEntityOwnershipComponent.cs.

Member Function Documentation

override void VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.Deserialize ( MyObjectBuilder_ComponentBase  builder)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 66 of file MyEntityOwnershipComponent.cs.

override bool VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.IsSerialized ( )
inlinevirtual

Tells the component container serializer whether this component should be saved

Returns

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 51 of file MyEntityOwnershipComponent.cs.

override MyObjectBuilder_ComponentBase VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.Serialize ( bool  copy = false)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 56 of file MyEntityOwnershipComponent.cs.

Member Data Documentation

Action<long, long> VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.OwnerChanged

Definition at line 22 of file MyEntityOwnershipComponent.cs.

Action<MyOwnershipShareModeEnum> VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.ShareModeChanged

Definition at line 23 of file MyEntityOwnershipComponent.cs.

Property Documentation

override string VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.ComponentTypeDebugString
get

Definition at line 78 of file MyEntityOwnershipComponent.cs.

long VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.OwnerId
getset

Definition at line 28 of file MyEntityOwnershipComponent.cs.

MyOwnershipShareModeEnum VRage.Game.Entity.EntityComponents.MyEntityOwnershipComponent.ShareMode
getset

Definition at line 39 of file MyEntityOwnershipComponent.cs.


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