#include "StructureRampart.hpp" namespace Screeps { StructureRampart::StructureRampart(JS::Value value) : Structure(std::move(value)) { } bool StructureRampart::isPublic() const { return value()["isPublic"].as(); } int StructureRampart::ticksToDecay() const { return value()["ticksToDecay"].as(); } int StructureRampart::setPublic(bool isPublic) { return value().call("setPublic", isPublic); } } // namespace Screeps