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 Jovian.SaveSystem;
using Jovian.InGameLogging;
using Unity.Profiling;
using UnityEngine;
using UnityEngine.AddressableAssets;
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 {
private Dictionary<GameState, IGameState> applicationStates;
private ISceneTransition sceneTransition;
@@ -65,11 +61,14 @@ namespace Nox.Core {
gameLogStore = new GameLogStore(500);
var adventureData = new AdventureData();
applicationStates = new Dictionary<GameState, IGameState>();
applicationStates.TryAdd(GameState.BootState, new SplashGameState(bootstrapReferences, gameDataState));
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));
applicationStates.TryAdd(GameState.BootState,
new SplashGameState(bootstrapReferences, gameDataState));
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));
}
}
}