Use managed typed inventory documents

This commit is contained in:
Meta Vens 2026-06-28 07:45:31 +01:00
commit 14a4680c5f
4 changed files with 97 additions and 36 deletions

View file

@ -461,6 +461,16 @@ namespace GameCult.Aetheria.State.Verse
{
return _inventory(entityIndex);
}
public Task<AetheriaRuntimeInventoryDocument> LatestInventoryAsync(int entityIndex)
{
return Inventory(entityIndex).LatestAsync();
}
public AetheriaRuntimeInventoryDocument LatestInventory(int entityIndex)
{
return LatestInventoryAsync(entityIndex).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
public sealed class AetheriaClientStarbridgeState