|
Botcraft 26.2
|
#include <DataComponents.hpp>
Public Member Functions | |
| LengthPrefixedDataComponentPatch ()=default | |
| LengthPrefixedDataComponentPatch (const DataComponentPatch &p) | |
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | GetMap () const |
| LengthPrefixedDataComponentPatch & | 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 244 of file DataComponents.hpp.
|
default |
| ProtocolCraft::Components::LengthPrefixedDataComponentPatch::LengthPrefixedDataComponentPatch | ( | const DataComponentPatch & | p | ) |
Definition at line 844 of file DataComponents.cpp.
References ProtocolCraft::Components::DataComponentPatch::GetMap(), and map.
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::LengthPrefixedDataComponentPatch::GetMap | ( | ) | const |
Definition at line 849 of file DataComponents.cpp.
References map.
Referenced by ProtocolCraft::Components::DataComponentPatch::DataComponentPatch().
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 860 of file DataComponents.cpp.
References ProtocolCraft::Components::CreateComponentType(), and map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 923 of file DataComponents.cpp.
References ProtocolCraft::Components::DataComponentTypesToString(), map, and ProtocolCraft::Json::Value::push_back().
| LengthPrefixedDataComponentPatch & ProtocolCraft::Components::LengthPrefixedDataComponentPatch::SetMap | ( | const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | map_ | ) |
Definition at line 854 of file DataComponents.cpp.
References map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 887 of file DataComponents.cpp.
References map, and ProtocolCraft::WriteByteArray().
|
private |
Definition at line 259 of file DataComponents.hpp.
Referenced by GetMap(), LengthPrefixedDataComponentPatch(), ReadImpl(), SerializeImpl(), SetMap(), and WriteImpl().