Table of Contents

Interface INetworkCommand

Namespace
Core.Commands
Assembly
Core.dll

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

data byte[]

Serialize()

Serialize command data for network transmission Must be deterministic and compact

byte[] Serialize()

Returns

byte[]