1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

[Client] Add LocalPlayer::hasFinishedCharGen() method

This commit is contained in:
David Cernat 2017-01-26 13:13:43 +02:00
parent 4dc0ba21ec
commit b5b5551fcd
2 changed files with 9 additions and 0 deletions

View file

@ -146,6 +146,14 @@ bool LocalPlayer::charGenThread()
return true; return true;
} }
bool LocalPlayer::hasFinishedCharGen()
{
if (charGenStage.end == 0)
return true;
return false;
}
void LocalPlayer::updateDynamicStats(bool forceUpdate) void LocalPlayer::updateDynamicStats(bool forceUpdate)
{ {
MWWorld::Ptr player = getPlayerPtr(); MWWorld::Ptr player = getPlayerPtr();

View file

@ -22,6 +22,7 @@ namespace mwmp
void charGen(int stageFirst, int stageEnd); void charGen(int stageFirst, int stageEnd);
bool charGenThread(); // return true if CGStage::current == CGStage::end bool charGenThread(); // return true if CGStage::current == CGStage::end
bool hasFinishedCharGen();
void updateDynamicStats(bool forceUpdate = false); void updateDynamicStats(bool forceUpdate = false);
void updateAttributes(bool forceUpdate = false); void updateAttributes(bool forceUpdate = false);