Mercurial > molko
diff libmlk-rpg/mlk/rpg/message.c @ 441:31c1bbc33813
man: document mlk-action
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 24 Oct 2022 21:29:39 +0200 |
parents | 4e78f045e8c0 |
children | 773a082f0b91 |
line wrap: on
line diff
--- a/libmlk-rpg/mlk/rpg/message.c Tue Oct 18 09:04:02 2022 +0200 +++ b/libmlk-rpg/mlk/rpg/message.c Mon Oct 24 21:29:39 2022 +0200 @@ -40,7 +40,7 @@ #define THEME(msg) (msg->theme ? msg->theme : theme_default()) static void -handle(struct action *action, const union event *ev) +handle(struct mlk_action *action, const union event *ev) { assert(action); assert(ev); @@ -49,7 +49,7 @@ } static int -update(struct action *action, unsigned int ticks) +update(struct mlk_action *action, unsigned int ticks) { assert(action); @@ -57,7 +57,7 @@ } static void -draw(struct action *action) +draw(struct mlk_action *action) { assert(action); @@ -301,12 +301,12 @@ } void -message_action(struct message *msg, struct action *action) +message_action(struct message *msg, struct mlk_action *action) { assert(msg); assert(action); - memset(action, 0, sizeof (struct action)); + memset(action, 0, sizeof (struct mlk_action)); action->data = msg; action->handle = handle; action->update = update;