My Project
|
Wraps the State in the NetworkMessage so we can send it over the network. More...
Public Member Functions | |
NetworkState () | |
Default contstructor, does nothing. | |
NetworkState (SmoothSync smoothSyncScript) | |
void | copyFromSmoothSync (SmoothSync smoothSyncScript) |
Copy the SmoothSync object to a NetworkState. | |
void | Serialize (BitPacker writer) |
Serialize the message over the network. | |
void | Deserialize (BitPacker reader, SmoothSync smoothSync) |
Deserialize a message from the network. | |
Public Attributes | |
SmoothSync | smoothSync |
The SmoothSync object associated with this State. | |
SmoothState | state = new SmoothState() |
The State that will be sent over the network. | |
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 |
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. |