Ejemplo n.º 1
0
        // ctor
        private HealthListener()
        {
            _request     = new Request(Utils.Config.BackEndSession.GetPhpSessionId(), Utils.Config.BackendUrl);
            _simpleTimer = Common.Utils.Hook.Loader <SimpleTimer> .Load();

            _simpleTimer.syncHealthAction = () => Task.Run(() => _request.PostJson("/player/health/sync", CurrentHealth.ToJson()));
        }