#include "stdafx.h" #include "DebugConsumer.h" #include "EventSystem.h" using namespace Sia::Api; CDebugConsumer::CDebugConsumer() { CEventSystem::EventSystem.AddEventConsumer([this](const CEvent& event) { this->ProcessEvent(event); }); } CDebugConsumer::~CDebugConsumer() { } void CDebugConsumer::ProcessEvent(const CEvent& eventData) { OutputDebugString(eventData.GetSingleLineMessage().c_str()); OutputDebugString(L"\n"); }