Class NetworkTimeSpanPropertySync<K>
Provides an abstraction to track changes on a Time
Inheritance
Implements
Inherited Members
Namespace: Evergine.Networking.Components
Assembly: Evergine.Networking.dll
Syntax
public abstract class NetworkTimeSpanPropertySync<K> : NetworkPropertySync<K, TimeSpan>, IDependencyObject where K : struct, IConvertible
Type Parameters
Properties
HighPrecision
Gets or sets a value indicating whether the Time
Declaration
[RenderProperty(Tooltip = "Indicates whether the TimeSpan will be stored using high precision (ticks) or not (milliseconds)")]
public bool HighPrecision { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
High precision allows the full Time
Methods
ReadValue(NetworkPropertiesTable)
Defines a delegate to read the value from the player's Network
Declaration
protected override TimeSpan ReadValue(NetworkPropertiesTable propertiesTable)
Parameters
Type | Name | Description |
---|---|---|
Network |
propertiesTable | The properties table that contains the player's custom properties. |
Returns
Type | Description |
---|---|
Time |
The property value. |
Overrides
WriteValue(NetworkPropertiesTable, TimeSpan)
Defines a delegate to write the value in the player's Network
Declaration
protected override void WriteValue(NetworkPropertiesTable propertiesTable, TimeSpan value)
Parameters
Type | Name | Description |
---|---|---|
Network |
propertiesTable | The properties table that contains the player's custom properties. |
Time |
value | The value to write. |