aboutsummaryrefslogtreecommitdiff
path: root/src/client/item/item.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/item/item.hh')
-rw-r--r--src/client/item/item.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/client/item/item.hh b/src/client/item/item.hh
new file mode 100644
index 0000000..ff80369
--- /dev/null
+++ b/src/client/item/item.hh
@@ -0,0 +1,30 @@
+#ifndef CLIENT_ITEM_ITEM_HH_
+#define CLIENT_ITEM_ITEM_HH_
+
+#include <algorithm>
+
+#include <glm/glm.hpp>
+
+#include "shared/item/item.hh"
+
+namespace client {
+namespace item {
+
+// client::item is a renderiable shared::item
+class item : virtual public shared::item::item {
+public:
+public:
+ template <typename... Args>
+ item(Args&&... args) noexcept
+ : shared::item::item(std::forward<Args>(args)...) {}
+ virtual ~item() noexcept {}
+
+public:
+ // 2d drawing of items
+ virtual void draw(const glm::vec2& pos, const glm::vec2& size) noexcept = 0;
+};
+
+} // namespace item
+} // namespace client
+
+#endif