create Script class
[Tsunagari.git] / src / script.h
blob4e40c54b177ae56be08e1d129a15f1c3d115acd9
1 /******************************
2 ** Tsunagari Tile Engine **
3 ** script.h **
4 ** Copyright 2011 OmegaSDG **
5 ******************************/
7 #ifndef SCRIPT_H
8 #define SCRIPT_H
10 #include <string>
12 #include <lua.hpp>
14 class Script
16 public:
17 Script();
18 ~Script();
20 void addFn(const char* name, lua_CFunction fn);
21 void addInt(const char* name, lua_Integer i);
22 void addData(const char* name, void* data);
24 void run(const char* fn);
26 private:
27 lua_State* L;
30 #endif