annotate LuaVM.h @ 2342:d7f4dac06dc0

Adding Registry.h/.cpp to project
author Grumpy7
date Sun, 06 Apr 2014 12:57:04 +0200
parents 62a27b2cfcc2
children
rev   line source
2052
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
1 #pragma once
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
2
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
3 class LuaVM
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
4 {
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
5 public:
2054
62a27b2cfcc2 Player.swig
Nomad
parents: 2052
diff changeset
6 inline LuaVM(): L(nullptr) {}
62a27b2cfcc2 Player.swig
Nomad
parents: 2052
diff changeset
7
2052
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
8 void Initialize();
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
9 bool DoFile(const char *filename);
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
10
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
11 protected:
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
12 struct lua_State *L;
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
13
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
14 const char *GetScriptFileLocation(const char *script_name);
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
15 };
71a814f4482a Moved implementation to cpp
Nomad
parents:
diff changeset
16 extern LuaVM *lua;