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

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

            SendStringToSocket(json);
        }