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