2024-10-30 07:30:20 +00:00
|
|
|
#ifndef STRIPUIPOSITION_H
|
|
|
|
#define STRIPUIPOSITION_H
|
2023-02-16 17:30:33 +00:00
|
|
|
|
|
|
|
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-02-27 07:29:51 +00:00
|
|
|
StripUiPosition(const AMFArrayValue& arguments, const std::string& 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
|
|
|
};
|
|
|
|
|
2024-10-30 07:30:20 +00:00
|
|
|
#endif //!STRIPUIPOSITION_H
|