public override void ExecuteServerCommandOnClients(Command command)
{
if (!IsHost)
throw new CoreException("Only the host can execute server commands on clients");
if (command.NetworkValue != null)
_packetWriter.Write(Constants.ExecuteServerCommandOnClientsDataExchanged);
else
_packetWriter.Write(Constants.ExecuteServerCommandOnClientsNoDataExchanged);
_packetWriter.Write(command.Id);
if (command.NetworkValue != null)
{
WriteNetworkValue(ref _packetWriter, command.NetworkValue);
}
((LocalNetworkGamer) _networkSession.Host).SendData(_packetWriter,
ConvertToSendDataOptions(command.TransferOptions));
}