void OnGameLeft(object sender, EventArgs e) { var stats = new WatchFoxStats { GoldPerHour = GameStats.GoldPerHour, Level = ZetaDia.Service.CurrentHero.Level, Name = ZetaDia.Service.CurrentHero.Name, HeroClass = ZetaDia.Service.CurrentHero.Class.ToString(), Coinage = ZetaDia.Me.Inventory.Coinage }; _sender.GameLeft(stats); }
public void GameLeft(WatchFoxStats stats) { var json = "{\"event\": \"left\", \"stats\": "+ stats.AsJsonStyledString() +"}"; SendStringToSocket(json); }
public void GameLeft(WatchFoxStats stats) { var json = "{\"event\": \"left\", \"stats\": " + stats.AsJsonStyledString() + "}"; SendStringToSocket(json); }