#include "client/pch.hh" #include "client/entity/factory.hh" #include "shared/entity/factory.hh" #include "shared/entity/head.hh" #include "shared/entity/transform.hh" #include "shared/world/dimension.hh" #include "client/entity/sound_emitter.hh" #include "client/globals.hh" void client::create_player(Dimension* dimension, entt::entity entity) { shared::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); } }