From bcdd09d5075c9755538a93db8e3ca2690a803cc1 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 18 Dec 2025 03:23:19 -0700 Subject: Finally getting interaction stuff done --- src/entities/samantha.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/entities') diff --git a/src/entities/samantha.c b/src/entities/samantha.c index c8f08f6..bc70b7a 100644 --- a/src/entities/samantha.c +++ b/src/entities/samantha.c @@ -1,4 +1,5 @@ #include "samantha.h" +#include "ui.h" void initSamantha(Entity* entity) { @@ -23,6 +24,17 @@ void updateSamantha(Entity* entity, Game* game) InteractionCommand interactWithSamantha(Entity* entity, Game* game, Selection selection) { - puts("test test"); - return INTERACTION_TALK; + InteractionChat* chat = &game->chat; + + switch (selection) + { + case SELECTION_INTERACT: + writeToInteractionChat(chat, "hihi"); + return INTERACTION_TALK; + case SELECTION_NEXT_MESSAGE: + case SELECTION_LEAVE: + return INTERACTION_END; + default: + return INTERACTION_END; + } } -- cgit v1.2.3