diff --git a/Include/Core/Internal.hpp b/Include/Core/Internal.hpp index d396c84..689e511 100644 --- a/Include/Core/Internal.hpp +++ b/Include/Core/Internal.hpp @@ -224,6 +224,7 @@ namespace Internal std::int32_t GetViewportHeight(); std::int32_t GetViewportScale(); std::int32_t GetViewportWidth(); + std::vector>>> GetVisibilityMap(); std::int32_t GetWeight(); Cache GetWidgetFontCache(); HashTable GetWidgetNodeCache(); @@ -279,6 +280,7 @@ namespace Internal std::vector> GetGroundItems(std::int32_t Plane); Deque GetGroundItems(std::int32_t X, std::int32_t Y); Deque GetGroundItems(std::int32_t X, std::int32_t Y, std::int32_t Plane); + std::int32_t GetInstanceChunkTemplates(std::int32_t X, std::int32_t Y, std::int32_t Plane); std::vector GetPlayerModel(const Player& P); std::vector GetNPCModel(const NPC& N); std::vector GetGameObjectModel(const GameObject& O); @@ -302,6 +304,6 @@ namespace Internal std::vector GetWidgets(std::int32_t Container); CollisionData GetCollisionMap(std::int32_t Plane); std::int8_t GetKeyPressed(std::int32_t Index); - + std::vector> GetVisibilityMap(std::int32_t CameraPitch, std::int32_t CameraYaw); } #endif // INTERNAL_HPP_INCLUDED diff --git a/Include/Game/Interfaces/Mainscreen.hpp b/Include/Game/Interfaces/Mainscreen.hpp index 984438e..bce359e 100644 --- a/Include/Game/Interfaces/Mainscreen.hpp +++ b/Include/Game/Interfaces/Mainscreen.hpp @@ -74,6 +74,8 @@ namespace Mainscreen bool WalkPath(const std::vector& Path, std::int32_t Distance, std::function Func); std::vector GetBlockingWidgetBoxes(); + + bool InRenderDistance(std::int32_t WorldX, std::int32_t WorldY); } #endif // MAINSCREEN_HPP_INCLUDED diff --git a/Include/Game/Interfaces/Minimap.hpp b/Include/Game/Interfaces/Minimap.hpp index 555d2af..b748079 100644 --- a/Include/Game/Interfaces/Minimap.hpp +++ b/Include/Game/Interfaces/Minimap.hpp @@ -27,6 +27,14 @@ namespace Minimap * @return the tile the local player is on */ Tile GetPosition(); + + /** + * @brief Returns the tile the local player is on, supports instanced regions. + * + * @return the tile the local player is on + */ + Tile GetInstancePosition(); + /** * @brief Returns the tile of the local players destination * diff --git a/Library/libAlpacaLibrary.a b/Library/libAlpacaLibrary.a index 4c49e94..81313c6 100644 Binary files a/Library/libAlpacaLibrary.a and b/Library/libAlpacaLibrary.a differ