mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 20:17:22 +01:00
rework transient files to work on a per job/global basis
This commit is contained in:
parent
a418aebc4a
commit
114ab2f4e1
4 changed files with 154 additions and 99 deletions
|
|
@ -82,7 +82,7 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber
|
|||
public bool IsZoning => _condition[ConditionFlag.BetweenAreas] || _condition[ConditionFlag.BetweenAreas51];
|
||||
public bool IsInCombatOrPerforming { get; private set; } = false;
|
||||
public bool HasModifiedGameFiles => _gameData.HasModifiedGameDataFiles;
|
||||
|
||||
public uint ClassJobId => _classJobId!.Value;
|
||||
public Lazy<Dictionary<ushort, string>> WorldData { get; private set; }
|
||||
|
||||
public MareMediator Mediator { get; }
|
||||
|
|
@ -555,6 +555,12 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber
|
|||
Mediator.Publish(new ResumeScanMessage(nameof(ConditionFlag.BetweenAreas)));
|
||||
}
|
||||
|
||||
var localPlayer = _clientState.LocalPlayer;
|
||||
if (localPlayer != null)
|
||||
{
|
||||
_classJobId = localPlayer.ClassJob.Id;
|
||||
}
|
||||
|
||||
if (!IsInCombatOrPerforming)
|
||||
Mediator.Publish(new FrameworkUpdateMessage());
|
||||
|
||||
|
|
@ -563,8 +569,6 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber
|
|||
if (isNormalFrameworkUpdate)
|
||||
return;
|
||||
|
||||
var localPlayer = _clientState.LocalPlayer;
|
||||
|
||||
if (localPlayer != null && !IsLoggedIn)
|
||||
{
|
||||
_logger.LogDebug("Logged in");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue