33 lines
601 B
C
33 lines
601 B
C
|
|
#ifndef TC_LOCATION_H
|
|
#define TC_LOCATION_H
|
|
|
|
#include <utility/math.h>
|
|
|
|
typedef struct tc_entity_location
|
|
{
|
|
void *world;
|
|
tc_vec3f_s coords;
|
|
tc_vec3f_s rotation;
|
|
|
|
} tc_entity_location_s;
|
|
|
|
typedef struct tc_block_location
|
|
{
|
|
void *world;
|
|
tc_vec3i_s block_coords;
|
|
|
|
} tc_block_location_s;
|
|
|
|
typedef struct tc_chunk_location
|
|
{
|
|
void *world;
|
|
tc_vec3i_s grid_coords;
|
|
|
|
} tc_chunk_location_s;
|
|
|
|
tc_chunk_location_s tc_zero_chunk_location();
|
|
|
|
#endif // TC_LOCATION_H
|
|
|