File PacketSender.hpp

struct NetworkIdentifierWithSubId
class PacketSender : private Bedrock::EnableNonOwnerReferences

Subclassed by LoopbackPacketSender

Public Functions

virtual ~PacketSender() = default
virtual void send(Packet &packet) = 0
virtual void sendToServer(Packet &packet) = 0
virtual void sendToClient(const UserEntityIdentifierComponent *userIdentifier, const Packet &packet) = 0
virtual void sendToClient(const NetworkIdentifier &id, const Packet &packet, SubClientId subid) = 0
virtual void sendToClients(const std::vector<NetworkIdentifierWithSubId> &ids, const Packet &packet) = 0
virtual void sendBroadcast(const Packet &packet) = 0
virtual void sendBroadcast(const NetworkIdentifier &exceptId, SubClientId exceptSubid, const Packet &packet) = 0
virtual void flush(const NetworkIdentifier &id, std::function<void()> &&callback) = 0

Public Members

SubClientId mSenderSubId