#include "client/pch.hh" #include "client/factory.hh" #include "shared/dimension.hh" #include "shared/factory.hh" #include "shared/head.hh" #include "shared/transform.hh" #include "client/globals.hh" #include "client/sound_emitter.hh" void client_factory::create_player(Dimension *dimension, entt::entity entity) { shared_factory::create_player(dimension, entity); const auto &head = dimension->entities.get(entity); dimension->entities.emplace_or_replace(entity, head); dimension->entities.emplace_or_replace(entity, head); const auto &transform = dimension->entities.get(entity); dimension->entities.emplace_or_replace(entity, transform); dimension->entities.emplace_or_replace(entity, transform); if(globals::sound_ctx) { dimension->entities.emplace_or_replace(entity); } }