mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 01:55:12 +00:00
Completed StructureController, StructureExtension, StructureRampart, StructureRoad, StructureSpawn classes.
31 lines
443 B
C++
31 lines
443 B
C++
#ifndef SCREEPS_OBJECT_HPP
|
|
#define SCREEPS_OBJECT_HPP
|
|
|
|
#include "JS.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
class Object
|
|
{
|
|
public:
|
|
using Error = int;
|
|
|
|
JS::Value& value();
|
|
const JS::Value& value() const;
|
|
void setValue(JS::Value value);
|
|
|
|
operator JS::Value&();
|
|
operator const JS::Value&() const;
|
|
|
|
protected:
|
|
Object();
|
|
explicit Object(JS::Value value);
|
|
~Object();
|
|
|
|
private:
|
|
JS::Value value_;
|
|
};
|
|
|
|
} // namespace Screeps
|
|
|
|
#endif // SCREEPS_OBJECT_HPP
|