power_play/src/world.h
2024-08-12 19:41:39 -05:00

23 lines
437 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 entity_store *entity_store;
};
void world_alloc(struct world *world);
void world_release(struct world *world);
void world_copy_replace(struct world *dest, struct world *src);
#endif