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
8
class
ScriptManager
{
9
public
:
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
GameObject
Class representing a game object.
Definition
GameObject.h:68
ScriptManager
Definition
ScriptManager.h:8
Scriptable
The base class for scriptable components.
Definition
Script.h:17
Native Scripting
ScriptManager.h
Generated by
1.10.0