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

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

            SendStringToSocket(json);
        }