* IPlayer - Connection and Buffer properties added along with SwitchState(IState) method

* Switched the ServerDirector over from using two List Collections to maintain Client Threads and Player instances into a single Dictionary.  Required adjusting the majority of the existing Types, but should now be functional.  Need to still add some safety checks for null references since we are now passing a reference Type around.
This commit is contained in:
Scionwest_cp 2012-06-06 20:56:30 -07:00
parent f977376ac3
commit 24c9fae4f5
7 changed files with 59 additions and 62 deletions

View file

@ -9,7 +9,7 @@ namespace WinPC.Engine.Core
public Socket Connection { get; private set; }
public IState CurrentState { get; private set; }
public List<byte> buffer = new List<byte>();
public List<byte> Buffer { get; set; }
public string Name { get; set; }
@ -18,6 +18,8 @@ namespace WinPC.Engine.Core
Connection = connection;
CurrentState = initialState;
Name = "Player";
Buffer = new List<byte>();
}
public void Disconnect()