Example #1
0
        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);
        }
Example #2
0
        public void GameLeft(WatchFoxStats stats)
        {
            var json = "{\"event\": \"left\", \"stats\": "+ stats.AsJsonStyledString() +"}";

            SendStringToSocket(json);
        }
Example #3
0
        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);
        }
Example #4
0
        public void GameLeft(WatchFoxStats stats)
        {
            var json = "{\"event\": \"left\", \"stats\": " + stats.AsJsonStyledString() + "}";

            SendStringToSocket(json);
        }