screepsxx/include/Screeps/Memory.hpp
2021-06-13 22:33:34 +03:00

23 lines
378 B
C++

#ifndef SCREEPS_MEMORY_HPP
#define SCREEPS_MEMORY_HPP
#include "Object.hpp"
#include <string_view>
namespace Screeps {
class MemoryObject : public Object
{
public:
MemoryObject();
JSON operator[](const std::string_view& key);
void set(const std::string_view& key, const JSON& value);
};
extern MemoryObject Memory;
} // namespace Screeps
#endif // SCREEPS_MEMORY_HPP