|
|
constexpr | Packet (PacketPriority priority=PacketPriority::MediumPriority, NetworkPeer::Reliability reliability=NetworkPeer::Reliability::ReliableOrdered, SubClientId clientSubId=SubClientId::PrimaryClient, bool compress=true) |
|
virtual void | write (::BinaryStream &) const =0 |
|
virtual ::Bedrock::Result< void > | read (::ReadOnlyBinaryStream &)=0 |
|
virtual ::std::string_view | getName () const =0 |
|
virtual LLNDAPI PacketRuntimeId | getRuntimeId () const |
|
LLAPI void | sendTo (Player const &player) const |
|
LLAPI void | sendTo (BlockPos const &pos, DimensionType dimId, optional_ref< Player const > except=std::nullopt) const |
|
LLAPI void | sendTo (Actor const &actor, optional_ref< Player const > except=std::nullopt) const |
|
LLAPI void | sendToClient (NetworkIdentifier const &identifier, ::SubClientId clientId) const |
|
LLAPI void | sendToClient (NetworkIdentifierWithSubId const &identifierWithSubId) const |
|
LLAPI void | sendToClients () const |
|
LLAPI void | sendToClients (NetworkIdentifier const &exceptId, ::SubClientId exceptSubid) const |
|
LLAPI void | sendToServer () const |
|
LLNDAPI bool | canSendTo (Player const &player) const |
|
LLNDAPI bool | canSendTo (NetworkIdentifier const &identifier) const |
|
LLNDAPI bool | canSendToServer () const |
|
|
static LLNDAPI bool | canSendTo (PacketRuntimeId runtimeId, Player const &player) |
|
static LLNDAPI bool | canSendTo (PacketRuntimeId runtimeId, NetworkIdentifier const &identifier) |
|
static LLNDAPI bool | canSendToServer (PacketRuntimeId runtimeId) |
|
|
PacketPriority | mPriority |
|
NetworkPeer::Reliability | mReliability |
|
SubClientId | mSenderSubId |
|
Compressibility | mCompressible |
|
|
static constexpr std::string_view | CustomPacketId {} |
|
static constexpr uint | PacketVersion {0} |
|
static constexpr PacketSide | Side {PacketSide::Both} |
|
static constexpr bool | Optional {false} |
The documentation for this class was generated from the following file: