screepsxx/src/StructureContainer.cpp
2021-05-30 01:14:25 +03:00

21 lines
363 B
C++

#include "StructureContainer.hpp"
#include "Store.hpp"
namespace Screeps {
StructureContainer::StructureContainer(JS::Value value) : Structure(std::move(value))
{
}
Store StructureContainer::store() const
{
return Store(value()["store"]);
}
int StructureContainer::ticksToDecay() const
{
return value()["ticksToDecay"].as<int>();
}
} // namespace Screeps