This commit is contained in:
Glenn Maynard
2006-03-24 18:32:31 +00:00
parent 780eeece46
commit 8fb7b2fbc5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -677,7 +677,7 @@ public:
static int GetDescription( T* p, lua_State *L ) { lua_pushstring(L, p->GetDescription() ); return 1; } static int GetDescription( T* p, lua_State *L ) { lua_pushstring(L, p->GetDescription() ); return 1; }
static int GetUnlockRewardType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_Type ); return 1; } static int GetUnlockRewardType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_Type ); return 1; }
static int GetRequirement( T* p, lua_State *L ) { UnlockRequirement i = (UnlockRequirement)IArg(1); lua_pushnumber(L, p->m_fRequirement[i] ); return 1; } static int GetRequirement( T* p, lua_State *L ) { UnlockRequirement i = (UnlockRequirement)IArg(1); lua_pushnumber(L, p->m_fRequirement[i] ); return 1; }
static int GetRequrePassHardSteps( T* p, lua_State *L ) { lua_pushboolean(L, p->m_bRequirePassHardSteps); return 1; } static int GetRequirePassHardSteps( T* p, lua_State *L ){ lua_pushboolean(L, p->m_bRequirePassHardSteps); return 1; }
static void Register(lua_State *L) static void Register(lua_State *L)
{ {
@@ -686,7 +686,7 @@ public:
ADD_METHOD( GetDescription ); ADD_METHOD( GetDescription );
ADD_METHOD( GetUnlockRewardType ); ADD_METHOD( GetUnlockRewardType );
ADD_METHOD( GetRequirement ); ADD_METHOD( GetRequirement );
ADD_METHOD( GetRequrePassHardSteps ); ADD_METHOD( GetRequirePassHardSteps );
Luna<T>::Register( L ); Luna<T>::Register( L );
} }
+2 -2
View File
@@ -52,7 +52,7 @@ public:
m_pCourse = NULL; m_pCourse = NULL;
ZERO( m_fRequirement ); ZERO( m_fRequirement );
m_bRequrePassHardSteps = false; m_bRequirePassHardSteps = false;
m_iEntryID = -1; // -1 == not yet filled. This will be filled in automatically if not specified. m_iEntryID = -1; // -1 == not yet filled. This will be filled in automatically if not specified.
} }
@@ -66,7 +66,7 @@ public:
Course *m_pCourse; Course *m_pCourse;
float m_fRequirement[NUM_UnlockRequirement]; // unlocked if any of of these are met float m_fRequirement[NUM_UnlockRequirement]; // unlocked if any of of these are met
bool m_bRequrePassHardSteps; bool m_bRequirePassHardSteps;
int m_iEntryID; int m_iEntryID;
bool IsValid() const; bool IsValid() const;