aboutsummaryrefslogtreecommitdiff
path: root/client/helloworld/main.c
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-07-29 12:17:56 -0700
committerTrumeet <yuuta@yuuta.moe>2022-07-29 12:17:56 -0700
commit26765d586e187ebd088cdb2f7451768a637968c8 (patch)
tree3abef1c89154ddc6964e82c43ee1c9c73f6d2c2a /client/helloworld/main.c
parentff769a117046448dec8f09d86dfc661cda0bbc3b (diff)
downloadacron-26765d586e187ebd088cdb2f7451768a637968c8.tar
acron-26765d586e187ebd088cdb2f7451768a637968c8.tar.gz
acron-26765d586e187ebd088cdb2f7451768a637968c8.tar.bz2
acron-26765d586e187ebd088cdb2f7451768a637968c8.zip
feat(mod/libacron): provide entity type to clients
API:ADD
Diffstat (limited to 'client/helloworld/main.c')
-rw-r--r--client/helloworld/main.c3
1 files changed, 2 insertions, 1 deletions
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,