Wraps the State in the NetworkMessage so we can send it over the network. More...
Inherits MessageBase.
Public Member Functions | |
void | copyFromSmoothSync (SmoothSync smoothSyncScript) |
Copy the SmoothSync object to a NetworkState. More... | |
override void | Deserialize (NetworkReader reader) |
Deserialize a message from the network. More... | |
NetworkState () | |
Default contstructor, does nothing. More... | |
override void | Serialize (NetworkWriter writer) |
Serialize the message over the network. More... | |
Public Attributes | |
SmoothSync | smoothSync |
The SmoothSync object associated with this State. More... | |
State | state = new State() |
The State that will be sent over the network More... | |
Wraps the State in the NetworkMessage so we can send it over the network.
This only sends and receives the parts of the State that are enabled on the SmoothSync component.
|
inline |
Default contstructor, does nothing.
|
inline |
Copy the SmoothSync object to a NetworkState.
smoothSyncScript | The SmoothSync object |
|
inline |
Deserialize a message from the network.
Only receives what it needs and decompresses floats if you chose to.
writer | The Networkreader to read from. |
|
inline |
Serialize the message over the network.
Only sends what it needs and compresses floats if you chose to.
writer | The NetworkWriter to write to. |
SmoothSync Smooth.NetworkState.smoothSync |
The SmoothSync object associated with this State.