Compose loadout saves from managed state

This commit is contained in:
Meta Vens 2026-06-28 05:32:06 +01:00
commit 9acb9a4d41
4 changed files with 56 additions and 25 deletions

View file

@ -1076,14 +1076,15 @@ private void Update()
try
{
var loadout = ResolveClient()
.LoadoutTemplateAsync(targetEntityKey)
var client = ResolveClient();
var loadout = AetheriaRuntimeLoadoutSnapshotProjector
.ProjectLoadoutTemplateAsync(client.State, targetEntityKey)
.GetAwaiter()
.GetResult();
if (loadout?.RootEntity == null || string.IsNullOrWhiteSpace(loadout.RootEntity.Hull?.ItemKey ?? ""))
return;
var submitted = ResolveClient()
var submitted = client
.Ui.SaveLoadoutTemplateAsync(loadout, "unity-inventory")
.GetAwaiter()
.GetResult();