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