1 |
/* |
/* |
2 |
** Lua binding: enigma |
** Lua binding: enigma |
3 |
** Generated automatically by tolua 4.0a on Fri Jan 24 00:16:57 2003. |
** Generated automatically by tolua 4.0a on Sat Jan 25 10:49:28 2003. |
4 |
*/ |
*/ |
5 |
|
|
6 |
#include "tolua.h" |
#include "tolua.h" |
399 |
return 0; |
return 0; |
400 |
} |
} |
401 |
|
|
402 |
/* function: GetScreen */ |
/* function: GetColorDepth */ |
403 |
static int toluaI_enigma_video_GetScreen00(lua_State* tolua_S) |
static int toluaI_enigma_video_GetColorDepth00(lua_State* tolua_S) |
404 |
{ |
{ |
405 |
if ( |
if ( |
406 |
!tolua_isnoobj(tolua_S,1) |
!tolua_isnoobj(tolua_S,1) |
409 |
else |
else |
410 |
{ |
{ |
411 |
{ |
{ |
412 |
Screen* toluaI_ret = (Screen*) GetScreen(); |
int toluaI_ret = (int) GetColorDepth(); |
413 |
tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"Screen")); |
tolua_pushnumber(tolua_S,(double)toluaI_ret); |
414 |
} |
} |
415 |
} |
} |
416 |
return 1; |
return 1; |
417 |
tolua_lerror: |
tolua_lerror: |
418 |
tolua_error(tolua_S,"#ferror in function 'GetScreen'."); |
tolua_error(tolua_S,"#ferror in function 'GetColorDepth'."); |
419 |
return 0; |
return 0; |
420 |
} |
} |
421 |
|
|
422 |
/* function: HideMouse */ |
/* function: GetScreen */ |
423 |
static int toluaI_enigma_video_HideMouse00(lua_State* tolua_S) |
static int toluaI_enigma_video_GetScreen00(lua_State* tolua_S) |
424 |
{ |
{ |
425 |
if ( |
if ( |
426 |
!tolua_isnoobj(tolua_S,1) |
!tolua_isnoobj(tolua_S,1) |
429 |
else |
else |
430 |
{ |
{ |
431 |
{ |
{ |
432 |
HideMouse(); |
Screen* toluaI_ret = (Screen*) GetScreen(); |
433 |
|
tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"Screen")); |
434 |
} |
} |
435 |
} |
} |
436 |
return 0; |
return 1; |
437 |
tolua_lerror: |
tolua_lerror: |
438 |
tolua_error(tolua_S,"#ferror in function 'HideMouse'."); |
tolua_error(tolua_S,"#ferror in function 'GetScreen'."); |
439 |
return 0; |
return 0; |
440 |
} |
} |
441 |
|
|
442 |
/* function: ShowMouse */ |
/* function: HideMouse */ |
443 |
static int toluaI_enigma_video_ShowMouse00(lua_State* tolua_S) |
static int toluaI_enigma_video_HideMouse00(lua_State* tolua_S) |
444 |
{ |
{ |
445 |
if ( |
if ( |
446 |
!tolua_isnoobj(tolua_S,1) |
!tolua_isnoobj(tolua_S,1) |
449 |
else |
else |
450 |
{ |
{ |
451 |
{ |
{ |
452 |
ShowMouse(); |
HideMouse(); |
453 |
} |
} |
454 |
} |
} |
455 |
return 0; |
return 0; |
456 |
tolua_lerror: |
tolua_lerror: |
457 |
tolua_error(tolua_S,"#ferror in function 'ShowMouse'."); |
tolua_error(tolua_S,"#ferror in function 'HideMouse'."); |
|
return 0; |
|
|
} |
|
|
|
|
|
/* function: Mousex */ |
|
|
static int toluaI_enigma_video_Mousex00(lua_State* tolua_S) |
|
|
{ |
|
|
if ( |
|
|
!tolua_isnoobj(tolua_S,1) |
|
|
) |
|
|
goto tolua_lerror; |
|
|
else |
|
|
{ |
|
|
{ |
|
|
int toluaI_ret = (int) Mousex(); |
|
|
tolua_pushnumber(tolua_S,(double)toluaI_ret); |
|
|
} |
|
|
} |
|
|
return 1; |
|
|
tolua_lerror: |
|
|
tolua_error(tolua_S,"#ferror in function 'Mousex'."); |
|
458 |
return 0; |
return 0; |
459 |
} |
} |
460 |
|
|
461 |
/* function: Mousey */ |
/* function: ShowMouse */ |
462 |
static int toluaI_enigma_video_Mousey00(lua_State* tolua_S) |
static int toluaI_enigma_video_ShowMouse00(lua_State* tolua_S) |
463 |
{ |
{ |
464 |
if ( |
if ( |
465 |
!tolua_isnoobj(tolua_S,1) |
!tolua_isnoobj(tolua_S,1) |
468 |
else |
else |
469 |
{ |
{ |
470 |
{ |
{ |
471 |
int toluaI_ret = (int) Mousey(); |
ShowMouse(); |
|
tolua_pushnumber(tolua_S,(double)toluaI_ret); |
|
472 |
} |
} |
473 |
} |
} |
|
return 1; |
|
|
tolua_lerror: |
|
|
tolua_error(tolua_S,"#ferror in function 'Mousey'."); |
|
474 |
return 0; |
return 0; |
|
} |
|
|
|
|
|
/* function: GetColorDepth */ |
|
|
static int toluaI_enigma_video_GetColorDepth00(lua_State* tolua_S) |
|
|
{ |
|
|
if ( |
|
|
!tolua_isnoobj(tolua_S,1) |
|
|
) |
|
|
goto tolua_lerror; |
|
|
else |
|
|
{ |
|
|
{ |
|
|
int toluaI_ret = (int) GetColorDepth(); |
|
|
tolua_pushnumber(tolua_S,(double)toluaI_ret); |
|
|
} |
|
|
} |
|
|
return 1; |
|
475 |
tolua_lerror: |
tolua_lerror: |
476 |
tolua_error(tolua_S,"#ferror in function 'GetColorDepth'."); |
tolua_error(tolua_S,"#ferror in function 'ShowMouse'."); |
477 |
return 0; |
return 0; |
478 |
} |
} |
479 |
|
|
757 |
return 0; |
return 0; |
758 |
} |
} |
759 |
|
|
|
/* get function: MouseDamping */ |
|
|
static int toluaI_get_enigma_options_MouseDamping(lua_State* tolua_S) |
|
|
{ |
|
|
tolua_pushnumber(tolua_S,(double)MouseDamping); |
|
|
return 1; |
|
|
} |
|
|
|
|
|
/* set function: MouseDamping */ |
|
|
static int toluaI_set_enigma_options_MouseDamping(lua_State* tolua_S) |
|
|
{ |
|
|
if (!tolua_istype(tolua_S,1,LUA_TNUMBER,0)) |
|
|
tolua_error(tolua_S,"#vinvalid type in variable assignment."); |
|
|
MouseDamping = ((double) tolua_getnumber(tolua_S,1,0)); |
|
|
return 0; |
|
|
} |
|
|
|
|
760 |
/* get function: MouseSpeed */ |
/* get function: MouseSpeed */ |
761 |
static int toluaI_get_enigma_options_MouseSpeed(lua_State* tolua_S) |
static int toluaI_get_enigma_options_MouseSpeed(lua_State* tolua_S) |
762 |
{ |
{ |
773 |
return 0; |
return 0; |
774 |
} |
} |
775 |
|
|
|
/* get function: FrictionFactor */ |
|
|
static int toluaI_get_enigma_options_FrictionFactor(lua_State* tolua_S) |
|
|
{ |
|
|
tolua_pushnumber(tolua_S,(double)FrictionFactor); |
|
|
return 1; |
|
|
} |
|
|
|
|
|
/* set function: FrictionFactor */ |
|
|
static int toluaI_set_enigma_options_FrictionFactor(lua_State* tolua_S) |
|
|
{ |
|
|
if (!tolua_istype(tolua_S,1,LUA_TNUMBER,0)) |
|
|
tolua_error(tolua_S,"#vinvalid type in variable assignment."); |
|
|
FrictionFactor = ((double) tolua_getnumber(tolua_S,1,0)); |
|
|
return 0; |
|
|
} |
|
|
|
|
776 |
/* get function: WizardMode */ |
/* get function: WizardMode */ |
777 |
static int toluaI_get_enigma_options_WizardMode(lua_State* tolua_S) |
static int toluaI_get_enigma_options_WizardMode(lua_State* tolua_S) |
778 |
{ |
{ |
973 |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
tolua_function(tolua_S,"world","DefineSimpleStone",toluaI_enigma_world_DefineSimpleStone00); |
974 |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
tolua_function(tolua_S,"world","DefineSimpleFloor",toluaI_enigma_world_DefineSimpleFloor00); |
975 |
tolua_module(tolua_S,"video"); |
tolua_module(tolua_S,"video"); |
976 |
|
tolua_function(tolua_S,"video","GetColorDepth",toluaI_enigma_video_GetColorDepth00); |
977 |
tolua_function(tolua_S,"video","GetScreen",toluaI_enigma_video_GetScreen00); |
tolua_function(tolua_S,"video","GetScreen",toluaI_enigma_video_GetScreen00); |
978 |
tolua_function(tolua_S,"video","HideMouse",toluaI_enigma_video_HideMouse00); |
tolua_function(tolua_S,"video","HideMouse",toluaI_enigma_video_HideMouse00); |
979 |
tolua_function(tolua_S,"video","ShowMouse",toluaI_enigma_video_ShowMouse00); |
tolua_function(tolua_S,"video","ShowMouse",toluaI_enigma_video_ShowMouse00); |
|
tolua_function(tolua_S,"video","Mousex",toluaI_enigma_video_Mousex00); |
|
|
tolua_function(tolua_S,"video","Mousey",toluaI_enigma_video_Mousey00); |
|
|
tolua_function(tolua_S,"video","GetColorDepth",toluaI_enigma_video_GetColorDepth00); |
|
980 |
tolua_module(tolua_S,"display"); |
tolua_module(tolua_S,"display"); |
981 |
tolua_constant(tolua_S,"display","FOLLOW_SCROLLING",FOLLOW_SCROLLING); |
tolua_constant(tolua_S,"display","FOLLOW_SCROLLING",FOLLOW_SCROLLING); |
982 |
tolua_constant(tolua_S,"display","FOLLOW_SCREEN",FOLLOW_SCREEN); |
tolua_constant(tolua_S,"display","FOLLOW_SCREEN",FOLLOW_SCREEN); |
991 |
tolua_function(tolua_S,"display","AddFrame",toluaI_enigma_display_AddFrame00); |
tolua_function(tolua_S,"display","AddFrame",toluaI_enigma_display_AddFrame00); |
992 |
tolua_function(tolua_S,"display","DefineAlias",toluaI_enigma_display_DefineAlias00); |
tolua_function(tolua_S,"display","DefineAlias",toluaI_enigma_display_DefineAlias00); |
993 |
tolua_module(tolua_S,"options"); |
tolua_module(tolua_S,"options"); |
|
tolua_tablevar(tolua_S,"options","MouseDamping",toluaI_get_enigma_options_MouseDamping,toluaI_set_enigma_options_MouseDamping); |
|
994 |
tolua_tablevar(tolua_S,"options","MouseSpeed",toluaI_get_enigma_options_MouseSpeed,toluaI_set_enigma_options_MouseSpeed); |
tolua_tablevar(tolua_S,"options","MouseSpeed",toluaI_get_enigma_options_MouseSpeed,toluaI_set_enigma_options_MouseSpeed); |
|
tolua_tablevar(tolua_S,"options","FrictionFactor",toluaI_get_enigma_options_FrictionFactor,toluaI_set_enigma_options_FrictionFactor); |
|
995 |
tolua_tablevar(tolua_S,"options","WizardMode",toluaI_get_enigma_options_WizardMode,toluaI_set_enigma_options_WizardMode); |
tolua_tablevar(tolua_S,"options","WizardMode",toluaI_get_enigma_options_WizardMode,toluaI_set_enigma_options_WizardMode); |
996 |
tolua_tablevar(tolua_S,"options","FullScreen",toluaI_get_enigma_options_FullScreen,toluaI_set_enigma_options_FullScreen); |
tolua_tablevar(tolua_S,"options","FullScreen",toluaI_get_enigma_options_FullScreen,toluaI_set_enigma_options_FullScreen); |
997 |
tolua_tablevar(tolua_S,"options","UseAlpha",toluaI_get_enigma_options_UseAlpha,toluaI_set_enigma_options_UseAlpha); |
tolua_tablevar(tolua_S,"options","UseAlpha",toluaI_get_enigma_options_UseAlpha,toluaI_set_enigma_options_UseAlpha); |