mirror of
https://github.com/kirirururu/screepsxx.git
synced 2026-06-15 01:40:42 +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
|