LeviLamina
Loading...
Searching...
No Matches
ll::network::PacketBase< Derived > Class Template Referenceabstract
Inheritance diagram for ll::network::PacketBase< Derived >:

Public Member Functions

::std::string_view getName () const override
PacketRuntimeId getRuntimeId () const override
virtual void write (::BinaryStream &) const =0
virtual ::Bedrock::Result< void > read (::ReadOnlyBinaryStream &)=0
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

Public Attributes

PacketPriority mPriority
NetworkPeer::Reliability mReliability
SubClientId mSenderSubId
Compressibility mCompressible

Static Public Attributes

static bool sRegistered = ensureRegistered()

Protected Member Functions

constexpr Packet (PacketPriority priority=PacketPriority::MediumPriority, NetworkPeer::Reliability reliability=NetworkPeer::Reliability::ReliableOrdered, SubClientId clientSubId=SubClientId::PrimaryClient, bool compress=true)

Member Function Documentation

◆ getName()

template<class Derived>
::std::string_view ll::network::PacketBase< Derived >::getName ( ) const
inlinenodiscardoverridevirtual

Implements ll::network::Packet.

◆ getRuntimeId()

template<class Derived>
PacketRuntimeId ll::network::PacketBase< Derived >::getRuntimeId ( ) const
inlinenodiscardoverridevirtual

Reimplemented from ll::network::Packet.


The documentation for this class was generated from the following file: