NetworkedVarT Class |
[This is preliminary documentation and is subject to change.]
Namespace: MLAPI
[SerializableAttribute] public class NetworkedVar<T> : INetworkedVar
The NetworkedVarT type exposes the following members.
| Name | Description | |
|---|---|---|
| NetworkedVarT |
Creates a NetworkedVar with the default value and settings
| |
| NetworkedVarT(T) |
Creates a NetworkedVar with a custom value and the default settings
| |
| NetworkedVarT(NetworkedVarSettings) |
Creates a NetworkedVar with the default value and custom settings
| |
| NetworkedVarT(NetworkedVarSettings, T) |
Creates a NetworkedVar with a custom value and custom settings
|
| Name | Description | |
|---|---|---|
| isDirty |
Gets or sets wheter or not the variable needs to be delta synced
| |
| LastSyncedTime |
Gets the last time the variable was synced
| |
| Value |
The value of the NetworkedVar container
|
| Name | Description | |
|---|---|---|
| CanClientRead |
Gets wheter or not a specific client can read to the varaible
| |
| CanClientWrite |
Gets wheter or not a specific client can write to the varaible
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetChannel |
Returns the name of the channel to be used for syncing
| |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| IsDirty |
Gets wheter or not the container is dirty
| |
| MemberwiseClone | (Inherited from Object.) | |
| ReadDelta |
Reads value from the reader and applies it
| |
| ReadField |
Reads the complete state from the reader and applies it
| |
| ResetDirty |
Resets the dirty state and marks the variable as synced / clean
| |
| SetNetworkedBehaviour |
Sets NetworkedBehaviour the container belongs to.
| |
| ToString | (Inherited from Object.) | |
| WriteDelta |
Writes the variable to the writer
| |
| WriteField |
Writes the complete state of the variable to the writer
|
| Name | Description | |
|---|---|---|
| OnValueChanged |
The callback to be invoked when the value gets changed
| |
| Settings |
The settings for this var
|