fix(build): declare drawActionNeededQueue and action needed queue structures in qscenerenderer.h
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include "matrix2d.h"
|
#include "matrix2d.h"
|
||||||
#include "unitrenderer.h"
|
#include "unitrenderer.h"
|
||||||
#include "gamemanager.h"
|
#include "gamemanager.h"
|
||||||
|
#include "actionneededmanager.h"
|
||||||
|
|
||||||
class QSceneRenderer : public QOpenGLWidget
|
class QSceneRenderer : public QOpenGLWidget
|
||||||
{
|
{
|
||||||
@@ -177,6 +178,19 @@ protected:
|
|||||||
int amount;
|
int amount;
|
||||||
};
|
};
|
||||||
std::vector<CityResourceChoiceHit> m_cityResourceChoiceHits;
|
std::vector<CityResourceChoiceHit> m_cityResourceChoiceHits;
|
||||||
|
|
||||||
|
// Action Needed Queue (Bottom HUD notification bar)
|
||||||
|
struct ActionItemHit {
|
||||||
|
QRect rect;
|
||||||
|
QRect dismissRect;
|
||||||
|
ActionNeededType type;
|
||||||
|
int entityId;
|
||||||
|
};
|
||||||
|
std::vector<ActionItemHit> m_actionItemHits;
|
||||||
|
QRect m_actionQueueHeaderRect;
|
||||||
|
|
||||||
|
void drawActionNeededQueue(QPainter &painter);
|
||||||
|
void handleActionItemClick(ActionNeededType type, int entityId);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QSCENERENDERER_H
|
#endif // QSCENERENDERER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user