|
Botcraft 26.2
|
#include <DataComponents.hpp>
Public Member Functions | |
| DataComponentPatch ()=default | |
| DataComponentPatch (const LengthPrefixedDataComponentPatch &p) | |
| 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 209 of file DataComponents.hpp.
|
default |
| ProtocolCraft::Components::DataComponentPatch::DataComponentPatch | ( | const LengthPrefixedDataComponentPatch & | p | ) |
Definition at line 705 of file DataComponents.cpp.
References ProtocolCraft::Components::LengthPrefixedDataComponentPatch::GetMap(), and map.
|
overridevirtual |
Definition at line 712 of file DataComponents.cpp.
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::DataComponentPatch::GetMap | ( | ) | const |
Definition at line 717 of file DataComponents.cpp.
References map.
Referenced by ProtocolCraft::Components::HashedDataComponentPatch::HashedDataComponentPatch(), and ProtocolCraft::Components::LengthPrefixedDataComponentPatch::LengthPrefixedDataComponentPatch().
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 728 of file DataComponents.cpp.
References ProtocolCraft::Components::CreateComponentType(), and map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 786 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 722 of file DataComponents.cpp.
References map.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 754 of file DataComponents.cpp.
References map.
|
private |
Definition at line 227 of file DataComponents.hpp.
Referenced by DataComponentPatch(), GetMap(), ReadImpl(), SerializeImpl(), SetMap(), and WriteImpl().