#pragma once
#include "ChunkModelBuilder.h"
#include "Area.h"

class ChunkGroundModel : public ChunkModelBuilder
{
private:
    __int64 calculateLight(Framework::Vec3<float> vertexPos,
        Framework::Vec3<int> blockPos,
        Direction direction);
    bool isPartOfGroundModel(Framework::Vec3<int> location, int directionIndex);

public:
    ChunkGroundModel(FactoryCraftModel* target, Chunk* zChunk);
    void buildModel() override;
    bool updateLightning() override;
    bool isTransparent() const override;
    bool isPartOfModel(Block* zBlock) const override;
};