diff --git a/Include/Core/Classes/AbstractBufferProvider.hpp b/Include/Core/Classes/AbstractBufferProvider.hpp new file mode 100644 index 0000000..a0d84d7 --- /dev/null +++ b/Include/Core/Classes/AbstractBufferProvider.hpp @@ -0,0 +1,24 @@ +#ifndef ABSTRACTBUFFERPROVIDER_HPP_INCLUDED +#define ABSTRACTBUFFERPROVIDER_HPP_INCLUDED + +#include "../JavaClass/Object.hpp" +#include "../JavaClass/Class.hpp" +#include +#include + +namespace Internal +{ + class AbstractBufferProvider : public Object + { + public: + AbstractBufferProvider(); + AbstractBufferProvider(const void* Obj); + AbstractBufferProvider(const AbstractBufferProvider& A); + static Class GetClass(); + + std::vector GetPixels() const; + + }; +} + +#endif // ABSTRACTBUFFERPROVIDER_HPP_INCLUDED diff --git a/Include/Core/Debug.hpp b/Include/Core/Debug.hpp index 22e1244..9224979 100644 --- a/Include/Core/Debug.hpp +++ b/Include/Core/Debug.hpp @@ -32,6 +32,9 @@ class Debug static void EnableInput(); static void DisableInput(); + + static void Clear(); + static void Screenshot(const std::string& Path); }; diff --git a/Include/Core/Internal.hpp b/Include/Core/Internal.hpp index 25990cf..d913f8d 100644 --- a/Include/Core/Internal.hpp +++ b/Include/Core/Internal.hpp @@ -31,6 +31,7 @@ #include "JavaClass/MouseWheelEvent.hpp" #include "JavaClass/Object.hpp" +#include "Classes/AbstractBufferProvider.hpp" #include "Classes/AbstractByteBuffer.hpp" #include "Classes/Animation.hpp" #include "Classes/AttackOption.hpp" @@ -104,11 +105,13 @@ namespace Internal extern GameShell Client; Cache GetAnimationCache(); + AbstractBufferProvider GetBufferProvider(); std::int32_t GetCameraPitch(); std::int32_t GetCameraX(); std::int32_t GetCameraY(); std::int32_t GetCameraYaw(); std::int32_t GetCameraZ(); + std::int16_t GetCameraZoom(); Map GetChatLineCache(); Map GetClientFonts(); std::vector GetClientKeyCodes(); diff --git a/Include/Game/Tools/Antiban.hpp b/Include/Game/Tools/Antiban.hpp index aa49e26..c5348c2 100644 --- a/Include/Game/Tools/Antiban.hpp +++ b/Include/Game/Tools/Antiban.hpp @@ -8,7 +8,8 @@ class Antiban public: static void LoseClientFocus(); static void MouseOffClient(bool LoseFocus = true); - static void SetClientSize(std::uint32_t Width, std::uint32_t Height); + static void SetClientSize(std::int32_t Width, std::int32_t Height); + static void MaximizeClient(); }; #endif // ANTIBAN_HPP_INCLUDED diff --git a/Include/Game/Tools/Camera.hpp b/Include/Game/Tools/Camera.hpp index adba630..0dbb385 100644 --- a/Include/Game/Tools/Camera.hpp +++ b/Include/Game/Tools/Camera.hpp @@ -63,6 +63,12 @@ class Camera * @return the camera pitch */ static std::int32_t GetPitch(); + /** + * @brief Returns the camera zoom as a percentage + * + * @return the camera zoom as a percentage (0.00 - 1.00) + */ + static double GetZoom(); /** * @brief Rotates the camera to the passed angle/degree diff --git a/Library/libAlpacaLibrary.a b/Library/libAlpacaLibrary.a index 9d19f1c..b0c170b 100644 Binary files a/Library/libAlpacaLibrary.a and b/Library/libAlpacaLibrary.a differ