Beispiel #1
0
 internal LolClient(string directory, PropertiesFile properties, LolProxy proxy)
 {
     if (proxy == null)
         throw new ArgumentNullException("proxy");
     if(!Directory.Exists(directory))
         throw new ArgumentException("directory");
     GameData = new LolClientGameData(Path.Combine(directory, GameDataFile));
     Images = new LolClientImages(directory, GameData);
     Connection=new LolConnection(proxy);
     Properties = properties;
 }
Beispiel #2
0
 internal LolClient(string directory, PropertiesFile properties, LolProxy proxy)
 {
     if (proxy == null)
     {
         throw new ArgumentNullException("proxy");
     }
     if (!Directory.Exists(directory))
     {
         throw new ArgumentException("directory");
     }
     GameData   = new LolClientGameData(Path.Combine(directory, GameDataFile));
     Images     = new LolClientImages(directory, GameData);
     Connection = new LolConnection(proxy);
     Properties = properties;
 }