mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 07:23:34 +00:00
29666a1ff7
* Moved unrelated changes out of the TryParse PR branch * const correctness and cstdint type usage * removing a few "== nullptr" * amf constexpr, const-correctness, and attrib tagging * update to account for feedback * Fixing accidentally included header and hopefully fixing the MacOS issue too * try reordering the amf3 specializations to fix the MacOS issue again * Amf3 template class member func instantiation fix * try including only on macos * Using if constexpr rather than specialization * Trying a different solution for the instantiation problem * Remove #include "dPlatforms.h"
32 lines
921 B
C++
32 lines
921 B
C++
#ifndef __ADDSTRIPMESSAGE__H__
|
|
#define __ADDSTRIPMESSAGE__H__
|
|
|
|
#include "ActionContext.h"
|
|
#include "BehaviorMessageBase.h"
|
|
#include "StripUiPosition.h"
|
|
|
|
#include <vector>
|
|
|
|
class Action;
|
|
class AMFArrayValue;
|
|
|
|
/**
|
|
* @brief Sent in 2 contexts:
|
|
* A player adds an Action A from their toolbox without attaching it to an existing Strip. In this case, only 1 action is sent.
|
|
* A player moves a Strip from BehaviorState A directly to BehaviorState B. In this case, a list of actions are sent.
|
|
*
|
|
*/
|
|
class AddStripMessage : public BehaviorMessageBase {
|
|
public:
|
|
AddStripMessage(AMFArrayValue* const arguments);
|
|
StripUiPosition GetPosition() const { return position; };
|
|
ActionContext GetActionContext() const { return actionContext; };
|
|
std::vector<Action> GetActionsToAdd() const;
|
|
private:
|
|
StripUiPosition position;
|
|
ActionContext actionContext;
|
|
std::vector<Action> actionsToAdd;
|
|
};
|
|
|
|
#endif //!__ADDSTRIPMESSAGE__H__
|