Interface INetworkCommand
Interface for commands that can be networked Provides serialization support for multiplayer
public interface INetworkCommand : ICommand
- Inherited Members
Properties
EstimatedNetworkSize
Get estimated network size in bytes Used for bandwidth management
int EstimatedNetworkSize { get; }
Property Value
- int
Methods
Deserialize(byte[])
Deserialize command data from network Must reconstruct identical command state
void Deserialize(byte[] data)
Parameters
databyte[]
Serialize()
Serialize command data for network transmission Must be deterministic and compact
byte[] Serialize()
Returns
- byte[]