SimulationState::ToArray Method

Converts the entire simulation state to a byte array, that can be sent over the network.

Syntax

array<uint8>@ SimulationState::ToArray()

Return value

array<uint8>@

Remarks

Check out the format specification for the returned data here.

Use the constructor of SimulationState with the array parameter to construct the object back from the byte array.