Antkeeper  0.0.1
Functions
command Namespace Reference

Commands which operate on entity::id components. More...

Functions

void translate (entity::registry &registry, entity::id eid, const math::fvec3 &translation)
 
void rotate (entity::registry &registry, entity::id eid, float angle, const math::fvec3 &axis)
 
void move_to (entity::registry &registry, entity::id eid, const math::fvec3 &position)
 
void warp_to (entity::registry &registry, entity::id eid, const math::fvec3 &position)
 
void set_scale (entity::registry &registry, entity::id eid, const math::fvec3 &scale)
 
void set_transform (entity::registry &registry, entity::id eid, const math::transform< float > &transform)
 
void place (entity::registry &registry, entity::id eid, entity::id celestial_body_id, double altitude, double latitude, double longitude)
 
void assign_render_layers (entity::registry &registry, entity::id eid, std::uint8_t layer_mask)
 
math::transform< float > get_local_transform (entity::registry &registry, entity::id eid)
 
math::transform< float > get_world_transform (entity::registry &registry, entity::id eid)
 
void assign_render_layers (entity::registry &registry, entity::id eid, unsigned int layers)
 

Detailed Description

Commands which operate on entity::id components.

Function Documentation

◆ assign_render_layers() [1/2]

void command::assign_render_layers ( entity::registry registry,
entity::id  eid,
std::uint8_t  layer_mask 
)

Definition at line 131 of file commands.cpp.

◆ assign_render_layers() [2/2]

void command::assign_render_layers ( entity::registry registry,
entity::id  eid,
unsigned int  layers 
)

◆ get_local_transform()

math::transform< float > command::get_local_transform ( entity::registry registry,
entity::id  eid 
)

Definition at line 147 of file commands.cpp.

◆ get_world_transform()

math::transform< float > command::get_world_transform ( entity::registry registry,
entity::id  eid 
)

Definition at line 158 of file commands.cpp.

◆ move_to()

void command::move_to ( entity::registry registry,
entity::id  eid,
const math::fvec3 position 
)

Definition at line 62 of file commands.cpp.

◆ place()

void command::place ( entity::registry registry,
entity::id  eid,
entity::id  celestial_body_id,
double  altitude,
double  latitude,
double  longitude 
)

Definition at line 126 of file commands.cpp.

◆ rotate()

void command::rotate ( entity::registry registry,
entity::id  eid,
float  angle,
const math::fvec3 axis 
)

Definition at line 46 of file commands.cpp.

◆ set_scale()

void command::set_scale ( entity::registry registry,
entity::id  eid,
const math::fvec3 scale 
)

Definition at line 94 of file commands.cpp.

◆ set_transform()

void command::set_transform ( entity::registry registry,
entity::id  eid,
const math::transform< float > &  transform 
)

Definition at line 110 of file commands.cpp.

◆ translate()

void command::translate ( entity::registry registry,
entity::id  eid,
const math::fvec3 translation 
)

Definition at line 30 of file commands.cpp.

◆ warp_to()

void command::warp_to ( entity::registry registry,
entity::id  eid,
const math::fvec3 position 
)

Definition at line 78 of file commands.cpp.