forked from mirror/openmw-tes3mp
[Server] Rename CharClass' isDefault() into isCustom()
It was already using the logic of isCustom() by mistake.
This commit is contained in:
parent
010a80ceca
commit
d33254f287
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ void CharClass::Init(LuaState &lua)
|
||||||
lua.getState()->new_usertype<CharClass>("Class",
|
lua.getState()->new_usertype<CharClass>("Class",
|
||||||
//"__gc", sol::destructor(deleter),
|
//"__gc", sol::destructor(deleter),
|
||||||
"default", sol::property(&CharClass::getDefault, &CharClass::setDefault),
|
"default", sol::property(&CharClass::getDefault, &CharClass::setDefault),
|
||||||
"isDefault", &CharClass::isDefault,
|
"isCustom", &CharClass::isCustom,
|
||||||
|
|
||||||
"name", sol::property(&CharClass::getName, &CharClass::setName),
|
"name", sol::property(&CharClass::getName, &CharClass::setName),
|
||||||
"description", sol::property(&CharClass::getDescription, &CharClass::setDescription),
|
"description", sol::property(&CharClass::getDescription, &CharClass::setDescription),
|
||||||
|
@ -56,7 +56,7 @@ void CharClass::setDefault(const string &className)
|
||||||
printf("CharClass::setDefault()\n");
|
printf("CharClass::setDefault()\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CharClass::isDefault() const
|
bool CharClass::isCustom() const
|
||||||
{
|
{
|
||||||
return player->charClass.mId.empty();
|
return player->charClass.mId.empty();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
|
|
||||||
std::string getDefault() const;
|
std::string getDefault() const;
|
||||||
void setDefault(const std::string &className);
|
void setDefault(const std::string &className);
|
||||||
bool isDefault() const;
|
bool isCustom() const;
|
||||||
|
|
||||||
std::string getName() const;
|
std::string getName() const;
|
||||||
void setName(const std::string &className);
|
void setName(const std::string &className);
|
||||||
|
|
Loading…
Reference in a new issue