aboutsummaryrefslogtreecommitdiff
path: root/src/components/Component.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-12 19:13:34 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-12 19:13:34 +0100
commita359219e33fdf3afb5ddfbb084563054a947b106 (patch)
tree91dab9c21321f73152993183cd6e8cf4a04017f8 /src/components/Component.hpp
Create project
Diffstat (limited to 'src/components/Component.hpp')
-rw-r--r--src/components/Component.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/Component.hpp b/src/components/Component.hpp
new file mode 100644
index 0000000..204ee47
--- /dev/null
+++ b/src/components/Component.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "Types.hpp"
+#include <vector>
+
+namespace cgeditor {
+
+class Component {
+protected:
+ Status *status;
+ std::vector<Element> elements;
+
+public:
+ Component(Status *s) : status(s){};
+ std::vector<Element> GetElements() { return (this->elements); }
+ virtual void Refresh() = 0;
+};
+
+} // namespace cgeditor \ No newline at end of file