2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
#include "net_signonstate.h"
|
2015-06-25 05:59:39 +02:00
|
|
|
#include "base/bitfile.h"
|
2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
namespace NetHandlers
|
|
|
|
{
|
2015-06-19 02:23:26 +02:00
|
|
|
bool Net_SignonState_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::Net_SignonState* data)
|
2015-05-15 03:36:57 +02:00
|
|
|
{
|
2015-05-28 04:51:30 +02:00
|
|
|
data->signonState = bitbuf.ReadByte();
|
|
|
|
data->spawnCount = bitbuf.ReadLong();
|
2015-05-15 03:36:57 +02:00
|
|
|
//assert(signonState >= SIGNONSTATE_NONE && signonState <= SIGNONSTATE_CHANGELEVEL);
|
|
|
|
return !bitbuf.IsOverflowed();
|
|
|
|
}
|
|
|
|
}
|