Newer
Older
Import / projects / Gameloft / bne_lib / code / Utils / EventServiceRunner.h
@John John on 29 Dec 2020 660 bytes bulk import from macbookpro checkouts
#pragma once

#include <CasualCore/Services/CasualService.h>

namespace bne
{
  // Helper service to tick our EventService
  // Needed because EventService is define in CoreLib where CC is not available
  class EventServiceRunner : public CasualCore::CasualService
  {
    DECLARE_SERVICE(EventServiceRunner)

    EventServiceRunner(const EventServiceRunner&);
    EventServiceRunner& operator=(const EventServiceRunner&);

  public:
    EventServiceRunner() {}

    bool Initialize() override;
    static void RegisterService();
    static void UnregisterService();

  protected:
    void Update(float time_elapsed) override;
  };
}