From fb05b5d6c3c9e5ac7b733b8a911a24fc43644c3e Mon Sep 17 00:00:00 2001 From: Jorens Shtekels Date: Sun, 10 Mar 2024 19:41:59 +0200 Subject: [PATCH] feat[lib]: function placeholder --- src/lib.cpp | 13 +++++++++++++ src/lib.hh | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/src/lib.cpp b/src/lib.cpp index 2b58745..3ab6cb5 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -10,6 +10,19 @@ void run() { Role role2(actions); } +enum VALIDATION_STATUS { + NO_PLAYER, + ROOM_NOT_IN_PROGRESS, + ACTION_PROHIBITED, + ACTION_NOT_ALLOWED, + ACTION_VALID, +}; + +int validateAction( + Player *actor, Action *action, Room *room, std::vector *relatedEvents, Player *target = nullptr) { + return ACTION_VALID; +} + int functionToTest(int a) { return a * 2; } diff --git a/src/lib.hh b/src/lib.hh index a0bce46..fc6a08b 100644 --- a/src/lib.hh +++ b/src/lib.hh @@ -1,2 +1,6 @@ +#include "prep/prep.hh" + void run(); +int validateAction( + Player *actor, Action *action, Room *room, std::vector *relatedEvents, Player *target = nullptr); int functionToTest(int);