public void Send(ServerOutgoingPacketType header, IList <NetConnection> connections, NetDeliveryMethod deliveryMethod = NetDeliveryMethod.Unreliable) { foreach (NetConnection netConnection in connections) { NetPeer.SendMessage(CreateMessageWithHeader((int)header), netConnection, deliveryMethod); } }
public void Send(ServerOutgoingPacketType header, NetConnection connection, NetDeliveryMethod deliveryMethod = NetDeliveryMethod.Unreliable) { NetPeer.SendMessage(CreateMessageWithHeader((int)header), connection, deliveryMethod); }
public Packet CreatePacket(ServerOutgoingPacketType packetType) => CreatePacket((int)packetType);