UI Started

This commit is contained in:
ThomasCharester committed 2026-01-21 10:58:05 +03:00
1 parent a3cd3e86a1
commit 12a27f85c5
26 files changed
+478 -24

No files matched your search

@@ -19,15 +19,15 @@ public partial class AppStateMachine : AbstractStateMachine<Code.Infrastructure.
public AppStateMachine(Code.Infrastructure.App.AppStateMachineContext context, EventBus.EventBus eventBus) : base(context)
{
var stateBootstrapState = new BootstrapState(StateMachineContext,eventBus);
States.Add(stateBootstrapState.myState, stateBootstrapState);
var stateGameplayState = new GameplayState(StateMachineContext,eventBus);
States.Add(stateGameplayState.myState, stateGameplayState);
var stateMainMenuState = new MainMenuState(StateMachineContext,eventBus);
States.Add(stateMainMenuState.myState, stateMainMenuState);
var stateBootstrapState = new BootstrapState(StateMachineContext,eventBus);
States.Add(stateBootstrapState.myState, stateBootstrapState);
}
protected override bool CheckTransitionAllowed(Code.Infrastructure.App.AppStates nextState) => AllowedStates.HasFlag(nextState);
@@ -3,8 +3,6 @@
#pragma warning disable CS0105
using Code.Infrastructure.StateMachine;
using Code.Infrastructure.Camera.CameraStates;
using Code.Infrastructure.Camera.CameraStates;
#pragma warning restore CS0105
@@ -19,7 +17,6 @@ public partial class CameraStateMachine : AbstractStateMachine<Code.Infrastructu
var stateNoneCameraState = new NoneCameraState(StateMachineContext,eventBus);
States.Add(stateNoneCameraState.myState, stateNoneCameraState);
}
@@ -1,9 +1,10 @@
#pragma warning disable CS0105
using Code.Infrastructure.SceneLoader;
using Code.Infrastructure.Camera;
using Code.Infrastructure.UI;
using Code.Infrastructure.Camera;
using Code.Infrastructure.SceneLoader;
using Code.Infrastructure.Input;
using Code.Infrastructure.Camera;
using Code.Infrastructure.Camera;
using UnityEngine;
#pragma warning restore CS0105
@@ -17,14 +18,16 @@ using Code.Infrastructure.Camera;
{
SystemConfigsReferences systemConfigsReferences = Resources.Load<SystemConfigsReferences>("SystemConfigsReferences");
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Camera.CameraSettingsConfig), systemConfigsReferences.CameraSettings);
_multipleConfigReferences.Add(typeof(Code.Infrastructure.UI.UIPanelSettingsConfig), systemConfigsReferences.UIPanelSettings);
_singleConfigReferences.Add(typeof(Code.Infrastructure.Camera.GameCameraConfig), systemConfigsReferences.GameCamera);
_multipleConfigReferences.Add(typeof(Code.Infrastructure.SceneLoader.SceneInfoConfig), systemConfigsReferences.SceneInfo);
_singleConfigReferences.Add(typeof(Code.Infrastructure.Input.InputServiceConfig), systemConfigsReferences.InputService);
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Camera.CameraSettingsConfig), systemConfigsReferences.CameraSettings);
_singleConfigReferences.Add(typeof(Code.Infrastructure.Camera.GameCameraConfig), systemConfigsReferences.GameCamera);
//_singleConfigReferences.Add(typeof(ScenesAssetReferences), systemConfigsReferences.scenesAssetReferences);
}
}
@@ -1,9 +1,10 @@
#pragma warning disable CS0105
using Code.Infrastructure.SceneLoader;
using Code.Infrastructure.Camera;
using Code.Infrastructure.UI;
using Code.Infrastructure.Camera;
using Code.Infrastructure.SceneLoader;
using Code.Infrastructure.Input;
using Code.Infrastructure.Camera;
using Code.Infrastructure.Camera;
using UnityEngine.AddressableAssets;
#pragma warning restore CS0105
@@ -11,10 +12,11 @@ using Code.Infrastructure.Camera;
namespace Code.Infrastructure.Configs{
public partial class SystemConfigsReferences
{
public string SceneInfo;
public AssetReference InputService;
public string CameraSettings;
public string CameraSettings;
public string UIPanelSettings;
public AssetReference GameCamera;
public string SceneInfo;
public AssetReference InputService;
}
}
@@ -0,0 +1,18 @@
#pragma warning disable CS0105
using UnityEngine.AddressableAssets;
using Code.Infrastructure.UI;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace Code.Infrastructure.UI{
#pragma warning restore CS0105
[CreateAssetMenu(fileName = "UIPanelSettingsConfig", menuName = "Configs/UI/UIPanelSettings")]
public class UIPanelSettingsConfig : ScriptableObject
{
public UnityEngine.AddressableAssets.AssetReference Prefab;
public Code.Infrastructure.UI.UIPanelType UIPanelType;
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 17bdede85b436f44e992b27d170ccbc2