@@ -222,14 +222,17 @@ void PlayerSettings::Deserialize(const nlohmann::json& data) {
222222// =============== PlayerEntity Implementation ===============
223223PlayerEntity::PlayerEntity (const glm::vec3& position)
224224 : GameEntity(EntityType::PLAYER, position),
225- player_class_(PlayerClass::WARRIOR),
226- race_(PlayerRace::HUMAN),
227- status_(PlayerStatus::IDLE) {
225+ inventory_system_(InventorySystem::GetInstance()),
226+ skill_system_(SkillSystem::GetInstance()),
227+ quest_system_(QuestSystem::GetInstance()),
228+ player_class_(PlayerClass::WARRIOR),
229+ race_(PlayerRace::HUMAN),
230+ status_(PlayerStatus::IDLE) {
228231
229232 // Initialize systems
230- inventory_system_ = std::make_shared<InventorySystem>();
231- skill_system_ = std::make_shared<SkillSystem>();
232- quest_system_ = std::make_shared<QuestSystem>();
233+ // inventory_system_ = std::make_shared<InventorySystem>();
234+ // skill_system_ = std::make_shared<SkillSystem>();
235+ // quest_system_ = std::make_shared<QuestSystem>();
233236
234237 // Apply default bonuses
235238 ApplyRaceBonuses ();
@@ -243,14 +246,17 @@ PlayerEntity::PlayerEntity(const glm::vec3& position)
243246
244247PlayerEntity::PlayerEntity (const glm::vec3& position, PlayerClass player_class, PlayerRace race)
245248 : GameEntity(EntityType::PLAYER, position),
246- player_class_(player_class),
247- race_(race),
248- status_(PlayerStatus::IDLE) {
249+ inventory_system_(InventorySystem::GetInstance()),
250+ skill_system_(SkillSystem::GetInstance()),
251+ quest_system_(QuestSystem::GetInstance()),
252+ player_class_(player_class),
253+ race_(race),
254+ status_(PlayerStatus::IDLE) {
249255
250256 // Initialize systems
251- inventory_system_ = std::make_shared<InventorySystem>();
252- skill_system_ = std::make_shared<SkillSystem>();
253- quest_system_ = std::make_shared<QuestSystem>();
257+ // inventory_system_ = std::make_shared<InventorySystem>();
258+ // skill_system_ = std::make_shared<SkillSystem>();
259+ // quest_system_ = std::make_shared<QuestSystem>();
254260
255261 // Apply bonuses based on class and race
256262 ApplyRaceBonuses ();
0 commit comments