#ifndef ENTITY_ENTITY_H #define ENTITY_ENTITY_H #include #include #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