A bit of cleaning

This commit is contained in:
Sebastian Bularca
2026-06-18 23:59:35 +02:00
parent 7cb7089d2f
commit ca1e3e8488
2 changed files with 7 additions and 9 deletions

View File

@@ -5,14 +5,10 @@ using Nox.Game.UI;
using Nox.Platform; using Nox.Platform;
using Jovian.SaveSystem; using Jovian.SaveSystem;
using Jovian.InGameLogging; using Jovian.InGameLogging;
using Unity.Profiling;
using UnityEngine; using UnityEngine;
using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets;
namespace Nox.Core { namespace Nox.Core {
/// <summary>
/// The main boot class which is initializing the project, loads the platforms settings, initializes the platforms and creates the game states
/// </summary>
public class EntryPoint : MonoBehaviour { public class EntryPoint : MonoBehaviour {
private Dictionary<GameState, IGameState> applicationStates; private Dictionary<GameState, IGameState> applicationStates;
private ISceneTransition sceneTransition; private ISceneTransition sceneTransition;
@@ -67,9 +63,12 @@ namespace Nox.Core {
var adventureData = new AdventureData(); var adventureData = new AdventureData();
applicationStates = new Dictionary<GameState, IGameState>(); applicationStates = new Dictionary<GameState, IGameState>();
applicationStates.TryAdd(GameState.BootState, new SplashGameState(bootstrapReferences, gameDataState)); applicationStates.TryAdd(GameState.BootState,
applicationStates.TryAdd(GameState.MainMenu, new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, adventureData, gameLogStore)); new SplashGameState(bootstrapReferences, gameDataState));
applicationStates.TryAdd(GameState.GameMode, new GameModeGameState(gameDataState, bootstrapReferences, selectedPlatform.PlatformSettings, saveSystem, sceneTransition, adventureData, gameLogStore)); applicationStates.TryAdd(GameState.MainMenu,
new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, adventureData, gameLogStore));
applicationStates.TryAdd(GameState.GameMode,
new GameModeGameState(gameDataState, bootstrapReferences, selectedPlatform.PlatformSettings, saveSystem, sceneTransition, adventureData, gameLogStore));
} }
} }
} }

View File

@@ -1,5 +1,4 @@
using Nox.Input; using Nox.Input;
using System.Collections;
using System.Threading.Tasks; using System.Threading.Tasks;
using UnityEngine; using UnityEngine;
using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets;