Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
gameplayscript.h
1
#pragma once
2
3
#include <list>
4
#include <memory>
5
#include <vector>
6
7
#include <glm/glm.hpp>
8
9
#include "scripting/script.h"
10
11
12
class
ScriptEngine
;
13
class
Ship
;
14
class
Squad
;
15
class
WorldObject
;
16
17
class
GamePlayScript
:
public
Script
{
18
public
:
19
GamePlayScript
(
ScriptEngine
* scriptEngine);
20
virtual
~
GamePlayScript
();
21
22
ScriptEngine
& scriptEngine();
23
LuaWrapper
& luaWrapper();
24
25
/* Add a Scriptable to be hold by this script. On destruction of the script
26
this Scriptable becomes invalid and will be destroyed */
27
void
addLocal(
int
key);
28
29
30
31
protected
:
32
ScriptEngine
* m_scriptEngine;
33
std::list<int> m_locals;
34
};
35
WorldObject
Definition:
worldobject.h:43
GamePlayScript
Definition:
gameplayscript.h:17
LuaWrapper
Definition:
luawrapper.h:17
Squad
Definition:
squad.h:16
ScriptEngine
Definition:
scriptengine.h:17
Ship
Definition:
ship.h:23
Script
Definition:
script.h:14
src
scripting
gameplayscript.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6