nngn
Loading...
Searching...
No Matches
anonymous_namespace{entity.cpp} Namespace Reference

Functions

std::ptrdiff_t offset (const Entities &es, const Entity &e)
 
 name (Entities *es, Entity *e)
 
 tag (Entities *es, Entity *e)
 
 name_hash (Entities *es, Entity *e)
 
 tag_hash (Entities *es, Entity *e)
 
void copy (std::span< char, 32 > v, nngn::Hash *h, std::string_view s)
 
void set_pos (Entity *e, vec3 oldp, vec3 p)
 
template<typename ... Ts>
Entities gen_entities (Ts &&...fs)
 
void remove_rnd (Entities *es)
 
void rnd_pos (Entity *e)
 
bool check_alive (const Entities &es)
 

Variables

auto gen = std::mt19937{std::random_device{}()}
 
auto dist = std::uniform_real_distribution<float>{}
 

Function Documentation

◆ check_alive()

bool anonymous_namespace{entity.cpp}::check_alive ( const Entities & es)
Here is the call graph for this function:

◆ copy()

void anonymous_namespace{entity.cpp}::copy ( std::span< char, 32 > v,
nngn::Hash * h,
std::string_view s )
Here is the call graph for this function:

◆ gen_entities()

template<typename ... Ts>
Entities anonymous_namespace{entity.cpp}::gen_entities ( Ts &&... fs)
Here is the call graph for this function:

◆ name()

anonymous_namespace{entity.cpp}::name ( Entities * es,
Entity * e )
Here is the call graph for this function:

◆ name_hash()

anonymous_namespace{entity.cpp}::name_hash ( Entities * es,
Entity * e )
Here is the call graph for this function:

◆ offset()

std::ptrdiff_t anonymous_namespace{entity.cpp}::offset ( const Entities & es,
const Entity & e )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_rnd()

void anonymous_namespace{entity.cpp}::remove_rnd ( Entities * es)
Here is the call graph for this function:

◆ rnd_pos()

void anonymous_namespace{entity.cpp}::rnd_pos ( Entity * e)

◆ set_pos()

void anonymous_namespace{entity.cpp}::set_pos ( Entity * e,
vec3 oldp,
vec3 p )

◆ tag()

anonymous_namespace{entity.cpp}::tag ( Entities * es,
Entity * e )
Here is the call graph for this function:

◆ tag_hash()

anonymous_namespace{entity.cpp}::tag_hash ( Entities * es,
Entity * e )
Here is the call graph for this function:

Variable Documentation

◆ dist

auto anonymous_namespace{entity.cpp}::dist = std::uniform_real_distribution<float>{}

◆ gen

auto anonymous_namespace{entity.cpp}::gen = std::mt19937{std::random_device{}()}