repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Criada classe Mapa; scrolling
[Projeto-PCG.git]
/
luaenv.h
blob
69bd33b319a5382f7b57cbd0adbfb587c78382cf
1
#ifndef SCRIPTLOADER_H
2
#define SCRIPTLOADER_H
3
4
extern
"C"
{
5
#include
"lua/lua.h"
6
#include
"lua/lauxlib.h"
7
#include
"lua/lualib.h"
8
}
9
10
#include <string>
11
#include <vector>
12
13
class
Script
{
14
public
:
15
std
::
string name
;
16
lua_State
*
L
;
17
Script
(
std
::
string name
) {
this
->
name
=
name
;
L
=
NULL
;}
18
};
19
20
class
luaRun
{
21
public
:
22
void
loadScripts
();
23
void
registerScripts
();
24
private
:
25
void
registerScript
(
const
std
::
string name
);
26
std
::
vector
<
Script
>
scripts
;
27
};
28
29
#endif