Backend.cs und Buffer_Wafa.cs
This commit is contained in:
@@ -12,12 +12,13 @@ namespace Frontend
|
||||
private Dictionary<int, Dragon> Dragons;
|
||||
private Dictionary<int, Player> Players;
|
||||
private Map Map;
|
||||
private Buffer Buffer;
|
||||
|
||||
public Backend ()
|
||||
{
|
||||
Parse = new Parser ();
|
||||
Parse = new Parser (Buffer);
|
||||
Client = new TcpClient ("localhost", 9999);
|
||||
Rec = new Receiver (Client, Parse);
|
||||
Rec = new Receiver (Client, Buffer);
|
||||
Dragons = new Dictionary<int, Dragon> ();
|
||||
Players = new Dictionary<int, Player> ();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,8 @@ namespace WorldOfPeacecraft
|
||||
}
|
||||
|
||||
void enqueueMessage (string servermessage){
|
||||
if (isFull == false) {
|
||||
bool varIsFull = isFull();
|
||||
if (varIsFull == false) {
|
||||
DotA2.Enqueue (servermessage);
|
||||
} else {
|
||||
//this is else
|
||||
|
||||
Reference in New Issue
Block a user