mirror of
https://github.com/kirirururu/screepsxx.git
synced 2026-06-14 17:30:42 +00:00
Completed StructureController, StructureExtension, StructureRampart, StructureRoad, StructureSpawn classes.
24 lines
442 B
C++
24 lines
442 B
C++
#include "StructureRampart.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
StructureRampart::StructureRampart(JS::Value value) : Structure(std::move(value))
|
|
{
|
|
}
|
|
|
|
bool StructureRampart::isPublic() const
|
|
{
|
|
return value()["isPublic"].as<bool>();
|
|
}
|
|
|
|
int StructureRampart::ticksToDecay() const
|
|
{
|
|
return value()["ticksToDecay"].as<int>();
|
|
}
|
|
|
|
int StructureRampart::setPublic(bool isPublic)
|
|
{
|
|
return value().call<int>("setPublic", isPublic);
|
|
}
|
|
|
|
} // namespace Screeps
|