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