BeardedManStudios.Network.Networking.WriteRaw C# (CSharp) Метод

WriteRaw() публичный статический Метод

Write a custom raw byte message with a 1 byte header across the network
public static WriteRaw ( BeardedManStudios.Network.NetWorker netWorker, BMSByte data, string uniqueId, bool reliable ) : void
netWorker BeardedManStudios.Network.NetWorker
data BMSByte
uniqueId string
reliable bool
Результат 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);
		}

Same methods

Networking::WriteRaw ( BeardedManStudios.Network.NetWorker netWorker, NetworkingPlayer targetPlayer, BMSByte data, string uniqueId, bool reliable = false ) : void