summaryrefslogtreecommitdiff
path: root/src/entity.h
blob: 0db15f18c6394e781f1f0a13005bf0236748efb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

typedef enum {
    NONE = 0,
    PLAYER = 1,
    TROLL = 2,
    BANDIT = 3,
} EntityType;

struct Entity {
    EntityType type; // EntityType
    int id;             // Entity ID
};

const struct Entity EntityNone = {.type = NONE, .id = 0};