lua
This commit is contained in:
@@ -91,6 +91,23 @@ int PlayerState::GetSumOfActiveAttackLevels() const
|
|||||||
return iSum;
|
return iSum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// lua start
|
||||||
|
#include "LuaBinding.h"
|
||||||
|
|
||||||
|
class LunaPlayerState: public Luna<PlayerState>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LunaPlayerState() { LUA->Register( Register ); }
|
||||||
|
|
||||||
|
static void Register(lua_State *L)
|
||||||
|
{
|
||||||
|
Luna<T>::Register( L );
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
LUA_REGISTER_CLASS( PlayerState )
|
||||||
|
// lua end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2001-2004 Chris Danford, Chris Gomez
|
* (c) 2001-2004 Chris Danford, Chris Gomez
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "PlayerOptions.h"
|
#include "PlayerOptions.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include "Attack.h"
|
#include "Attack.h"
|
||||||
|
struct lua_State;
|
||||||
|
|
||||||
class PlayerState
|
class PlayerState
|
||||||
{
|
{
|
||||||
@@ -96,6 +97,9 @@ public:
|
|||||||
// Used in Battle
|
// Used in Battle
|
||||||
//
|
//
|
||||||
Attack m_Inventory[NUM_INVENTORY_SLOTS];
|
Attack m_Inventory[NUM_INVENTORY_SLOTS];
|
||||||
|
|
||||||
|
// Lua
|
||||||
|
void PushSelf( lua_State *L );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user