Fixing bugs

This commit is contained in:
Vladislav Khorev committed 2026-10-27 20:24:33 +06:00
1 parent 0240721d46
commit 570f051281
5 files changed
+49 -9

No files matched your search

+9 -1
View File
@@ -12,11 +12,18 @@ namespace FRG {
class PathVisualization
{
public:
enum class Style {
Movement,
Hostile,
Teleport
};
void initialize();
void setEnabled(bool enabled);
bool isEnabled() const { return enabled; }
void start(const Character& player, const Eigen::Vector3f& clickedDestination);
void start(const Character& player, const Eigen::Vector3f& clickedDestination,
Style style = Style::Movement);
void cancel();
void update(int64_t deltaMs);
void draw(Renderer& renderer);
@@ -33,6 +40,7 @@ namespace FRG {
float elapsedMs = 0.0f;
float durationMs = 0.0f;
Eigen::Vector3f destination = Eigen::Vector3f::Zero();
Eigen::Vector3f color = Eigen::Vector3f(0.08f, 1.0f, 0.25f);
std::vector<Dot> dots;
VertexRenderStruct dotMesh;
VertexRenderStruct destinationMesh;