2023-02-14 02:55:44 +00:00
|
|
|
#include "AddMessage.h"
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
AddMessage::AddMessage(AMFArrayValue* arguments) : BehaviorMessageBase(arguments) {
|
2023-02-14 02:55:44 +00:00
|
|
|
behaviorIndex = 0;
|
2023-05-13 22:22:00 +00:00
|
|
|
auto* behaviorIndexValue = arguments->Get<double>("BehaviorIndex");
|
2023-02-14 02:55:44 +00:00
|
|
|
|
|
|
|
if (!behaviorIndexValue) return;
|
|
|
|
|
2023-05-13 22:22:00 +00:00
|
|
|
behaviorIndex = static_cast<uint32_t>(behaviorIndexValue->GetValue());
|
2023-10-21 23:31:55 +00:00
|
|
|
LOG_DEBUG("behaviorId %i index %i", behaviorId, behaviorIndex);
|
2023-02-14 02:55:44 +00:00
|
|
|
}
|