mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 10:05:13 +00:00
21 lines
363 B
C++
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
|