A bit of cleaning
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user