Botcraft 1.21.4
Loading...
Searching...
No Matches
ProtocolCraft::Components::DataComponentPredicate Class Reference

#include <DataComponents.hpp>

Inheritance diagram for ProtocolCraft::Components::DataComponentPredicate:
ProtocolCraft::NetworkType

Public Member Functions

virtual ~DataComponentPredicate () override
 
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap () const
 
DataComponentPredicateSetMap (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 102 of file DataComponents.hpp.

Constructor & Destructor Documentation

◆ ~DataComponentPredicate()

ProtocolCraft::Components::DataComponentPredicate::~DataComponentPredicate ( )
overridevirtual

Definition at line 355 of file DataComponents.cpp.

Member Function Documentation

◆ GetMap()

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

Definition at line 360 of file DataComponents.cpp.

References map.

◆ ReadImpl()

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

◆ SerializeImpl()

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

◆ SetMap()

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

Definition at line 365 of file DataComponents.cpp.

References map.

◆ WriteImpl()

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

Implements ProtocolCraft::NetworkType.

Definition at line 388 of file DataComponents.cpp.

References map.

Member Data Documentation

◆ map

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

Definition at line 116 of file DataComponents.hpp.

Referenced by GetMap(), ReadImpl(), SerializeImpl(), SetMap(), and WriteImpl().


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