feat(Core/scripts): expose Halaa slider value and owner setter

This commit is contained in:
55Honey
2022-12-30 22:29:19 +01:00
committed by GitHub
parent 9613587ec4
commit 718454fd48
2 changed files with 12 additions and 0 deletions

View File

@@ -138,6 +138,16 @@ public:
bool SetCapturePointData(uint32 entry, uint32 map, float x, float y, float z, float o = 0,
float rotation0 = 0, float rotation1 = 0, float rotation2 = 0, float rotation3 = 0);
void SetSlider(float slider)
{
m_value = std::clamp<float>(slider, -m_maxValue, m_maxValue);
}
float GetSlider()
{
return m_value;
}
protected:
bool AddObject(uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o,
float rotation0, float rotation1, float rotation2, float rotation3);

View File

@@ -324,6 +324,8 @@ public:
void HandleKillImpl(Player* player, Unit* killed) override;
OPvPCapturePointNA* GetCapturePoint() { return m_obj; }
private:
OPvPCapturePointNA* m_obj;
};