20 lines
409 B
C++
20 lines
409 B
C++
#include "stdafx.h"
|
|
#include "DebugConsumer.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");
|
|
}
|