mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +00:00
12 lines
346 B
C++
12 lines
346 B
C++
|
#include "RenameMessage.h"
|
||
|
|
||
|
RenameMessage::RenameMessage(AMFArrayValue* arguments) {
|
||
|
behaviorID = GetBehaviorIDFromArgument(arguments);
|
||
|
|
||
|
auto* nameAmf = arguments->FindValue<AMFStringValue>("Name");
|
||
|
if (!nameAmf) return;
|
||
|
|
||
|
name = nameAmf->GetStringValue();
|
||
|
Game::logger->LogDebug("RenameMessage", "bhId %i n %s", behaviorID, name.c_str());
|
||
|
}
|