Compose loadout saves from managed state
This commit is contained in:
parent
6f71c4cd16
commit
9acb9a4d41
4 changed files with 56 additions and 25 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue