* 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)
* 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)