/[enigma]/enigma/enigma-lua.cc
ViewVC logotype

Diff of /enigma/enigma-lua.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by dheck, Wed Oct 23 19:07:38 2002 UTC revision 1.8 by dheck, Sat Oct 26 23:49:45 2002 UTC
# Line 1  Line 1 
1  /*  /*
2  ** Lua binding: enigma  ** Lua binding: enigma
3  ** Generated automatically by tolua 4.0a on Tue Oct 22 23:17:24 2002.  ** Generated automatically by tolua 4.0a on Thu Oct 24 16:49:38 2002.
4  */  */
5    
6  #include "tolua.h"  #include "tolua.h"
# Line 34  static void toluaI_reg_types (lua_State* Line 34  static void toluaI_reg_types (lua_State*
34   tolua_usertype(tolua_S,"Rect");   tolua_usertype(tolua_S,"Rect");
35  }  }
36    
37    /* get function: ConserveLevel */
38    static int toluaI_get_enigma_enigma_ConserveLevel(lua_State* tolua_S)
39    {
40     tolua_pushnumber(tolua_S,(double)ConserveLevel);
41     return 1;
42    }
43    
44    /* set function: ConserveLevel */
45    static int toluaI_set_enigma_enigma_ConserveLevel(lua_State* tolua_S)
46    {
47     if (!tolua_istype(tolua_S,1,LUA_TNUMBER,0))
48     tolua_error(tolua_S,"#vinvalid type in variable assignment.");
49      ConserveLevel = ((int)  tolua_getnumber(tolua_S,1,0));
50     return 0;
51    }
52    
53  /* function: ClearLevelList */  /* function: ClearLevelList */
54  static int toluaI_enigma_enigma_ClearLevelList00(lua_State* tolua_S)  static int toluaI_enigma_enigma_ClearLevelList00(lua_State* tolua_S)
55  {  {
# Line 779  int tolua_enigma_open (lua_State* tolua_ Line 795  int tolua_enigma_open (lua_State* tolua_
795   tolua_constant(tolua_S,"enigma","EAST",EAST);   tolua_constant(tolua_S,"enigma","EAST",EAST);
796   tolua_constant(tolua_S,"enigma","SOUTH",SOUTH);   tolua_constant(tolua_S,"enigma","SOUTH",SOUTH);
797   tolua_constant(tolua_S,"enigma","WEST",WEST);   tolua_constant(tolua_S,"enigma","WEST",WEST);
798     tolua_tablevar(tolua_S,"enigma","ConserveLevel",toluaI_get_enigma_enigma_ConserveLevel,toluaI_set_enigma_enigma_ConserveLevel);
799   tolua_function(tolua_S,"enigma","ClearLevelList",toluaI_enigma_enigma_ClearLevelList00);   tolua_function(tolua_S,"enigma","ClearLevelList",toluaI_enigma_enigma_ClearLevelList00);
800   tolua_function(tolua_S,"enigma","AddLevel",toluaI_enigma_enigma_AddLevel00);   tolua_function(tolua_S,"enigma","AddLevel",toluaI_enigma_enigma_AddLevel00);
801   tolua_function(tolua_S,"enigma","GetImage",toluaI_enigma_enigma_GetImage00);   tolua_function(tolua_S,"enigma","GetImage",toluaI_enigma_enigma_GetImage00);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26