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
+2 -2
View File
@@ -1249,7 +1249,7 @@ public:
}
static int GetStepsByStepsType( T* p, lua_State *L )
{
StepsType st = (StepsType)IArg(1);
StepsType st = Enum::Check<StepsType>(L, 1);
const vector<Steps*> &v = p->GetStepsByStepsType( st );
LuaHelpers::CreateTableFromArray<Steps*>( v, L );
return 1;
@@ -1264,7 +1264,7 @@ public:
static int IsMarathon( T* p, lua_State *L ) { lua_pushboolean(L, p->IsMarathon()); return 1; }
static int HasStepsTypeAndDifficulty( T* p, lua_State *L )
{
StepsType st = (StepsType)IArg(1);
StepsType st = Enum::Check<StepsType>(L, 1);
Difficulty dc = Enum::Check<Difficulty>( L, 2 );