muddesigner/MudEngine/WinPC.Engine/Core/Player.cs
2012-06-04 18:40:46 -07:00

25 lines
No EOL
613 B
C#

using System.Collections.Generic;
using System.Net.Sockets;
using WinPC.Engine.Abstract.Core;
namespace WinPC.Engine.Core
{
public class Player : IPlayer
{
public Socket Connection { get; private set; }
public IState CurrentState { get; private set; }
public List<byte> buffer = new List<byte>();
public Player(IState initialState, Socket connection)
{
Connection = connection;
CurrentState = initialState;
}
public void Disconnect()
{
Connection.Close();
}
}
}