Program Listing for File Door.h

Return to documentation for file (libs/mcg/include/mcg/Door.h)

#pragma once
#include "Block.h"

class Door : public Block {
  private:
    bool powered;
    bool open;
    std::string facing;

  public:
    void virtual toSemanticMapJSON(nlohmann::json& json_base);

    void virtual toLowLevelMapJSON(nlohmann::json& json_base);

    Door(Pos& pos,
         bool open = false,
         bool powered = false,
         std::string name = "dark_oak_door",
         std::string facing = "south");

    ~Door();
};