mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 01:55:12 +00:00
24 lines
445 B
C++
24 lines
445 B
C++
#ifndef SCREEPS_STRUCTURE_LINK_HPP
|
|
#define SCREEPS_STRUCTURE_LINK_HPP
|
|
|
|
#include "OwnedStructure.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
class Store;
|
|
|
|
class StructureLink : public OwnedStructure
|
|
{
|
|
public:
|
|
explicit StructureLink(JS::Value value);
|
|
|
|
int cooldown() const;
|
|
|
|
Store store() const;
|
|
|
|
int transferEnergy(const StructureLink& target, const std::optional<int>& amount = std::nullopt);
|
|
};
|
|
|
|
} // namespace Screeps
|
|
|
|
#endif // SCREEPS_STRUCTURE_LINK_HPP
|