Made input work on fixed timesteps primarily.
This commit is contained in:
@@ -8,24 +8,17 @@
|
||||
#pragma once
|
||||
#include "entitydir.h"
|
||||
#include "entityanim.h"
|
||||
#include "rpg/entity/player.h"
|
||||
#include "entitytype.h"
|
||||
#include "npc.h"
|
||||
#include "rpg/world/worldpos.h"
|
||||
|
||||
#define ENTITY_COUNT 256
|
||||
|
||||
typedef struct map_s map_t;
|
||||
|
||||
typedef enum {
|
||||
ENTITY_TYPE_NULL,
|
||||
ENTITY_TYPE_PLAYER,
|
||||
ENTITY_TYPE_NPC,
|
||||
ENTITY_TYPE_COUNT
|
||||
} entitytype_t;
|
||||
|
||||
typedef struct entity_s {
|
||||
uint8_t id;
|
||||
entitytype_t type;
|
||||
entitytypedata_t;
|
||||
|
||||
// Movement
|
||||
entitydir_t direction;
|
||||
@@ -33,11 +26,6 @@ typedef struct entity_s {
|
||||
|
||||
entityanim_t animation;
|
||||
uint8_t animFrame;
|
||||
|
||||
union {
|
||||
player_t player;
|
||||
npc_t npc;
|
||||
};
|
||||
} entity_t;
|
||||
|
||||
extern entity_t ENTITIES[ENTITY_COUNT];
|
||||
|
||||
Reference in New Issue
Block a user