diff --git a/common/src/entity/registry.c b/common/src/entity/registry.c index c87f900..8929638 100644 --- a/common/src/entity/registry.c +++ b/common/src/entity/registry.c @@ -5,8 +5,10 @@ #include "entity/registry.h" + #define MAX_NAME_LENGTH 32 + enum error_t entity_registrant_init( struct entity_registrant_t *self, char const *name, char tile @@ -24,6 +26,7 @@ enum error_t entity_registrant_init( return ERR_OK; } + void entity_registrant_free(struct entity_registrant_t *self) { assert (self != NULL); @@ -46,6 +49,7 @@ enum error_t entity_registry_init(struct entity_registry_t *self) { return ERR_OK; } + void entity_registry_free(struct entity_registry_t *self) { assert(self != NULL); @@ -55,6 +59,7 @@ void entity_registry_free(struct entity_registry_t *self) { free(self->entities); } + enum error_t entity_registry_append( struct entity_registry_t *self, struct entity_registrant_t const *registrant