1 |
/* |
/* |
2 |
** Lua binding: enigma |
** Lua binding: enigma |
3 |
** Generated automatically by tolua 4.0a on Wed Feb 26 16:58:42 2003. |
** Generated automatically by tolua 4.0a on Sat Apr 5 00:29:20 2003. |
4 |
*/ |
*/ |
5 |
|
|
6 |
#include "tolua.h" |
#include "tolua.h" |
374 |
return 0; |
return 0; |
375 |
} |
} |
376 |
|
|
377 |
|
/* function: DefineSimpleStoneHollow */ |
378 |
|
static int toluaI_enigma_world_DefineSimpleStoneHollow00(lua_State* tolua_S) |
379 |
|
{ |
380 |
|
if ( |
381 |
|
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
382 |
|
!tolua_isnoobj(tolua_S,2) |
383 |
|
) |
384 |
|
goto tolua_lerror; |
385 |
|
else |
386 |
|
{ |
387 |
|
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
388 |
|
{ |
389 |
|
DefineSimpleStoneHollow(kind); |
390 |
|
} |
391 |
|
} |
392 |
|
return 0; |
393 |
|
tolua_lerror: |
394 |
|
tolua_error(tolua_S,"#ferror in function 'DefineSimpleStoneHollow'."); |
395 |
|
return 0; |
396 |
|
} |
397 |
|
|
398 |
|
/* function: DefineSimpleStoneGlass */ |
399 |
|
static int toluaI_enigma_world_DefineSimpleStoneGlass00(lua_State* tolua_S) |
400 |
|
{ |
401 |
|
if ( |
402 |
|
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
403 |
|
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
404 |
|
!tolua_isnoobj(tolua_S,3) |
405 |
|
) |
406 |
|
goto tolua_lerror; |
407 |
|
else |
408 |
|
{ |
409 |
|
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
410 |
|
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
411 |
|
{ |
412 |
|
DefineSimpleStoneGlass(kind,sound); |
413 |
|
} |
414 |
|
} |
415 |
|
return 0; |
416 |
|
tolua_lerror: |
417 |
|
tolua_error(tolua_S,"#ferror in function 'DefineSimpleStoneGlass'."); |
418 |
|
return 0; |
419 |
|
} |
420 |
|
|
421 |
|
/* function: DefineSimpleStoneMovable */ |
422 |
|
static int toluaI_enigma_world_DefineSimpleStoneMovable00(lua_State* tolua_S) |
423 |
|
{ |
424 |
|
if ( |
425 |
|
!tolua_istype(tolua_S,1,LUA_TSTRING,0) || |
426 |
|
!tolua_istype(tolua_S,2,LUA_TSTRING,0) || |
427 |
|
!tolua_isnoobj(tolua_S,3) |
428 |
|
) |
429 |
|
goto tolua_lerror; |
430 |
|
else |
431 |
|
{ |
432 |
|
const char* kind = ((const char*) tolua_getstring(tolua_S,1,0)); |
433 |
|
const char* sound = ((const char*) tolua_getstring(tolua_S,2,0)); |
434 |
|
{ |
435 |
|
DefineSimpleStoneMovable(kind,sound); |
436 |
|
} |
437 |
|
} |
438 |
|
return 0; |
439 |
|
tolua_lerror: |
440 |
|
tolua_error(tolua_S,"#ferror in function 'DefineSimpleStoneMovable'."); |
441 |
|
return 0; |
442 |
|
} |
443 |
|
|
444 |
/* function: DefineSimpleFloor */ |
/* function: DefineSimpleFloor */ |
445 |
static int toluaI_enigma_world_DefineSimpleFloor00(lua_State* tolua_S) |
static int toluaI_enigma_world_DefineSimpleFloor00(lua_State* tolua_S) |
446 |
{ |
{ |
1054 |
tolua_function(tolua_S,"world","GetNamedObject",toluaI_enigma_world_GetNamedObject00); |
tolua_function(tolua_S,"world","GetNamedObject",toluaI_enigma_world_GetNamedObject00); |
1055 |
tolua_function(tolua_S,"world","Create",toluaI_enigma_world_Create00); |
tolua_function(tolua_S,"world","Create",toluaI_enigma_world_Create00); |
1056 |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
1057 |
|
tolua_function(tolua_S,"world","DefineSimpleStoneHollow",toluaI_enigma_world_DefineSimpleStoneHollow00); |
1058 |
|
tolua_function(tolua_S,"world","DefineSimpleStoneGlass",toluaI_enigma_world_DefineSimpleStoneGlass00); |
1059 |
|
tolua_function(tolua_S,"world","DefineSimpleStoneMovable",toluaI_enigma_world_DefineSimpleStoneMovable00); |
1060 |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
1061 |
tolua_module(tolua_S,"video"); |
tolua_module(tolua_S,"video"); |
1062 |
tolua_function(tolua_S,"video","GetColorDepth",toluaI_enigma_video_GetColorDepth00); |
tolua_function(tolua_S,"video","GetColorDepth",toluaI_enigma_video_GetColorDepth00); |