- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptableFunctions.cpp
More file actions
Latest commit
24 lines (22 loc) · 834 Bytes
/
Copy pathScriptableFunctions.cpp
File metadata and controls
24 lines (22 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include"ScriptableFunctions.h"
/**
* \brief Stub for simulating moving to a grid coordinate.
* \param args 2 integers, 1st = X coordinate, 2nd = Y coordinate.
*/
voidScriptableFunctions::MoveToXY(std::vector<std::string> args)
{
auto arguments = static_cast<std::vector<std::string>*>(&args)[0];
constauto x = std::stoi(arguments[0]);
constauto y = std::stoi(arguments[1]);
std::cout << "Moved to grid XY: (" << x << ", " << y << ")" << std::endl;
}
/**
* \brief Stub for simulating dialogue being printed.
* \param args 1 string of dialogue that should be displayed.
*/
voidScriptableFunctions::PrintDialogue(std::vector<std::string> args)
{
auto arguments = static_cast<std::vector<std::string>*>(&args)[0];
constauto dialogueText = arguments[0];
std::cout << "Print Dialogue: " << dialogueText << std::endl;
}