mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
Remove old class methods and don't include class in ID_GAME_BASE_INFO
This commit is contained in:
parent
534ef527b9
commit
970e9aff2f
3 changed files with 0 additions and 28 deletions
|
@ -80,30 +80,6 @@ const char *StatsFunctions::GetRace(unsigned short pid) noexcept
|
||||||
return player->Npc()->mRace.c_str();
|
return player->Npc()->mRace.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StatsFunctions::SetClass(unsigned short pid, const char *className) noexcept
|
|
||||||
{
|
|
||||||
Player *player;
|
|
||||||
GET_PLAYER(pid, player, );
|
|
||||||
|
|
||||||
if (player->Npc()->mClass == className)
|
|
||||||
return;
|
|
||||||
|
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Setting class for %s: %s -> %s",
|
|
||||||
player->Npc()->mName.c_str(),
|
|
||||||
player->Npc()->mClass.c_str(),
|
|
||||||
className);
|
|
||||||
|
|
||||||
player->Npc()->mClass = className;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *StatsFunctions::GetClass(unsigned short pid) noexcept
|
|
||||||
{
|
|
||||||
Player *player;
|
|
||||||
GET_PLAYER(pid, player, 0);
|
|
||||||
|
|
||||||
return player->Npc()->mClass.c_str();
|
|
||||||
}
|
|
||||||
|
|
||||||
void StatsFunctions::SetHead(unsigned short pid, const char *race) noexcept
|
void StatsFunctions::SetHead(unsigned short pid, const char *race) noexcept
|
||||||
{
|
{
|
||||||
Player *player;
|
Player *player;
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
{"GetRace", StatsFunctions::GetRace},\
|
{"GetRace", StatsFunctions::GetRace},\
|
||||||
{"SetRace", StatsFunctions::SetRace},\
|
{"SetRace", StatsFunctions::SetRace},\
|
||||||
\
|
\
|
||||||
{"SetClass", StatsFunctions::SetClass},\
|
|
||||||
{"GetClass", StatsFunctions::GetClass},\
|
|
||||||
\
|
|
||||||
{"GetHead", StatsFunctions::GetHead},\
|
{"GetHead", StatsFunctions::GetHead},\
|
||||||
{"SetHead", StatsFunctions::SetHead},\
|
{"SetHead", StatsFunctions::SetHead},\
|
||||||
\
|
\
|
||||||
|
|
|
@ -19,7 +19,6 @@ void PacketBaseInfo::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send
|
||||||
RW(player->Npc()->mName, send);
|
RW(player->Npc()->mName, send);
|
||||||
RW(player->Npc()->mModel, send);
|
RW(player->Npc()->mModel, send);
|
||||||
RW(player->Npc()->mRace, send);
|
RW(player->Npc()->mRace, send);
|
||||||
RW(player->Npc()->mClass, send);
|
|
||||||
RW(player->Npc()->mHair, send);
|
RW(player->Npc()->mHair, send);
|
||||||
RW(player->Npc()->mHead, send);
|
RW(player->Npc()->mHead, send);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue