![]() |
Botcraft 1.21.4
|
#include <DataComponents.hpp>
Public Member Functions | |
virtual | ~DataComponentPatch () override |
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | GetMap () const |
DataComponentPatch & | SetMap (const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &map_) |
![]() | |
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 |
Definition at line 120 of file DataComponents.hpp.
|
overridevirtual |
Definition at line 419 of file DataComponents.cpp.
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::DataComponentPatch::GetMap | ( | ) | const |
Definition at line 424 of file DataComponents.cpp.
References map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 435 of file DataComponents.cpp.
References ProtocolCraft::Components::CreateComponentType(), and map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 493 of file DataComponents.cpp.
References ProtocolCraft::Components::DataComponentTypesToString(), map, and ProtocolCraft::Json::Value::push_back().
DataComponentPatch & ProtocolCraft::Components::DataComponentPatch::SetMap | ( | const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | map_ | ) |
Definition at line 429 of file DataComponents.cpp.
References map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 461 of file DataComponents.cpp.
References map.
|
private |
Definition at line 134 of file DataComponents.hpp.
Referenced by GetMap(), ReadImpl(), SerializeImpl(), SetMap(), and WriteImpl().