implement playerState

- use IPlayerState for DalamudUtilService and make things less asynced
- make LocationInfo work with ContentFinderData
This commit is contained in:
Tsubasahane
2025-12-27 17:04:39 +08:00
parent 1632258c4f
commit 5c8e239a7b
16 changed files with 132 additions and 106 deletions

View File

@@ -78,7 +78,7 @@ public sealed class TransientResourceManager : DisposableMediatorSubscriberBase
}
}
private string PlayerPersistentDataKey => _dalamudUtil.GetPlayerNameAsync().GetAwaiter().GetResult() + "_" + _dalamudUtil.GetHomeWorldIdAsync().GetAwaiter().GetResult();
private string PlayerPersistentDataKey => _dalamudUtil.GetPlayerName() + "_" + _dalamudUtil.GetHomeWorldId();
private ConcurrentDictionary<ObjectKind, HashSet<string>> SemiTransientResources
{
get