Exemplo n.º 1
0
 protected override void Deserialize(List<Dictionary<string, string>> tokenizedLines)
 {
     var tokens = tokenizedLines[0];
     if (tokens.ContainsKey("fail"))
     {
         FailMessage = tokens["fail"];
     }
     else
     {
         string endPointString1 = tokens["server"];
         string endPointString2 = tokens["server2"];
         GameServerEndPoints = new AWEndPoint[]
         {
             AWEndPoint.Parse(endPointString1),
             AWEndPoint.Parse(endPointString2),
         };
     }
 }
Exemplo n.º 2
0
 public ConnectAsyncState(AssaultWing game, Socket[] sockets, AWEndPoint[] remoteEndPoints)
 {
     Game = game;
     Sockets = sockets;
     RemoteEndPoints = remoteEndPoints;
 }