simworld/src/world.h

27 lines
561 B
C

#ifndef WORLD_H
#define WORLD_H
#include <stdlib.h>
#include "error.h"
#include "entity/registry.h"
#include "entity/entity.h"
#define MAX_ENTITIES 256
struct world_t {
struct entity_t entities[MAX_ENTITIES];
struct entity_registry_t registered_entities;
size_t height;
size_t width;
};
enum error_t world_init(struct world_t *, size_t, size_t);
void world_free(struct world_t *);
enum error_t world_register_entity(struct world_t *, const char *, char);
enum error_t world_place_entity(struct world_t *, size_t, size_t, size_t);
#endif