Botcraft 26.2
Loading...
Searching...
No Matches
ProtocolCraft::Components::LengthPrefixedDataComponentPatch Class Reference

#include <DataComponents.hpp>

Inheritance diagram for ProtocolCraft::Components::LengthPrefixedDataComponentPatch:
ProtocolCraft::NetworkType

Public Member Functions

 LengthPrefixedDataComponentPatch ()=default
 
 LengthPrefixedDataComponentPatch (const DataComponentPatch &p)
 
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap () const
 
LengthPrefixedDataComponentPatchSetMap (const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &map_)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Protected Member Functions

virtual void ReadImpl (ReadIterator &iter, size_t &length) override
 
virtual void WriteImpl (WriteContainer &container) const override
 
virtual Json::Value SerializeImpl () const override
 

Private Attributes

std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > map
 

Detailed Description

Definition at line 244 of file DataComponents.hpp.

Constructor & Destructor Documentation

◆ LengthPrefixedDataComponentPatch() [1/2]

ProtocolCraft::Components::LengthPrefixedDataComponentPatch::LengthPrefixedDataComponentPatch ( )
default

◆ LengthPrefixedDataComponentPatch() [2/2]

ProtocolCraft::Components::LengthPrefixedDataComponentPatch::LengthPrefixedDataComponentPatch ( const DataComponentPatch p)

Member Function Documentation

◆ GetMap()

const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::LengthPrefixedDataComponentPatch::GetMap ( ) const

◆ ReadImpl()

void ProtocolCraft::Components::LengthPrefixedDataComponentPatch::ReadImpl ( ReadIterator iter,
size_t &  length 
)
overrideprotectedvirtual

◆ SerializeImpl()

Json::Value ProtocolCraft::Components::LengthPrefixedDataComponentPatch::SerializeImpl ( ) const
overrideprotectedvirtual

◆ SetMap()

LengthPrefixedDataComponentPatch & ProtocolCraft::Components::LengthPrefixedDataComponentPatch::SetMap ( const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &  map_)

Definition at line 854 of file DataComponents.cpp.

References map.

◆ WriteImpl()

void ProtocolCraft::Components::LengthPrefixedDataComponentPatch::WriteImpl ( WriteContainer container) const
overrideprotectedvirtual

Implements ProtocolCraft::NetworkType.

Definition at line 887 of file DataComponents.cpp.

References map, and ProtocolCraft::WriteByteArray().

Member Data Documentation

◆ map

std::map<DataComponentTypes, std::shared_ptr<DataComponentType> > ProtocolCraft::Components::LengthPrefixedDataComponentPatch::map
private

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