23 lines
613 B
C++
23 lines
613 B
C++
//
|
|
// Created by sebastian on 08.02.26.
|
|
//
|
|
|
|
#ifndef TILEHIGHLIGHTSYSTEM_H
|
|
#define TILEHIGHLIGHTSYSTEM_H
|
|
#include "../../../GameMode.h"
|
|
#include "../../../../engine/core/ECS/EntityManager.h"
|
|
#include "../../../../engine/platform/glfw/MousePicker.h"
|
|
|
|
class Camera;
|
|
|
|
class TileHighlightSystem {
|
|
public:
|
|
void update(EntityManager &entityManager, const MousePicker &picker, const Camera &camera, GameMode& gameMode);
|
|
private:
|
|
bool intersectTile(const glm::vec3 & rayOrigin, const glm::vec3 & rayDirection, glm::vec3 worldPos, float hexRadius, glm::vec3 &interectionPoint);
|
|
};
|
|
|
|
|
|
|
|
#endif //TILEHIGHLIGHTSYSTEM_H
|