log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
mm7
annotate Engine/LuaVM.h @ 2499:
68cdef6879a0
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
engine folder
author
Ritor1
date
Fri, 19 Sep 2014 02:57:42 +0600
parents
children
rev
line source
2499
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
1
#pragma once
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
2
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
3
class LuaVM
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
4
{
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
5
public:
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
6
inline LuaVM(): L(nullptr) {}
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
7
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
8
void Initialize();
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
9
bool DoFile(const char *filename);
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
10
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
11
protected:
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
12
struct lua_State *L;
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
13
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
14
const char *GetScriptFileLocation(const char *script_name);
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
15
};
68cdef6879a0
engine folder
Ritor1
parents:
diff
changeset
16
extern LuaVM *lua;