|
Botcraft 26.3
|
#include <DataComponents.hpp>
Public Member Functions | |
| BasicDataComponentPatch ()=default | |
| template<bool P> | |
| BasicDataComponentPatch (const BasicDataComponentPatch< P > &other) | |
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | GetMap () const |
| BasicDataComponentPatch & | 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 230 of file DataComponents.hpp.
|
default |
|
inline |
Definition at line 235 of file DataComponents.hpp.
| const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::GetMap | ( | ) | const |
Definition at line 584 of file DataComponents.cpp.
Referenced by ProtocolCraft::Components::HashedDataComponentPatch::HashedDataComponentPatch().
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 597 of file DataComponents.cpp.
References ProtocolCraft::Components::CreateComponentType().
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 681 of file DataComponents.cpp.
References ProtocolCraft::Json::Value::push_back().
| BasicDataComponentPatch< LengthPrefixed > & ProtocolCraft::Components::BasicDataComponentPatch< LengthPrefixed >::SetMap | ( | const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & | map_ | ) |
Definition at line 590 of file DataComponents.cpp.
|
overrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 637 of file DataComponents.cpp.
References ProtocolCraft::WriteByteArray().
|
private |
Definition at line 246 of file DataComponents.hpp.