|
Botcraft 1.21.10
|
#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_) |
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 |
Definition at line 166 of file DataComponents.hpp.
|
overridevirtual |
Definition at line 576 of file DataComponents.cpp.
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::DataComponentPatch::GetMap | ( | ) | const |
Definition at line 581 of file DataComponents.cpp.
References map.
Referenced by ProtocolCraft::Components::HashedDataComponentPatch::HashedDataComponentPatch().
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 592 of file DataComponents.cpp.
References ProtocolCraft::Components::CreateComponentType(), and map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 650 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 586 of file DataComponents.cpp.
References map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 618 of file DataComponents.cpp.
References map.
|
private |
Definition at line 180 of file DataComponents.hpp.
Referenced by GetMap(), ReadImpl(), SerializeImpl(), SetMap(), and WriteImpl().