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

Diff of /enigma/src/enigma-lua.cc

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

revision 1.2 by dheck, Thu Jan 9 10:19:20 2003 UTC revision 1.3 by dheck, Thu Jan 9 18:27:33 2003 UTC
# Line 1  Line 1 
1  /*  /*
2  ** Lua binding: enigma  ** Lua binding: enigma
3  ** Generated automatically by tolua 4.0a on Wed Jan  8 19:04:34 2003.  ** Generated automatically by tolua 4.0a on Thu Jan  9 19:05:03 2003.
4  */  */
5    
6  #include "tolua.h"  #include "tolua.h"
# Line 924  static int toluaI_set_enigma_options_Mus Line 924  static int toluaI_set_enigma_options_Mus
924   return 0;   return 0;
925  }  }
926    
927    /* get function: StereoSeparation */
928    static int toluaI_get_enigma_options_StereoSeparation(lua_State* tolua_S)
929    {
930     tolua_pushnumber(tolua_S,(double)StereoSeparation);
931     return 1;
932    }
933    
934    /* set function: StereoSeparation */
935    static int toluaI_set_enigma_options_StereoSeparation(lua_State* tolua_S)
936    {
937     if (!tolua_istype(tolua_S,1,LUA_TNUMBER,0))
938     tolua_error(tolua_S,"#vinvalid type in variable assignment.");
939      StereoSeparation = ((double)  tolua_getnumber(tolua_S,1,0));
940     return 0;
941    }
942    
943  /* method: new of class  LevelStatus */  /* method: new of class  LevelStatus */
944  static int toluaI_enigma_options_LevelStatus_new00(lua_State* tolua_S)  static int toluaI_enigma_options_LevelStatus_new00(lua_State* tolua_S)
945  {  {
# Line 995  tolua_lerror: Line 1011  tolua_lerror:
1011   return 0;   return 0;
1012  }  }
1013    
 /* function: SetVolume */  
 static int toluaI_enigma_options_SetVolume00(lua_State* tolua_S)  
 {  
  if (  
  !tolua_istype(tolua_S,1,LUA_TNUMBER,0) ||  
  !tolua_isnoobj(tolua_S,2)  
  )  
  goto tolua_lerror;  
  else  
  {  
   double vol = ((double)  tolua_getnumber(tolua_S,1,0));  
  {  
   SetVolume(vol);  
  }  
  }  
  return 0;  
 tolua_lerror:  
  tolua_error(tolua_S,"#ferror in function 'SetVolume'.");  
  return 0;  
 }  
   
1014  /* Open function */  /* Open function */
1015  int tolua_enigma_open (lua_State* tolua_S)  int tolua_enigma_open (lua_State* tolua_S)
1016  {  {
# Line 1077  int tolua_enigma_open (lua_State* tolua_ Line 1072  int tolua_enigma_open (lua_State* tolua_
1072   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);
1073   tolua_tablevar(tolua_S,"options","SoundVolume",toluaI_get_enigma_options_SoundVolume,toluaI_set_enigma_options_SoundVolume);   tolua_tablevar(tolua_S,"options","SoundVolume",toluaI_get_enigma_options_SoundVolume,toluaI_set_enigma_options_SoundVolume);
1074   tolua_tablevar(tolua_S,"options","MusicVolume",toluaI_get_enigma_options_MusicVolume,toluaI_set_enigma_options_MusicVolume);   tolua_tablevar(tolua_S,"options","MusicVolume",toluaI_get_enigma_options_MusicVolume,toluaI_set_enigma_options_MusicVolume);
1075     tolua_tablevar(tolua_S,"options","StereoSeparation",toluaI_get_enigma_options_StereoSeparation,toluaI_set_enigma_options_StereoSeparation);
1076   tolua_cclass(tolua_S,"LevelStatus","");   tolua_cclass(tolua_S,"LevelStatus","");
1077   tolua_function(tolua_S,"LevelStatus","new",toluaI_enigma_options_LevelStatus_new00);   tolua_function(tolua_S,"LevelStatus","new",toluaI_enigma_options_LevelStatus_new00);
1078   tolua_function(tolua_S,"LevelStatus","delete",toluaI_enigma_options_LevelStatus_delete00);   tolua_function(tolua_S,"LevelStatus","delete",toluaI_enigma_options_LevelStatus_delete00);
1079   tolua_function(tolua_S,"options","SetLevelStatus",toluaI_enigma_options_SetLevelStatus00);   tolua_function(tolua_S,"options","SetLevelStatus",toluaI_enigma_options_SetLevelStatus00);
  tolua_function(tolua_S,"options","SetVolume",toluaI_enigma_options_SetVolume00);  
1080   return 1;   return 1;
1081  }  }
1082  /* Close function */  /* Close function */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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