1 |
/* |
/* |
2 |
** Lua binding: enigma |
** Lua binding: enigma |
3 |
** Generated automatically by tolua 4.0a on Tue May 27 00:38:40 2003. |
** Generated automatically by tolua 4.0a on Sun Jun 1 02:22:03 2003. |
4 |
*/ |
*/ |
5 |
|
|
6 |
#include "tolua.h" |
#include "tolua.h" |
991 |
!tolua_istype(tolua_S,2,LUA_TNUMBER,1) || |
!tolua_istype(tolua_S,2,LUA_TNUMBER,1) || |
992 |
!tolua_istype(tolua_S,3,LUA_TNUMBER,1) || |
!tolua_istype(tolua_S,3,LUA_TNUMBER,1) || |
993 |
!tolua_istype(tolua_S,4,LUA_TNUMBER,1) || |
!tolua_istype(tolua_S,4,LUA_TNUMBER,1) || |
994 |
!tolua_isnoobj(tolua_S,5) |
!tolua_istype(tolua_S,5,LUA_TNUMBER,1) || |
995 |
|
!tolua_isnoobj(tolua_S,6) |
996 |
) |
) |
997 |
goto tolua_lerror; |
goto tolua_lerror; |
998 |
else |
else |
1000 |
int easy = ((int) tolua_getnumber(tolua_S,2,-1)); |
int easy = ((int) tolua_getnumber(tolua_S,2,-1)); |
1001 |
int hard = ((int) tolua_getnumber(tolua_S,3,-1)); |
int hard = ((int) tolua_getnumber(tolua_S,3,-1)); |
1002 |
int fin = ((int) tolua_getnumber(tolua_S,4,0)); |
int fin = ((int) tolua_getnumber(tolua_S,4,0)); |
1003 |
|
unsigned long solv = ((unsigned long) tolua_getnumber(tolua_S,5,0)); |
1004 |
{ |
{ |
1005 |
LevelStatus* toluaI_ret = (LevelStatus*) new LevelStatus(easy,hard,fin); |
LevelStatus* toluaI_ret = (LevelStatus*) new LevelStatus(easy,hard,fin,solv); |
1006 |
tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"LevelStatus")); |
tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"LevelStatus")); |
1007 |
} |
} |
1008 |
} |
} |