summaryrefslogtreecommitdiffstats
path: root/engine/include/core/object.hpp
diff options
context:
space:
mode:
authorancarola <raffaele.ancarola@epfl.ch>2019-01-23 19:43:09 +0100
committerancarola <raffaele.ancarola@epfl.ch>2019-01-23 19:43:09 +0100
commit40a2e6ae3d17e271f9eaa07a53d934fc5d5457db (patch)
tree0da332dbff1d621306d5bfc4d1e54fccb795a206 /engine/include/core/object.hpp
parentTask debugging (diff)
downloadflatland-40a2e6ae3d17e271f9eaa07a53d934fc5d5457db.tar.gz
flatland-40a2e6ae3d17e271f9eaa07a53d934fc5d5457db.zip
Labelled, signal
Diffstat (limited to 'engine/include/core/object.hpp')
-rw-r--r--engine/include/core/object.hpp38
1 files changed, 4 insertions, 34 deletions
diff --git a/engine/include/core/object.hpp b/engine/include/core/object.hpp
index 1992d2a..cd5da5e 100644
--- a/engine/include/core/object.hpp
+++ b/engine/include/core/object.hpp
@@ -1,42 +1,12 @@
#pragma once
-#include <list>
-#include <vector>
-#include <string>
-#include <initializer_list>
-
-#include "types.hpp"
-
namespace flat
{
namespace core
{
- class object;
+ struct object
+ {
+ // it exists
+ };
}
}
-
-class flat::core::object
-{
- std::string id;
-
- /* Common list of objects */
- static std::list<object*> all_objects;
-
-public:
-
- object();
- ~object();
-
- void set_id(const std::string&);
-
- const std::string& get_id() const;
-
- /* Static accessors to allObject */
-
- static bool is_allocated(object*);
-
- static std::vector<object*>& get_by_id(const std::string& id, std::vector<object*>&);
-
- static std::string random_id(uint8_t length = 8);
-};
-