- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
20 lines (14 loc) · 441 Bytes
/
Copy pathmain.cpp
File metadata and controls
20 lines (14 loc) · 441 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include"FunctionManager.h"
#include"ScriptParser.h"
intmain()
{
FunctionManager functionManager;
// add our variables to our variable map
functionManager.variableMap["PlayerName"] = "Ryan";
functionManager.variableMap["StarterPokemon"] = "Torchic";
functionManager.RunScript("test.txt");
// switch variable value
functionManager.variableMap["StarterPokemon"] = "Treecko";
functionManager.RunScript("test.txt");
return0;
}