From 26765d586e187ebd088cdb2f7451768a637968c8 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Fri, 29 Jul 2022 12:17:56 -0700 Subject: feat(mod/libacron): provide entity type to clients API:ADD --- client/helloworld/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/helloworld') diff --git a/client/helloworld/main.c b/client/helloworld/main.c index 6c46ed0..8b3486b 100644 --- a/client/helloworld/main.c +++ b/client/helloworld/main.c @@ -98,8 +98,9 @@ static void handle_event(const ac_event_t *event) { } case AC_EVENT_ENTITY_DEATH: { ac_event_entity_death_t *o = (ac_event_entity_death_t *) event; - printf("Entity '%s' died at %s(%.2f, %.2f, %.2f): %s.\n", + printf("Entity '%s' (%s) died at %s(%.2f, %.2f, %.2f): %s.\n", o->entity.name, + o->entity.type, world_name(o->entity.world), o->entity.pos.x, o->entity.pos.y, -- cgit v1.2.3