refactor on journey runtime manager

This commit is contained in:
Nilton Constantino 2026-06-26 19:19:53 +01:00
parent 91c193dc8a
commit 296bae093e
No known key found for this signature in database
3 changed files with 4 additions and 7 deletions

View File

@ -23,8 +23,6 @@ namespace Intrepid.Gameplay.Journey.Runtime
[GroupInjections, SerializeField] private JourneyGameplayGate gameplayGate;
[GroupInjections, SerializeField] private JourneyLandingService landingService;
public bool IsBooted { get; private set; }
public void StartBoot(
JourneyRuntimeBootMode bootMode,
Action<StageTag> onFinished,

View File

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using Intrepid.Diagnostics;
using Intrepid.FSM;
@ -9,7 +10,8 @@ namespace Intrepid.Gameplay.Journey.Runtime.Loading
private FStateMachine<StageTag, StageLoadingService> StateMachine { get; } = new();
private IState<StageTag, StageLoadingService> CurrentState => StateMachine.GetCurrentState();
public StageTag CurrentStageTag => CurrentState.GetStateKey();
public StageTag CurrentStageTag => CurrentState?.GetStateKey();
public bool HasCurrentStage => CurrentStageTag.IsNotNull();
public bool IsLoadingFinished => CurrentState?.Implementation()?.IsLoadingFinished ?? false;
public bool IsRunning => StateMachine.IsRunning;

View File

@ -28,10 +28,7 @@ namespace Intrepid.Gameplay.Journey.Runtime.Transition
private Action<JourneyTravelRequest> OnFinished { get; set; }
private Action<JourneyTravelRequest> OnFailed { get; set; }
public JourneyStageLoader StageLoader => stageLoader;
public JourneyLandingService LandingService => landingService;
public JourneyGameplayGate GameplayGate => gameplayGate;
public bool IsRunning => CurrentRequest is not null;
public bool IsProcessFinished =>
CurrentRequest is not null &&