Space Engineers
|
Public Member Functions | |
abstract string | GetValue (Guid guid) |
Gets a value from the Storage dictionary with the specified key. More... | |
abstract bool | TryGetValue (Guid guid, out string value) |
Trys to a value from the Storage dictionary with the specified key. More... | |
abstract void | SetValue (Guid guid, string value) |
Stores a value with the specified key into the Storage dictionary. More... | |
abstract bool | RemoveValue (Guid guid) |
Removes a value with the specified key from the Storage dictionary. More... | |
override MyObjectBuilder_ComponentBase | Serialize (bool copy=false) |
void | Add (KeyValuePair< Guid, string > item) |
void | Add (Guid key, string value) |
void | Clear () |
bool | Contains (KeyValuePair< Guid, string > item) |
bool | ContainsKey (Guid key) |
void | CopyTo (KeyValuePair< Guid, string >[] array, int arrayIndex) |
IEnumerator< KeyValuePair< Guid, string > > | GetEnumerator () |
bool | Remove (KeyValuePair< Guid, string > item) |
bool | Remove (Guid key) |
![]() | |
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... | |
![]() | |
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 | Deserialize (MyObjectBuilder_ComponentBase builder) |
virtual void | Init (MyComponentDefinitionBase definition) |
virtual bool | IsSerialized () |
Tells the component container serializer whether this component should be saved More... | |
Protected Attributes | |
IDictionary< Guid, string > | m_storageData = new Dictionary<Guid, string>() |
Properties | |
override string | ComponentTypeDebugString [get] |
string | this[Guid key] [get, set] |
int | Count [get] |
bool | IsReadOnly [get] |
ICollection< Guid > | Keys [get] |
ICollection< string > | Values [get] |
![]() | |
MyEntityComponentContainer | Container [get] |
IMyEntity | Entity [get] |
abstract string | ComponentTypeDebugString [get] |
Name of the base component type for debug purposes (e.g.: "Position") More... | |
![]() | |
MyComponentContainer | ContainerBase [get] |
This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More... | |
Additional Inherited Members | |
![]() | |
static Action< MyEntityComponentBase > | OnAfterAddedToContainer |
Action< MyEntityComponentBase > | BeforeRemovedFromContainer |
Definition at line 9 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 103 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 108 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 113 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 118 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 123 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 128 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 133 of file MyModStorageComponentBase.cs.
|
pure virtual |
Gets a value from the Storage dictionary with the specified key.
T |
guid |
This can throw exceptions
Implemented in Sandbox.Game.EntityComponents.MyModStorageComponent.
|
inline |
Definition at line 138 of file MyModStorageComponentBase.cs.
|
inline |
Definition at line 143 of file MyModStorageComponentBase.cs.
|
pure virtual |
Removes a value with the specified key from the Storage dictionary.
guid |
Implemented in Sandbox.Game.EntityComponents.MyModStorageComponent.
|
inlinevirtual |
Reimplemented from VRage.Game.Components.MyComponentBase.
Definition at line 50 of file MyModStorageComponentBase.cs.
|
pure virtual |
Stores a value with the specified key into the Storage dictionary.
T |
guid | |
value |
Implemented in Sandbox.Game.EntityComponents.MyModStorageComponent.
|
pure virtual |
Trys to a value from the Storage dictionary with the specified key.
T |
guid | |
value |
Implemented in Sandbox.Game.EntityComponents.MyModStorageComponent.
|
protected |
Definition at line 11 of file MyModStorageComponentBase.cs.
|
get |
Definition at line 14 of file MyModStorageComponentBase.cs.
|
get |
Definition at line 72 of file MyModStorageComponentBase.cs.
|
get |
Definition at line 80 of file MyModStorageComponentBase.cs.
|
get |
Definition at line 88 of file MyModStorageComponentBase.cs.
|
getset |
Definition at line 59 of file MyModStorageComponentBase.cs.
|
get |
Definition at line 96 of file MyModStorageComponentBase.cs.