[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-cvs] enigma/src lua.hh,1.5,1.6
From: |
Daniel Heck <address@hidden> |
Subject: |
[Enigma-cvs] enigma/src lua.hh,1.5,1.6 |
Date: |
Sun, 16 Nov 2003 18:40:05 +0000 |
Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv31837/src
Modified Files:
lua.hh
Log Message:
- Added lua::SetTableVar(), GlobalState(), ShutdownGlobal(),
InitLevel(), ShutdownLevel()
- Removed lua::state
Index: lua.hh
===================================================================
RCS file: /cvsroot/enigma/enigma/src/lua.hh,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** lua.hh 15 Jun 2003 10:38:19 -0000 1.5
--- lua.hh 16 Nov 2003 18:40:03 -0000 1.6
***************
*** 33,61 ****
namespace lua
{
! extern lua_State *state;
struct CFunction {
lua_CFunction func;
const char *name;
-
};
-
int FindDataFile (lua_State *L);
// Register the C functions in `funcs'. The end of the array is
// denoted by an entry with func==0.
! void RegisterFuncs (CFunction funcs[]);
/* Call a Lua function with one argument. This is mainly used for
callbacks during the game. */
! int CallFunc(const char *funcname, const enigma::Value& arg);
! int Dofile(const std::string & filename);
! int Dobuffer (const std::vector<char> &luacode);
! int DoSubfolderfile(const std::string & basefolder, const std::string &
filename);
! void Init();
! void Shutdown();
}
--- 33,72 ----
namespace lua
{
! extern lua_State *LevelState;
struct CFunction {
lua_CFunction func;
const char *name;
};
int FindDataFile (lua_State *L);
// Register the C functions in `funcs'. The end of the array is
// denoted by an entry with func==0.
! void RegisterFuncs (lua_State *L, CFunction funcs[]);
!
!
! void SetTableVar (lua_State *L,
! const char *tablename,
! const char *name,
! double value);
!
/* Call a Lua function with one argument. This is mainly used for
callbacks during the game. */
! int CallFunc(lua_State *L, const char *funcname, const enigma::Value&
arg);
! int Dofile(lua_State *L, const std::string & filename);
! int Dobuffer (lua_State *L, const std::vector<char> &luacode);
! int DoSubfolderfile(lua_State *L,
! const std::string & basefolder,
! const std::string & filename);
!
! lua_State *GlobalState();
! void ShutdownGlobal();
!
! lua_State *InitLevel();
! void ShutdownLevel();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Enigma-cvs] enigma/src lua.hh,1.5,1.6,
Daniel Heck <address@hidden> <=