Move loadout template access onto run checkpoints
This commit is contained in:
parent
157eff34cd
commit
7a7000f202
7 changed files with 268 additions and 275 deletions
|
|
@ -1081,7 +1081,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
var client = ResolveClient();
|
||||
var loadout = ProjectLoadoutTemplate(targetEntityKey);
|
||||
var loadout = CreateLoadoutTemplate(targetEntityKey);
|
||||
if (loadout?.RootEntity == null || string.IsNullOrWhiteSpace(loadout.RootEntity.Hull?.ItemKey ?? ""))
|
||||
return;
|
||||
|
||||
|
|
@ -1532,12 +1532,11 @@ private void Update()
|
|||
return _stationRefit?.Current;
|
||||
}
|
||||
|
||||
private AetheriaRuntimeLoadoutTemplateCommit ProjectLoadoutTemplate(string targetEntityKey)
|
||||
private AetheriaRuntimeLoadoutTemplateCommit CreateLoadoutTemplate(string targetEntityKey)
|
||||
{
|
||||
var frame = ResolveLoadoutFrame();
|
||||
return AetheriaRuntimeLoadoutSnapshotProjector.ProjectLoadoutTemplate(
|
||||
frame?.Run ?? new AetheriaRuntimeRunCheckpointCommit(),
|
||||
targetEntityKey ?? "");
|
||||
return (frame?.Run ?? new AetheriaRuntimeRunCheckpointCommit())
|
||||
.CreateLoadoutTemplate(targetEntityKey ?? "");
|
||||
}
|
||||
|
||||
private AetheriaRuntimeDaemonFrameDocument ResolveLoadoutFrame()
|
||||
|
|
|
|||
Loading…
Reference in a new issue