You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
755 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BitSet;
using TF2Net.Data;
namespace TF2Net.NetMessages
{
[DebuggerDisplay("{Description, nq}")]
public class NetSignonStateMessage : INetMessage
{
public SignonState State { get; set; }
public string Description
{
get
{
return string.Format("net_SignonState: state {0}, count {1}", State.State, State.SpawnCount);
}
}
public void ReadMsg(BitStream stream)
{
State = new SignonState();
State.State = (ConnectionState)stream.ReadByte();
State.SpawnCount = stream.ReadInt();
}
public void ApplyWorldState(WorldState ws)
{
ws.SignonState = State;
}
}
}