mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
b6af92ef81
* Split out BehaviorMessage class changes from PR #1452 * remove <string_view> inclusion in ActionContext.h * add the arguments nullptr check back in * remove redundant std::string constructor calls * Update AddStripMessage.cpp - change push_back to emplace_back
24 lines
610 B
C++
24 lines
610 B
C++
#ifndef __STRIPUIPOSITION__H__
|
|
#define __STRIPUIPOSITION__H__
|
|
|
|
class AMFArrayValue;
|
|
|
|
/**
|
|
* @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; }
|
|
|
|
private:
|
|
double m_XPosition{ 0.0 };
|
|
double m_YPosition{ 0.0 };
|
|
};
|
|
|
|
#endif //!__STRIPUIPOSITION__H__
|