Botcraft 26.3
Loading...
Searching...
No Matches
ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed > Class Template Reference

#include <DataComponents.hpp>

Inheritance diagram for ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >:
ProtocolCraft::NetworkType

Public Member Functions

 BasicDataComponentPatch ()=default
 
template<bool P>
 BasicDataComponentPatch (const BasicDataComponentPatch< P > &other)
 
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap () const
 
BasicDataComponentPatch & SetMap (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

template<bool LengthPrefixed>
class ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >

Definition at line 230 of file DataComponents.hpp.

Constructor & Destructor Documentation

◆ BasicDataComponentPatch() [1/2]

template<bool LengthPrefixed>
ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::BasicDataComponentPatch ( )
default

◆ BasicDataComponentPatch() [2/2]

template<bool LengthPrefixed>
template<bool P>
ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::BasicDataComponentPatch ( const BasicDataComponentPatch< P > &  other)
inline

Definition at line 235 of file DataComponents.hpp.

Member Function Documentation

◆ GetMap()

template<bool LengthPrefixed>
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::GetMap ( ) const

◆ ReadImpl()

template<bool LengthPrefixed>
void ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::ReadImpl ( ReadIterator &  iter,
size_t &  length 
)
overrideprotectedvirtual

◆ SerializeImpl()

template<bool LengthPrefixed>
Json::Value ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::SerializeImpl ( ) const
overrideprotectedvirtual

◆ SetMap()

template<bool LengthPrefixed>
BasicDataComponentPatch< LengthPrefixed > & ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::SetMap ( const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &  map_)

Definition at line 590 of file DataComponents.cpp.

◆ WriteImpl()

template<bool LengthPrefixed>
void ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::WriteImpl ( WriteContainer &  container) const
overrideprotectedvirtual

Implements ProtocolCraft::NetworkType.

Definition at line 637 of file DataComponents.cpp.

References ProtocolCraft::WriteByteArray().

Member Data Documentation

◆ map

template<bool LengthPrefixed>
std::map<DataComponentTypes, std::shared_ptr<DataComponentType> > ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::map
private

Definition at line 246 of file DataComponents.hpp.


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