Exemplo n.º 1
0
* to redefine the same methods for each class.
*
* This is because of the way we dynamically pull instance pointers;
* these are typedef'd within the class, so that we can refer to them 
* to grab the class name from within. As we type check these with Lua,
* they'll fail, so we won't be able to use them.
*
* I don't think this is such a big issue, as there's only a handful of
* cases that actually require this behaviour.
**/

#define LUA_CLASS CUser
DEFINE_LUA_CLASS
	(
	// Getters
	MAKE_LUA_METHOD(GetName)
	MAKE_LUA_METHOD(GetAccountName)
	MAKE_LUA_METHOD(GetZoneID)
	MAKE_LUA_METHOD(GetX)
	MAKE_LUA_METHOD(GetY)
	MAKE_LUA_METHOD(GetZ)
	MAKE_LUA_METHOD(GetNation)
	MAKE_LUA_METHOD(GetLevel)
	MAKE_LUA_METHOD(GetClass)
	MAKE_LUA_METHOD(GetCoins)
	MAKE_LUA_METHOD(GetInnCoins)
	MAKE_LUA_METHOD(GetLoyalty)
	MAKE_LUA_METHOD(GetMonthlyLoyalty)
	MAKE_LUA_METHOD(GetManner)
	MAKE_LUA_METHOD(GetActiveQuestID)
	MAKE_LUA_METHOD(GetClanGrade)
Exemplo n.º 2
0
 * to redefine the same methods for each class.
 *
 * This is because of the way we dynamically pull instance pointers;
 * these are typedef'd within the class, so that we can refer to them 
 * to grab the class name from within. As we type check these with Lua,
 * they'll fail, so we won't be able to use them.
 *
 * I don't think this is such a big issue, as there's only a handful of
 * cases that actually require this behaviour.
 **/

#define LUA_CLASS CUser
DEFINE_LUA_CLASS
(
	// Getters
	MAKE_LUA_METHOD(GetName)
	MAKE_LUA_METHOD(GetAccountName)
	MAKE_LUA_METHOD(GetZoneID)
	MAKE_LUA_METHOD(GetX)
	MAKE_LUA_METHOD(GetY)
	MAKE_LUA_METHOD(GetZ)
	MAKE_LUA_METHOD(GetNation)
	MAKE_LUA_METHOD(GetLevel)
	MAKE_LUA_METHOD(GetClass)
	MAKE_LUA_METHOD(GetCoins)
	MAKE_LUA_METHOD(GetInnCoins)
	MAKE_LUA_METHOD(GetLoyalty)
	MAKE_LUA_METHOD(GetMonthlyLoyalty)
	MAKE_LUA_METHOD(GetManner)
	MAKE_LUA_METHOD(isWarrior)
	MAKE_LUA_METHOD(isRogue)
Exemplo n.º 3
0
 * to redefine the same methods for each class.
 *
 * This is because of the way we dynamically pull instance pointers;
 * these are typedef'd within the class, so that we can refer to them 
 * to grab the class name from within. As we type check these with Lua,
 * they'll fail, so we won't be able to use them.
 *
 * I don't think this is such a big issue, as there's only a handful of
 * cases that actually require this behaviour.
 **/

#define LUA_CLASS CUser
DEFINE_LUA_CLASS
(
	// Getters
	MAKE_LUA_METHOD(GetName)
	MAKE_LUA_METHOD(GetAccountName)
	MAKE_LUA_METHOD(GetZoneID)
	MAKE_LUA_METHOD(GetX)
	MAKE_LUA_METHOD(GetY)
	MAKE_LUA_METHOD(GetZ)
	MAKE_LUA_METHOD(GetNation)
	MAKE_LUA_METHOD(GetLevel)
	MAKE_LUA_METHOD(GetClass)
	MAKE_LUA_METHOD(GetCoins)
	MAKE_LUA_METHOD(GetInnCoins)
	MAKE_LUA_METHOD(GetLoyalty)
	MAKE_LUA_METHOD(GetMonthlyLoyalty)
	MAKE_LUA_METHOD(GetManner)
	MAKE_LUA_METHOD(GetActiveQuestID)
	MAKE_LUA_METHOD(GetClanGrade)
Exemplo n.º 4
0
 * to redefine the same methods for each class.
 *
 * This is because of the way we dynamically pull instance pointers;
 * these are typedef'd within the class, so that we can refer to them 
 * to grab the class name from within. As we type check these with Lua,
 * they'll fail, so we won't be able to use them.
 *
 * I don't think this is such a big issue, as there's only a handful of
 * cases that actually require this behaviour.
 **/

#define LUA_CLASS CUser
DEFINE_LUA_CLASS
(
	// Getters
	MAKE_LUA_METHOD(GetName)
	MAKE_LUA_METHOD(GetAccountName)
	MAKE_LUA_METHOD(GetZoneID)
	MAKE_LUA_METHOD(GetX)
	MAKE_LUA_METHOD(GetY)
	MAKE_LUA_METHOD(GetZ)
	MAKE_LUA_METHOD(GetNation)
	MAKE_LUA_METHOD(GetLevel)
	MAKE_LUA_METHOD(GetClass)
	MAKE_LUA_METHOD(GetCoins)
	MAKE_LUA_METHOD(GetInnCoins)
	MAKE_LUA_METHOD(GetLoyalty)
	MAKE_LUA_METHOD(GetMonthlyLoyalty)
	MAKE_LUA_METHOD(GetManner)
	MAKE_LUA_METHOD(isWarrior)
	MAKE_LUA_METHOD(isRogue)