1 |
/* |
/* |
2 |
** Lua binding: enigma |
** Lua binding: enigma |
3 |
** Generated automatically by tolua 4.0a on Tue Jun 24 22:29:55 2003. |
** Generated automatically by tolua 4.0a on Fri Jul 11 12:40:01 2003. |
4 |
*/ |
*/ |
5 |
|
|
6 |
#include "tolua.h" |
#include "tolua.h" |
475 |
if ( |
if ( |
476 |
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
477 |
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
478 |
!tolua_isnoobj(tolua_S,3) |
!tolua_istype(tolua_S,3,LUA_TNUMBER,0) || |
479 |
|
!tolua_istype(tolua_S,4,LUA_TNUMBER,0) || |
480 |
|
!tolua_isnoobj(tolua_S,5) |
481 |
) |
) |
482 |
goto tolua_lerror; |
goto tolua_lerror; |
483 |
else |
else |
484 |
{ |
{ |
485 |
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
486 |
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
487 |
|
int hollow = ((int) tolua_getnumber(tolua_S,3,0)); |
488 |
|
int glass = ((int) tolua_getnumber(tolua_S,4,0)); |
489 |
{ |
{ |
490 |
DefineSimpleStone(kind,sound); |
DefineSimpleStone(kind,sound,hollow,glass); |
491 |
} |
} |
492 |
} |
} |
493 |
return 0; |
return 0; |
496 |
return 0; |
return 0; |
497 |
} |
} |
498 |
|
|
|
/* function: DefineSimpleStoneHollow */ |
|
|
static int toluaI_enigma_world_DefineSimpleStoneHollow00(lua_State* tolua_S) |
|
|
{ |
|
|
if ( |
|
|
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
|
|
!tolua_isnoobj(tolua_S,2) |
|
|
) |
|
|
goto tolua_lerror; |
|
|
else |
|
|
{ |
|
|
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
|
|
{ |
|
|
DefineSimpleStoneHollow(kind); |
|
|
} |
|
|
} |
|
|
return 0; |
|
|
tolua_lerror: |
|
|
tolua_error(tolua_S,"#ferror in function 'DefineSimpleStoneHollow'."); |
|
|
return 0; |
|
|
} |
|
|
|
|
|
/* function: DefineSimpleStoneGlass */ |
|
|
static int toluaI_enigma_world_DefineSimpleStoneGlass00(lua_State* tolua_S) |
|
|
{ |
|
|
if ( |
|
|
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
|
|
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
|
|
!tolua_isnoobj(tolua_S,3) |
|
|
) |
|
|
goto tolua_lerror; |
|
|
else |
|
|
{ |
|
|
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
|
|
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
|
|
{ |
|
|
DefineSimpleStoneGlass(kind,sound); |
|
|
} |
|
|
} |
|
|
return 0; |
|
|
tolua_lerror: |
|
|
tolua_error(tolua_S,"#ferror in function 'DefineSimpleStoneGlass'."); |
|
|
return 0; |
|
|
} |
|
|
|
|
499 |
/* function: DefineSimpleStoneMovable */ |
/* function: DefineSimpleStoneMovable */ |
500 |
static int toluaI_enigma_world_DefineSimpleStoneMovable00(lua_State* tolua_S) |
static int toluaI_enigma_world_DefineSimpleStoneMovable00(lua_State* tolua_S) |
501 |
{ |
{ |
502 |
if ( |
if ( |
503 |
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
504 |
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
505 |
!tolua_isnoobj(tolua_S,3) |
!tolua_istype(tolua_S,3,LUA_TNUMBER,0) || |
506 |
|
!tolua_isnoobj(tolua_S,4) |
507 |
) |
) |
508 |
goto tolua_lerror; |
goto tolua_lerror; |
509 |
else |
else |
510 |
{ |
{ |
511 |
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
512 |
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
513 |
|
int glass = ((int) tolua_getnumber(tolua_S,3,0)); |
514 |
{ |
{ |
515 |
DefineSimpleStoneMovable(kind,sound); |
DefineSimpleStoneMovable(kind,sound,glass); |
516 |
} |
} |
517 |
} |
} |
518 |
return 0; |
return 0; |
908 |
tolua_function(tolua_S,"world","GetNamedObject",toluaI_enigma_world_GetNamedObject00); |
tolua_function(tolua_S,"world","GetNamedObject",toluaI_enigma_world_GetNamedObject00); |
909 |
tolua_function(tolua_S,"world","Create",toluaI_enigma_world_Create00); |
tolua_function(tolua_S,"world","Create",toluaI_enigma_world_Create00); |
910 |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
|
tolua_function(tolua_S,"world","DefineSimpleStoneHollow",toluaI_enigma_world_DefineSimpleStoneHollow00); |
|
|
tolua_function(tolua_S,"world","DefineSimpleStoneGlass",toluaI_enigma_world_DefineSimpleStoneGlass00); |
|
911 |
tolua_function(tolua_S,"world","DefineSimpleStoneMovable",toluaI_enigma_world_DefineSimpleStoneMovable00); |
tolua_function(tolua_S,"world","DefineSimpleStoneMovable",toluaI_enigma_world_DefineSimpleStoneMovable00); |
912 |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
913 |
tolua_module(tolua_S,"video"); |
tolua_module(tolua_S,"video"); |