Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::Serializable Concept Reference

Concept for network-serializable components. More...

#include <ComponentConcept.hpp>

Concept definition

template<typename T>
std::is_standard_layout_v<T> &&
std::is_trivially_copyable_v<T>
Concept for valid ECS component types.
Concept for network-serializable components.

Detailed Description

Concept for network-serializable components.

Template Parameters
TThe type to check

A type is serializable if it is:

  • A valid Component
  • Standard layout (predictable memory layout)
  • Trivially copyable (can be memcpy'd)

Serializable components can be efficiently transmitted over the network.

Definition at line 77 of file ComponentConcept.hpp.