Exemplo n.º 1
0
 static int GetIndex(INetworkReciever reciever, BackrollConnection[] connections)
 {
     for (var i = 0; i < connections.Length; i++)
     {
         if ((reciever as LobbyMember) == connections[i].LobbyMember)
         {
             return(i);
         }
     }
     return(-1);
 }
Exemplo n.º 2
0
 public NetworkMessage(INetworkReciever reciever, FixedSizeDeserializer reader)
 {
     Reciever      = reciever;
     NetworkReader = reader;
 }