Nebula
Loading...
Searching...
No Matches
Game::Velocity::Traits Struct Reference

#include <velocity.h>

Public Types

using type = Velocity
 
using field_types = std::tuple<float, float, float>
 

Public Member Functions

 Traits ()=delete
 

Static Public Attributes

static constexpr auto name = "Velocity"
 
static constexpr auto fully_qualified_name = "Game.Velocity"
 
static constexpr size_t num_fields = 3
 
static constexpr const char * field_names [num_fields]
 
static constexpr const char * field_typenames [num_fields]
 
static constexpr size_t field_byte_offsets [num_fields]
 

Member Typedef Documentation

◆ field_types

using Game::Velocity::Traits::field_types = std::tuple<float, float, float>

◆ type

Constructor & Destructor Documentation

◆ Traits()

Game::Velocity::Traits::Traits ( )
delete

Member Data Documentation

◆ field_byte_offsets

size_t Game::Velocity::Traits::field_byte_offsets[num_fields]
staticconstexpr
Initial value:
= {
offsetof(Velocity, x),
offsetof(Velocity, y),
offsetof(Velocity, z)
}
Velocity(Math::vec3 const &v)
Definition velocity.h:20
float x
Definition vec3.h:94
float z
Definition vec3.h:94
float y
Definition vec3.h:94

◆ field_names

const char* Game::Velocity::Traits::field_names[num_fields]
staticconstexpr
Initial value:
= {
"x",
"y",
"z"
}

◆ field_typenames

const char* Game::Velocity::Traits::field_typenames[num_fields]
staticconstexpr
Initial value:
= {
"float",
"float",
"float"
}

◆ fully_qualified_name

auto Game::Velocity::Traits::fully_qualified_name = "Game.Velocity"
staticconstexpr

◆ name

auto Game::Velocity::Traits::name = "Velocity"
staticconstexpr

◆ num_fields

size_t Game::Velocity::Traits::num_fields = 3
staticconstexpr

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