Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Events | List of all members
VRage.Sync.SyncBase Class Referenceabstract
Inheritance diagram for VRage.Sync.SyncBase:
VRage.Library.Collections.IBitSerializable VRage.Sync.Sync< T >

Public Member Functions

 SyncBase (Type valueType, int id, MySerializeInfo serializeInfo)
 
abstract SyncBase Clone (int newId)
 
abstract bool Serialize (BitStream stream, bool validate)
 When reading, returns false when validation was required and failed, otherwise true. More...
 

Static Public Member Functions

static implicit operator BitReaderWriter (SyncBase sync)
 

Public Attributes

readonly int Id
 
readonly Type ValueType
 
readonly MySerializeInfo SerializeInfo
 

Protected Member Functions

void RaiseValueChanged ()
 

Static Protected Member Functions

static void CopyValueChanged (SyncBase from, SyncBase to)
 

Events

Action< SyncBaseValueChanged
 ValueChanged event is raised when value is set locally (settings Value property) or remotely (through deserialization). When validation fails, value is not changed and ValueChanged is not raised. More...
 

Detailed Description

Definition at line 9 of file Sync.cs.

Constructor & Destructor Documentation

VRage.Sync.SyncBase.SyncBase ( Type  valueType,
int  id,
MySerializeInfo  serializeInfo 
)
inline

Definition at line 24 of file Sync.cs.

Member Function Documentation

abstract SyncBase VRage.Sync.SyncBase.Clone ( int  newId)
pure virtual

Implemented in VRage.Sync.Sync< T >.

static void VRage.Sync.SyncBase.CopyValueChanged ( SyncBase  from,
SyncBase  to 
)
inlinestaticprotected

Definition at line 47 of file Sync.cs.

static implicit VRage.Sync.SyncBase.operator BitReaderWriter ( SyncBase  sync)
inlinestatic

Definition at line 52 of file Sync.cs.

void VRage.Sync.SyncBase.RaiseValueChanged ( )
inlineprotected

Definition at line 38 of file Sync.cs.

abstract bool VRage.Sync.SyncBase.Serialize ( BitStream  stream,
bool  validate 
)
pure virtual

When reading, returns false when validation was required and failed, otherwise true.

Implements VRage.Library.Collections.IBitSerializable.

Implemented in VRage.Sync.Sync< T >.

Member Data Documentation

readonly int VRage.Sync.SyncBase.Id

Definition at line 11 of file Sync.cs.

readonly MySerializeInfo VRage.Sync.SyncBase.SerializeInfo

Definition at line 14 of file Sync.cs.

readonly Type VRage.Sync.SyncBase.ValueType

Definition at line 12 of file Sync.cs.

Event Documentation

Action<SyncBase> VRage.Sync.SyncBase.ValueChanged

ValueChanged event is raised when value is set locally (settings Value property) or remotely (through deserialization). When validation fails, value is not changed and ValueChanged is not raised.

Definition at line 21 of file Sync.cs.


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