Release 1.67

master
Kasi 2021-10-16 01:18:02 +01:00
parent 82bff1f858
commit 87ac51f090
4 changed files with 13 additions and 1 deletions

View File

@ -224,6 +224,7 @@ namespace Internal
std::int32_t GetViewportHeight(); std::int32_t GetViewportHeight();
std::int32_t GetViewportScale(); std::int32_t GetViewportScale();
std::int32_t GetViewportWidth(); std::int32_t GetViewportWidth();
std::vector<std::vector<std::vector<std::vector<std::int8_t>>>> GetVisibilityMap();
std::int32_t GetWeight(); std::int32_t GetWeight();
Cache GetWidgetFontCache(); Cache GetWidgetFontCache();
HashTable GetWidgetNodeCache(); HashTable GetWidgetNodeCache();
@ -279,6 +280,7 @@ namespace Internal
std::vector<std::vector<Deque>> GetGroundItems(std::int32_t Plane); std::vector<std::vector<Deque>> 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);
Deque GetGroundItems(std::int32_t X, std::int32_t Y, std::int32_t Plane); 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<Point> GetPlayerModel(const Player& P); std::vector<Point> GetPlayerModel(const Player& P);
std::vector<Point> GetNPCModel(const NPC& N); std::vector<Point> GetNPCModel(const NPC& N);
std::vector<Point> GetGameObjectModel(const GameObject& O); std::vector<Point> GetGameObjectModel(const GameObject& O);
@ -302,6 +304,6 @@ namespace Internal
std::vector<Widget> GetWidgets(std::int32_t Container); std::vector<Widget> GetWidgets(std::int32_t Container);
CollisionData GetCollisionMap(std::int32_t Plane); CollisionData GetCollisionMap(std::int32_t Plane);
std::int8_t GetKeyPressed(std::int32_t Index); std::int8_t GetKeyPressed(std::int32_t Index);
std::vector<std::vector<std::int8_t>> GetVisibilityMap(std::int32_t CameraPitch, std::int32_t CameraYaw);
} }
#endif // INTERNAL_HPP_INCLUDED #endif // INTERNAL_HPP_INCLUDED

View File

@ -74,6 +74,8 @@ namespace Mainscreen
bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::function<bool()> Func); bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::function<bool()> Func);
std::vector<Box> GetBlockingWidgetBoxes(); std::vector<Box> GetBlockingWidgetBoxes();
bool InRenderDistance(std::int32_t WorldX, std::int32_t WorldY);
} }
#endif // MAINSCREEN_HPP_INCLUDED #endif // MAINSCREEN_HPP_INCLUDED

View File

@ -27,6 +27,14 @@ namespace Minimap
* @return the tile the local player is on * @return the tile the local player is on
*/ */
Tile GetPosition(); 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 * @brief Returns the tile of the local players destination
* *

Binary file not shown.