2023-02-16 17:30:33 +00:00
|
|
|
#ifndef __STRIPUIPOSITION__H__
|
|
|
|
#define __STRIPUIPOSITION__H__
|
|
|
|
|
|
|
|
class AMFArrayValue;
|
|
|
|
|
2024-05-18 09:05:55 +00:00
|
|
|
namespace tinyxml2 {
|
|
|
|
class XMLElement;
|
|
|
|
}
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
/**
|
|
|
|
* @brief The position of the first Action in a Strip
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class StripUiPosition {
|
|
|
|
public:
|
2024-02-18 06:38:26 +00:00
|
|
|
StripUiPosition() noexcept = default;
|
2024-11-19 02:45:24 +00:00
|
|
|
StripUiPosition(const AMFArrayValue& arguments, const std::string_view uiKeyName = "ui");
|
2024-01-03 13:34:38 +00:00
|
|
|
void SendBehaviorBlocksToClient(AMFArrayValue& args) const;
|
2024-02-18 06:38:26 +00:00
|
|
|
[[nodiscard]] double GetX() const noexcept { return m_XPosition; }
|
|
|
|
[[nodiscard]] double GetY() const noexcept { return m_YPosition; }
|
|
|
|
|
2024-05-18 09:05:55 +00:00
|
|
|
void Serialize(tinyxml2::XMLElement& position) const;
|
2024-05-18 10:36:29 +00:00
|
|
|
void Deserialize(const tinyxml2::XMLElement& position);
|
2023-02-16 17:30:33 +00:00
|
|
|
private:
|
2024-02-18 06:38:26 +00:00
|
|
|
double m_XPosition{ 0.0 };
|
|
|
|
double m_YPosition{ 0.0 };
|
2023-02-16 17:30:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__STRIPUIPOSITION__H__
|