|
@@ -41,8 +41,16 @@ private:
|
|
|
uint32_t id;
|
|
|
|
|
|
public:
|
|
|
- Entity(uint32_t id): id(id) {};
|
|
|
+ explicit Entity(uint32_t id): id(id) {};
|
|
|
+ Entity(const Entity & entity) = default;
|
|
|
+
|
|
|
uint32_t getId() const;
|
|
|
+
|
|
|
+ Entity& operator=(const Entity & other) = default;
|
|
|
+ bool operator==(const Entity &other) const { return this->id == other.id; };
|
|
|
+ bool operator!=(const Entity &other) const { return this->id != other.id; };
|
|
|
+ bool operator>(const Entity &other) const { return this->id > other.id; };
|
|
|
+ bool operator<(const Entity &other) const { return this->id < other.id; };
|
|
|
};
|
|
|
|
|
|
class System
|