// SPDX-License-Identifier: BSD-2-Clause // Copyright (c) 2025 Kirill Dmitrievich // File: factory.cc // Description: Boilerplate entity creation #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/entity/velocity.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