Voxellancer  0.3
A game about voxels in space
 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 
Definition: worldobject.h:43
Definition: gameplayscript.h:17
Definition: luawrapper.h:17
Definition: squad.h:16
Definition: scriptengine.h:17
Definition: ship.h:23
Definition: script.h:14