npc start
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
#pragma once
|
||||
// #include "direction.h"
|
||||
#include "rpg/entity/player.h"
|
||||
// #include "npc.h"
|
||||
|
||||
// #define ENTITY_TURN_DURATION 0.075f // Duration for turning in seconds
|
||||
// #define ENTITY_MOVE_DURATION 0.1f // Duration for moving 1 tile, in seconds.
|
||||
// #define ENTITY_PLAYER_INDEX 0
|
||||
#include "npc.h"
|
||||
|
||||
typedef struct {
|
||||
void (*init)(entity_t *entity);
|
||||
@@ -35,6 +31,7 @@ typedef struct entity_s {
|
||||
|
||||
union {
|
||||
player_t player;
|
||||
npc_t npc;
|
||||
};
|
||||
} entity_t;
|
||||
|
||||
|
Reference in New Issue
Block a user