fekalnigtacko/src/gameview/markerview.hpp
2026-05-22 22:36:31 +02:00

34 lines
687 B
C++

#pragma once
#include "entityview.hpp"
#include "game/marker_info.hpp"
#include "assets/model.hpp"
namespace game::view
{
class MarkerView : public EntityView
{
public:
using Super = EntityView;
MarkerView(WorldView& world, net::InMessage& msg);
// virtual bool ProcessMsg(net::EntMsgType type, net::InMessage& msg) override;
// virtual bool ProcessUpdateMsg(net::InMessage* msg) override;
virtual void Update(const UpdateInfo& info) override;
virtual void Draw(const DrawArgs& args) override;
private:
bool Init(net::InMessage& msg);
private:
MarkerType marker_type_;
glm::vec4 color_;
std::shared_ptr<const assets::Model> model_;
};
}