bind StepsType

This commit is contained in:
Glenn Maynard
2006-09-27 06:09:52 +00:00
parent 1c8188cf21
commit 982228b7e6
7 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -926,7 +926,7 @@ public:
static int GetEstimatedNumStages( T* p, lua_State *L ) { lua_pushnumber(L, p->GetEstimatedNumStages() ); return 1; }
static int GetTotalSeconds( T* p, lua_State *L )
{
StepsType st = (StepsType) IArg(1);
StepsType st = Enum::Check<StepsType>(L, 1);
float fTotalSeconds;
if( !p->GetTotalSeconds(st, fTotalSeconds) )
lua_pushnil( L );