feat[lib]: function placeholder

This commit is contained in:
Jorens Shtekels 2024-03-10 19:41:59 +02:00
parent faf6d64ce0
commit fb05b5d6c3
2 changed files with 17 additions and 0 deletions

View File

@ -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<Event> *relatedEvents, Player *target = nullptr) {
return ACTION_VALID;
}
int functionToTest(int a) {
return a * 2;
}

View File

@ -1,2 +1,6 @@
#include "prep/prep.hh"
void run();
int validateAction(
Player *actor, Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr);
int functionToTest(int);