aboutsummaryrefslogtreecommitdiff
path: root/src/client/item/item.hh
blob: ff8036966033379354c30c01d03137df2b2416ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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