mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 01:55:12 +00:00
Completed StructureController, StructureExtension, StructureRampart, StructureRoad, StructureSpawn classes.
14 lines
243 B
C++
14 lines
243 B
C++
#include "StructureRoad.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
StructureRoad::StructureRoad(JS::Value value) : Structure(std::move(value))
|
|
{
|
|
}
|
|
|
|
int StructureRoad::ticksToDecay() const
|
|
{
|
|
return value()["ticksToDecay"].as<int>();
|
|
}
|
|
|
|
} // namespace Screeps
|