power_play/src/world.h

25 lines
454 B
C

#ifndef WORLD_H
#define WORLD_H
#include "entity.h"
struct world {
u64 tick_id; /* Starts at 1 */
u64 tick_ts; /* When was this tick simulated in program time */
/* World time */
f64 timescale;
f64 dt;
f64 time;
struct v2 player_move_dir;
struct v2 player_aim;
struct entity_store *entity_store;
};
void world_alloc(struct world *world);
void world_copy_replace(struct world *dest, struct world *src);
#endif