[General] Add weather struct and packet

This commit is contained in:
Koncord 2017-12-10 09:48:29 +08:00
parent aff1859759
commit 1ef6ad6215
2 changed files with 7 additions and 1 deletions

View file

@ -288,6 +288,12 @@ namespace mwmp
unsigned int resurrectType;
bool diedSinceArrestAttempt;
struct
{
int currentWeather, nextWeather;
float updateTime, transitionFactor;
} weather;
};
}

View file

@ -13,5 +13,5 @@ void PacketGameWeather::Packet(RakNet::BitStream *bs, bool send)
{
PlayerPacket::Packet(bs, send);
// Placeholder to be filled in later
RW(player->weather, send);
}