Click or drag to resize

NetworkedVarT Class

[This is preliminary documentation and is subject to change.]

A variable that can be synchronized over the network.
Inheritance Hierarchy
SystemObject
  MLAPINetworkedVarT

Namespace:  MLAPI
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public class NetworkedVar<T> : INetworkedVar
Request Example View Source

Type Parameters

T

The NetworkedVarT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyisDirty
Gets or sets wheter or not the variable needs to be delta synced
Public propertyLastSyncedTime
Gets the last time the variable was synced
Public propertyValue
The value of the NetworkedVar container
Top
Methods
  NameDescription
Public methodCanClientRead
Gets wheter or not a specific client can read to the varaible
Public methodCanClientWrite
Gets wheter or not a specific client can write to the varaible
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetChannel
Returns the name of the channel to be used for syncing
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsDirty
Gets wheter or not the container is dirty
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadDelta
Reads value from the reader and applies it
Public methodReadField
Reads the complete state from the reader and applies it
Public methodResetDirty
Resets the dirty state and marks the variable as synced / clean
Public methodSetNetworkedBehaviour
Sets NetworkedBehaviour the container belongs to.
Public methodToString (Inherited from Object.)
Public methodWriteDelta
Writes the variable to the writer
Public methodWriteField
Writes the complete state of the variable to the writer
Top
Fields
  NameDescription
Public fieldOnValueChanged
The callback to be invoked when the value gets changed
Public fieldSettings
The settings for this var
Top
See Also