Space Engineers
|
Public Member Functions | |
Sync (int id, MySerializeInfo serializeInfo) | |
override string | ToString () |
void | ValidateAndSet (T newValue) |
Validates the value and sets it (when valid). More... | |
override SyncBase | Clone (int newId) |
override bool | Serialize (BitStream stream, bool validate) |
When reading, returns false when validation was required and failed, otherwise true. More... | |
Public Member Functions inherited from VRage.Sync.SyncBase | |
SyncBase (Type valueType, int id, MySerializeInfo serializeInfo) | |
Static Public Member Functions | |
static implicit | operator T (Sync< T > sync) |
Static Public Member Functions inherited from VRage.Sync.SyncBase | |
static implicit | operator BitReaderWriter (SyncBase sync) |
Public Attributes | |
SyncValidate< T > | Validate |
Validate handler is raised on server after deserialization. More... | |
Public Attributes inherited from VRage.Sync.SyncBase | |
readonly int | Id |
readonly Type | ValueType |
readonly MySerializeInfo | SerializeInfo |
Static Public Attributes | |
static readonly MySerializer< T > | TypeSerializer = MyFactory.GetSerializer<T>() |
Properties | |
T | Value [get, set] |
Additional Inherited Members | |
Protected Member Functions inherited from VRage.Sync.SyncBase | |
void | RaiseValueChanged () |
Static Protected Member Functions inherited from VRage.Sync.SyncBase | |
static void | CopyValueChanged (SyncBase from, SyncBase to) |
Events inherited from VRage.Sync.SyncBase | |
Action< 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. More... | |
|
inline |
|
inlinevirtual |
Implements VRage.Sync.SyncBase.
|
inlinestatic |
|
inlinevirtual |
When reading, returns false when validation was required and failed, otherwise true.
Implements VRage.Sync.SyncBase.
|
inline |
|
inline |
|
static |
SyncValidate<T> VRage.Sync.Sync< T >.Validate |
|
getset |