Files
qt5-legatus-legacy/Lts/Proxies/HighLevelArchitecture/Common/player_callback.h
T
2026-08-13 18:33:10 +02:00

34 lines
648 B
C++
Executable File

/**
* @RDE_HEADER@
* Small callback to NullPlayerCallback to be able to recognize the first tick (which then triggers initialization)
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QObject>
#include <NullPlayerCallback.h>
#include <Common/hlacommon_export.h>
/*
* Simple callback for the player instance
*/
namespace HighLevelArchitecture
{
class HLACOMMON_EXPORT PlayerCallback final : public QObject, public ngs::NullPlayerCallback
{
Q_OBJECT
public:
PlayerCallback() = default;
void tick() override;
Q_SIGNALS:
void firstTick();
protected:
bool m_bFirstTick = false;
};
} // namespace HighLevelArchitecture