23 lines
470 B
C
23 lines
470 B
C
#ifndef TICK_H
|
|
#define TICK_H
|
|
|
|
#include "entity.h"
|
|
|
|
struct tick {
|
|
u64 id; /* Starts at 1 */
|
|
sys_timestamp_t published_ts;
|
|
|
|
f64 dt;
|
|
f64 time;
|
|
|
|
struct v2 player_move; /* Player movement direction */
|
|
struct v2 player_focus; /* Mouse cursor pos in world coordinates */
|
|
|
|
u64 entities_count; /* Includes 'released' & non-active entities */
|
|
struct entity entities[MAX_ENTITIES];
|
|
};
|
|
|
|
void tick_cpy(struct tick *dst, struct tick *src);
|
|
|
|
#endif
|