forked from Shardstone/trail-into-darkness
added in-game logger
This commit is contained in:
@@ -5,6 +5,7 @@ using Nox.Game.UI;
|
||||
using Nox.Input;
|
||||
using Nox.Platform;
|
||||
using Jovian.SaveSystem;
|
||||
using Jovian.InGameLogging;
|
||||
using Nox.EditorCode;
|
||||
using Unity.Profiling;
|
||||
using UnityEngine;
|
||||
@@ -24,6 +25,7 @@ namespace Nox.Core {
|
||||
private ProfilerMarker createApplicationStateMarker = new ProfilerMarker("createApplicationState");
|
||||
private ISceneTransition sceneTransition;
|
||||
private ISaveSystem saveSystem;
|
||||
private IGameLogStore gameLogStore;
|
||||
|
||||
private InitializerSettingsFile initializerSettings;
|
||||
private BootstrapReferences bootstrapReferences;
|
||||
@@ -98,6 +100,8 @@ namespace Nox.Core {
|
||||
ISaveSlotManager saveSlotManager = new SaveSlotManager(saveStorage, saveSettings);
|
||||
saveSystem = new SaveSystem(saveSerializer, saveStorage, saveSlotManager, saveSettings);
|
||||
|
||||
gameLogStore = new GameLogStore(500);
|
||||
|
||||
var adventureData = new AdventureData();
|
||||
|
||||
var characterBaseSettings = Addressables.LoadAssetAsync<StarterCharacterSettings>("CharacterBaseSettings").WaitForCompletion();
|
||||
@@ -111,8 +115,8 @@ namespace Nox.Core {
|
||||
|
||||
applicationStates = new Dictionary<GameState, IGameState> {
|
||||
[GameState.BootState] = new SplashGameState(bootstrapReferences, gameDataState),
|
||||
[GameState.MainMenu] = new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, partyCreatorModel, adventureData),
|
||||
[GameState.GameMode] = new GameModeGameState(gameDataState, bootstrapReferences, platform.PlatformSettings, saveSystem, sceneTransition, adventureData),
|
||||
[GameState.MainMenu] = new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, partyCreatorModel, adventureData, gameLogStore),
|
||||
[GameState.GameMode] = new GameModeGameState(gameDataState, bootstrapReferences, platform.PlatformSettings, saveSystem, sceneTransition, adventureData, gameLogStore),
|
||||
};
|
||||
createApplicationStateMarker.End();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user