mirror of
https://github.com/Astatin3/meteorbot-old.git
synced 2026-06-09 08:38:07 -06:00
29 lines
716 B
C++
29 lines
716 B
C++
#pragma once
|
|
|
|
#include "botcraft/Game/ManagersClient.hpp"
|
|
|
|
#include "botcraft/Renderer/RenderingManager.hpp"
|
|
|
|
class UserControlledClient : public Botcraft::ManagersClient
|
|
{
|
|
public:
|
|
UserControlledClient(bool online, bool use_renderer_);
|
|
~UserControlledClient();
|
|
|
|
protected:
|
|
|
|
#ifdef USE_GUI
|
|
void MouseCallback(const double& xoffset, const double& yoffset);
|
|
void KeyBoardCallback(const std::array<bool, static_cast<int>(Botcraft::Renderer::KEY_CODE::NUMBER_OF_KEYS)>& is_key_pressed, const double& delta_time);
|
|
#endif
|
|
virtual void Handle(ProtocolCraft::ClientboundGameProfilePacket& msg) override;
|
|
|
|
void CreateTestWorld();
|
|
|
|
protected:
|
|
|
|
#if USE_GUI
|
|
float mouse_sensitivity;
|
|
#endif
|
|
};
|