lua method rename: GetDifficulty -> GetCourseDifficulty
This commit is contained in:
@@ -191,11 +191,14 @@ class LunaTrail: public Luna<Trail>
|
|||||||
public:
|
public:
|
||||||
LunaTrail() { LUA->Register( Register ); }
|
LunaTrail() { LUA->Register( Register ); }
|
||||||
|
|
||||||
static int GetDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_CourseDifficulty ); return 1; }
|
static int GetCourseDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_CourseDifficulty ); return 1; }
|
||||||
|
static int GetStepsType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_StepsType ); return 1; }
|
||||||
|
|
||||||
static void Register(lua_State *L)
|
static void Register(lua_State *L)
|
||||||
{
|
{
|
||||||
ADD_METHOD( GetDifficulty )
|
ADD_METHOD( GetCourseDifficulty )
|
||||||
|
ADD_METHOD( GetStepsType )
|
||||||
|
|
||||||
Luna<T>::Register( L );
|
Luna<T>::Register( L );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user