Exemple #1
0
 public ClientIdentifyMessage(string token, ClientIdentifyMessageProperties properties, bool compress, int largeThreshold, int[] shard, ClientPresence presence)
 {
     this.token          = token;
     this.properties     = properties;
     this.compress       = compress;
     this.largeThreshold = largeThreshold;
     this.shard          = shard;
     this.presence       = presence;
 }
 private void OnPresenceTimedEvent(object sender, EventArgs e)
 {
     if (Parser.isGameRunning())
     {
         ClientPresence.update();
     }
     else
     {
         presenceTicker.Dispose();
         client.Deinitialize();
         client.Dispose();
         Properties.Settings.Default.Save();
         Environment.Exit(0);
     }
 }