annotate LuaVM.h @ 2326:c889e521af1f

some EventCastSpell cleanups - removing labels, changing some numbers to enums
author Grumpy7
date Tue, 01 Apr 2014 22:19:57 +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;