#ifndef SCREEPS_STORE_HPP #define SCREEPS_STORE_HPP #include "Object.hpp" #include namespace Screeps { class Store : public Object { public: explicit Store(JS::Value value); std::optional getCapacity(const std::optional& resource = std::nullopt); std::optional getFreeCapacity(const std::optional& resource = std::nullopt); std::optional getUsedCapacity(const std::optional& resource = std::nullopt); int operator[](const std::string& resource); }; } // namespace Screeps #endif // SCREEPS_STORE_HPP