aboutsummaryrefslogtreecommitdiff
path: root/src/components/Component.hpp
blob: 45e4390a1cf6ddf5a42dbdd6fa803d20acd4c07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "Types.hpp"
#include <vector>

namespace cgeditor {

class Component {
protected:
  Status *status;
  std::vector<Element> elements;

public:
  Component(Status *s) : status(s){};
  virtual ~Component(){};
  std::vector<Element> GetElements() { return (this->elements); }
  virtual void Refresh() = 0;
  virtual void SyncCache() {};
};

} // namespace cgeditor