Techneck/code/source-c/utility/location.h

33 lines
601 B
C
Raw Normal View History

2023-10-14 13:04:52 +00:00
#ifndef TC_LOCATION_H
#define TC_LOCATION_H
2023-10-15 09:51:45 +00:00
#include <utility/math.h>
2023-10-14 13:04:52 +00:00
2023-10-17 11:25:02 +00:00
typedef struct tc_entity_location
2023-10-14 13:04:52 +00:00
{
2023-10-15 09:51:45 +00:00
void *world;
2023-10-17 11:25:02 +00:00
tc_vec3f_s coords;
tc_vec3f_s rotation;
2023-10-14 13:04:52 +00:00
2023-10-17 11:25:02 +00:00
} tc_entity_location_s;
2023-10-14 13:04:52 +00:00
2023-10-17 11:25:02 +00:00
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();
2023-10-14 13:04:52 +00:00
#endif // TC_LOCATION_H