Class NetworkFloatPropertySync<K>
Provides an abstraction to track changes on a float property contained in a NetworkPropertiesTable. A NetworkPropertiesTable component is needed in the same entity or any of its parents.
Inheritance
NetworkFloatPropertySync<K>
Implements
Inherited Members
Namespace: Evergine.Networking.Components
Assembly: Evergine.Networking.dll
Syntax
public abstract class NetworkFloatPropertySync<K> : NetworkPropertySync<K, float>, IDependencyObject where K : struct, IConvertible
Type Parameters
Name | Description |
---|---|
K |
Methods
ReadValue(NetworkPropertiesTable)
Defines a delegate to read the value from the player's NetworkPropertiesTable.
Declaration
protected override float ReadValue(NetworkPropertiesTable propertiesTable)
Parameters
Type | Name | Description |
---|---|---|
NetworkPropertiesTable | propertiesTable | The properties table that contains the player's custom properties. |
Returns
Type | Description |
---|---|
float | The property value. |
Overrides
WriteValue(NetworkPropertiesTable, float)
Defines a delegate to write the value in the player's NetworkPropertiesTable.
Declaration
protected override void WriteValue(NetworkPropertiesTable propertiesTable, float value)
Parameters
Type | Name | Description |
---|---|---|
NetworkPropertiesTable | propertiesTable | The properties table that contains the player's custom properties. |
float | value | The value to write. |