change folder name

This commit is contained in:
Julian Nießner
2019-06-02 17:54:50 +02:00
parent 84beaf7fd6
commit 473432d9bb
7 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#include "Command.h"
#include "../core/Components.h"
void SetNameCommand::execute(GameServer *server)
{
entityx::Entity entity = server->serverToEntityX.at(m_clientIndex);
entityx::ComponentHandle<NetworkPlayerProperties> playerproperties = entity.component<NetworkPlayerProperties>();
if (playerproperties)
{
playerproperties->name = m_name;
}
std::cout << "Entity name changed to " << playerproperties->name << " Buffer content: " << m_name << std::endl;
}