aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-18 10:23:19 +0000
committernathan <nathansmith@disroot.org>2025-12-18 10:23:19 +0000
commitbcdd09d5075c9755538a93db8e3ca2690a803cc1 (patch)
tree25a9e2e307bcc7d0908a81f7de6f365ab9230ff1 /src/entities
parentedaafadf2c5de7f23dfc20d420e973ed9dc92039 (diff)
downloadFindThings-bcdd09d5075c9755538a93db8e3ca2690a803cc1.tar.gz
FindThings-bcdd09d5075c9755538a93db8e3ca2690a803cc1.tar.bz2
FindThings-bcdd09d5075c9755538a93db8e3ca2690a803cc1.zip
Finally getting interaction stuff done
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/samantha.c16
1 files changed, 14 insertions, 2 deletions
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;
+ }
}