NWengine 0.9
Loading...
Searching...
No Matches
ScriptManager.h
1#pragma once
2#include<string>
3#include<map>
4#include "Utilities.h"
5#include "Script.h"
6
7
9public:
10 static std::map<std::string, Scriptable* (*)(GameObject*)> ScriptsMap;
11 static std::map<std::string, std::string> scriptList;
12
13 static Scriptable* GetScriptFromDLL(std::string name, GameObject* go);
14 static Scriptable* GetScriptFromHeaderFile(std::string name, GameObject* go);
15 static Scriptable* CreateScript(std::string name, GameObject* go);
16
17 static void SaveScriptList();
18 static void LoadScriptList();
19 static bool CompileScripts(); //Should return 0 if action has failed
20 static bool CompileScript(std::string element);
21 static bool CompileScriptManager();
22};
23
24
Class representing a game object.
Definition GameObject.h:68
Definition ScriptManager.h:8
The base class for scriptable components.
Definition Script.h:17