mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 01:55:12 +00:00
24 lines
559 B
C++
24 lines
559 B
C++
#ifndef SCREEPS_STORE_HPP
|
|
#define SCREEPS_STORE_HPP
|
|
|
|
#include "Object.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
class Store : public Object
|
|
{
|
|
public:
|
|
explicit Store(JS::Value value);
|
|
|
|
std::optional<int> getCapacity(const std::optional<std::string>& resource = std::nullopt);
|
|
|
|
std::optional<int> getFreeCapacity(const std::optional<std::string>& resource = std::nullopt);
|
|
|
|
std::optional<int> getUsedCapacity(const std::optional<std::string>& resource = std::nullopt);
|
|
|
|
int operator[](const std::string& resource);
|
|
};
|
|
|
|
} // namespace Screeps
|
|
|
|
#endif // SCREEPS_STORE_HPP
|