From 5814e512ba58c54a95028cfb7a356755bcbdf62f Mon Sep 17 00:00:00 2001 From: snit Date: Sat, 5 Oct 2024 04:05:02 -0500 Subject: [PATCH] forgot to save a file earlier when doing spacing changes oof --- common/src/entity/registry.c | 5 +++++ 1 file changed, 5 insertions(+) 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