Skip to content

EntropyEngine::Networking::TypeToPropertyType

EntropyEngine::Networking::TypeToPropertyType

Section titled “EntropyEngine::Networking::TypeToPropertyType”

Compile-time mapping from C++ types to PropertyType enum. More…

#include <SchemaGeneration.h>

template <typename T >
struct EntropyEngine::Networking::TypeToPropertyType;

Compile-time mapping from C++ types to PropertyType enum.

Template specialization pattern for type-safe PropertyType mapping. Primary template intentionally fails for unmapped types with static_assert.

Applications can extend this by providing specializations for their own types:

template<> struct TypeToPropertyType<MyCustomType> {
static constexpr PropertyType value = PropertyType::Int32;
};

Updated on 2026-01-26 at 17:14:35 -0500