simworld/common/include/entity/entity.h

22 lines
390 B
C

#ifndef ENTITY_ENTITY_H
#define ENTITY_ENTITY_H
#include <stdlib.h>
#include <jansson.h>
#include "error.h"
struct entity_t {
size_t id;
size_t x;
size_t y;
};
void entity_init(struct entity_t *, size_t, size_t, size_t);
enum error_t entity_serialise(struct entity_t const *, struct json_t **);
enum error_t entity_deserialise(struct entity_t *, struct json_t *);
#endif