DarkflameServer/dGame/dPropertyBehaviors/ControlBehaviorMessages/AddMessage.cpp
David Markowitz 72c93c8913
Further implement Property Behavior parsing (#936)
Further implements the ControlBehavior processing and adds preparations for cheat detection
2023-02-13 18:55:44 -08:00

14 lines
432 B
C++

#include "AddMessage.h"
AddMessage::AddMessage(AMFArrayValue* arguments) {
behaviorId = GetBehaviorIDFromArgument(arguments);
behaviorIndex = 0;
auto* behaviorIndexValue = arguments->FindValue<AMFDoubleValue>("BehaviorIndex");
if (!behaviorIndexValue) return;
behaviorIndex = static_cast<uint32_t>(behaviorIndexValue->GetDoubleValue());
Game::logger->LogDebug("AddMessage", "bhId %i ndx %i", behaviorId, behaviorIndex);
}