diff options
Diffstat (limited to 'src/entities')
| -rw-r--r-- | src/entities/ron.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/entities/ron.c b/src/entities/ron.c index d01f25a..5c0eedb 100644 --- a/src/entities/ron.c +++ b/src/entities/ron.c @@ -16,6 +16,13 @@ void updateRon(Entity* entity, Game* game) DrawModel(game->assets.models[RON_MODEL], entity->position, 1.0, WHITE); } +InteractionCommand handleRonMenu(Entity* entity, Game* game, int index) +{ + setInteractionChat(&game->interactionChat, + TextFormat("You selected test %d", index + 1)); + return INTERACTION_TALK; +} + InteractionCommand interactWithRon(Entity* entity, Game* game, Selection selection) { @@ -40,10 +47,12 @@ InteractionCommand interactWithRon(Entity* entity, Game* game, return INTERACTION_SHOW_MENU; case SELECTION_LEAVE: return INTERACTION_END; + case SELECTION_NEXT_MESSAGE: + return INTERACTION_END; default: if (selection >= SELECTION_MENU_ITEM && selection < SELECTION_LEAVE) { - printf("%d\n", getInteractionMenuIndex(selection)); + return handleRonMenu(entity, game, getInteractionMenuIndex(selection)); } return INTERACTION_DO_NOTHING; |
