//
// Created by sebastian on 08.02.26.
//

#ifndef TILEGAMEPLAYCOMPONENT_H
#define TILEGAMEPLAYCOMPONENT_H

#include "../../../../engine/core/ECS/Component.h"
#include "../../../../engine/core/ECS/EntityManager.h"


enum class RessourceType;

class TileGameplayComponent : public Component {
public:
    int q, r;
    float radius;
    RessourceType ressourceType;

    EntityID buildingEntityID = 0;
    std::vector<EntityID> entitiesOnTile;

    TileGameplayComponent(int q, int r, float radius, RessourceType ressourceType) : q(q), r(r), radius(radius), ressourceType(ressourceType) {};

    bool hasBuilding() const { return buildingEntityID != 0; }
};



#endif //TILEGAMEPLAYCOMPONENT_H
