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

@@ -193,7 +193,7 @@ public partial class ApiController
CensusDataDto? censusDto = null;
if (_serverManager.SendCensusData && _lastCensus != null)
{
var world = await _dalamudUtil.GetWorldIdAsync().ConfigureAwait(false);
var world = _dalamudUtil.GetWorldId();
censusDto = new((ushort)world, _lastCensus.RaceId, _lastCensus.TribeId, _lastCensus.Gender);
Logger.LogDebug("Attaching Census Data: {data}", censusDto);
}