diff options
Diffstat (limited to 'src/entities')
| -rw-r--r-- | src/entities/ron.c | 28 | ||||
| -rw-r--r-- | src/entities/ron.h | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/entities/ron.c b/src/entities/ron.c index bd32e6a..834c119 100644 --- a/src/entities/ron.c +++ b/src/entities/ron.c @@ -1,4 +1,5 @@ #include "ron.h" +#include "ui.h" void initRon(Entity* entity) { @@ -14,3 +15,30 @@ void updateRon(Entity* entity, Game* game) { DrawModel(game->assets.models[RON_MODEL], entity->position, 1.0, WHITE); } + +InteractionCommand interactWithRon(Entity* entity, Game* game, + Selection selection) +{ + InteractionMenu* menu = &game->interactionMenu; + + const InteractionItems items = { + "test 1", + "test 2", + "test 3", + "test 4", + "test 5", + "test 6", + "test 7", + "test 8", + "test 9" + }; + + switch (selection) + { + case SELECTION_INTERACT: + setInteractionMenu(menu, items, 9); + return INTERACTION_SHOW_MENU; + default: + return INTERACTION_END; + } +} diff --git a/src/entities/ron.h b/src/entities/ron.h index 10858c1..ed0dbd2 100644 --- a/src/entities/ron.h +++ b/src/entities/ron.h @@ -7,6 +7,8 @@ void initRon(Entity* entity); void updateRon(Entity* entity, Game* game); +InteractionCommand interactWithRon(Entity* entity, Game* game, + Selection selection); #endif |
