24 lines
398 B
C++
24 lines
398 B
C++
#include <components/PrintComponent.h>
|
|
|
|
#include "spdlog/spdlog.h"
|
|
|
|
#include <destrum/Serialization/Reflect.h>
|
|
|
|
PrintComponent::PrintComponent(GameObject& parent) : Component(parent, "PrintComponent")
|
|
{
|
|
}
|
|
|
|
void PrintComponent::Start()
|
|
{
|
|
}
|
|
|
|
void PrintComponent::Update(float dt)
|
|
{
|
|
spdlog::debug(m_message);
|
|
}
|
|
|
|
void PrintComponent::Reflect(FieldVisitor& v)
|
|
{
|
|
v.Field("message", m_message);
|
|
}
|