#define RENDER_TRANSPARENT 262144 // can't light during opaque stage
// this is 80 bytes
-typedef struct
+typedef struct entity_state_s
{
// ! means this is not sent to client
double time; // ! time this state was built (used on client for interpolation)
entity_state_t;
// baseline state values
-entity_state_t defaultstate;
+extern entity_state_t defaultstate;
// reads a quake entity from the network stream
void EntityFrameQuake_ReadEntity(int bits);
// writes a list of quake entities to the network stream
server updates entities in looping ranges, a frame consists of a range of visible entities (not always all visible entities),
*/
-typedef struct
+typedef struct entity_frameinfo_s
{
double time;
int framenum;
#define MAX_ENTITY_HISTORY 64
#define MAX_ENTITY_DATABASE (MAX_EDICTS * 2)
-typedef struct
+typedef struct entityframe_database_s
{
// note: these can be far out of range, modulo with MAX_ENTITY_DATABASE to get a valid range (which may wrap)
// start and end of used area, when adding a new update to database, store at endpos, and increment endpos
entityframe_database_t;
// build entity data in this, to pass to entity read/write functions
-typedef struct
+typedef struct entity_frame_s
{
double time;
int framenum;