public static WriteRaw ( BeardedManStudios.Network.NetWorker netWorker, BMSByte data, string uniqueId, bool reliable ) : void | ||
netWorker | BeardedManStudios.Network.NetWorker | |
data | BMSByte | |
uniqueId | string | |
reliable | bool | |
return | void |
public static void WriteRaw(NetWorker netWorker, BMSByte data, string uniqueId, bool reliable)
{
if (data == null)
{
netWorker.ThrowException(new NetworkException(1000, "The data being written can not be null"));
return;
}
if (data.Size == 0)
{
netWorker.ThrowException(new NetworkException(1001, "The data being sent can't be empty"));
return;
}
netWorker.WriteRaw(data, uniqueId, true, reliable);
}
Networking::WriteRaw ( BeardedManStudios.Network.NetWorker netWorker, |