mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
0c4108e730
yahoo
30 lines
765 B
C++
30 lines
765 B
C++
#ifndef __STRIPUIPOSITION__H__
|
|
#define __STRIPUIPOSITION__H__
|
|
|
|
class AMFArrayValue;
|
|
|
|
namespace tinyxml2 {
|
|
class XMLElement;
|
|
}
|
|
|
|
/**
|
|
* @brief The position of the first Action in a Strip
|
|
*
|
|
*/
|
|
class StripUiPosition {
|
|
public:
|
|
StripUiPosition() noexcept = default;
|
|
StripUiPosition(const AMFArrayValue& arguments, const std::string& uiKeyName = "ui");
|
|
void SendBehaviorBlocksToClient(AMFArrayValue& args) const;
|
|
[[nodiscard]] double GetX() const noexcept { return m_XPosition; }
|
|
[[nodiscard]] double GetY() const noexcept { return m_YPosition; }
|
|
|
|
void Serialize(tinyxml2::XMLElement& position) const;
|
|
void Deserialize(const tinyxml2::XMLElement& position);
|
|
private:
|
|
double m_XPosition{ 0.0 };
|
|
double m_YPosition{ 0.0 };
|
|
};
|
|
|
|
#endif //!__STRIPUIPOSITION__H__
|