mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +00:00
72c93c8913
Further implements the ControlBehavior processing and adds preparations for cheat detection
14 lines
432 B
C++
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);
|
|
}
|