PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::ComponentStorage< T > Struct Template Reference
Inheritance diagram for pixelbullet::ComponentStorage< T >:
pixelbullet::ComponentStorageBase

Public Types

using SafeDeserializeFn = std::function<SerializationResult(T&, const Node&, std::string_view)>

Public Member Functions

 ComponentStorage (SafeDeserializeFn safe_deserialize)
void Serialize (Node &node) const override
void Deserialize (const Node &node) override
void DeserializeComponent (const uint32_t entity, const Node &node) override
SerializationResult TryDeserializeComponent (const uint32_t entity, const Node &node, const std::string_view diagnostic_path) override
void Clear () override
void RemoveComponent (uint32_t entity) override

Public Attributes

SparseSet< T > components

Member Function Documentation

◆ Clear()

template<typename T>
void pixelbullet::ComponentStorage< T >::Clear ( )
inlineoverridevirtual

◆ Deserialize()

template<typename T>
void pixelbullet::ComponentStorage< T >::Deserialize ( const Node & node)
inlineoverridevirtual

◆ DeserializeComponent()

template<typename T>
void pixelbullet::ComponentStorage< T >::DeserializeComponent ( const uint32_t entity,
const Node & node )
inlineoverridevirtual

◆ RemoveComponent()

template<typename T>
void pixelbullet::ComponentStorage< T >::RemoveComponent ( uint32_t entity)
inlineoverridevirtual

◆ Serialize()

template<typename T>
void pixelbullet::ComponentStorage< T >::Serialize ( Node & node) const
inlineoverridevirtual

◆ TryDeserializeComponent()

template<typename T>
SerializationResult pixelbullet::ComponentStorage< T >::TryDeserializeComponent ( const uint32_t entity,
const Node & node,
const std::string_view diagnostic_path )
inlinenodiscardoverridevirtual

The documentation for this struct was generated from the following file: