Skip to content

Commit

Permalink
apps: updated reader example to showcase owner
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Jul 30, 2022
1 parent e88e604 commit 0b7cd9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/apps/example-unpacking.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
int32_t myread_create(librg_world *w, librg_event *e) {
int64_t owner_id = librg_event_owner_get(w, e);
int64_t entity_id = librg_event_entity_get(w, e);
printf("entity: %d was created for owner: %d\n", (int)entity_id, (int)owner_id);
printf("entity: %d was created for owner: %d, owner: %d\n", (int)entity_id, (int)owner_id, (int)librg_entity_owner_get(w, entity_id));


char buffer[64] = {0};
memcpy(buffer, librg_event_buffer_get(w, e), librg_event_size_get(w, e));
Expand Down

0 comments on commit 0b7cd9e

Please sign in to comment.