34 lines
648 B
C++
Executable File
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
|