Expose native Unity current document access
This commit is contained in:
parent
cf5897a98c
commit
988b72d2ba
5 changed files with 53 additions and 31 deletions
|
|
@ -2562,10 +2562,9 @@ static void RequireDaemonRenderQueryAuthority(string root)
|
|||
{
|
||||
"CatalogSnapshot()",
|
||||
"CurrentEntityHudStatus()",
|
||||
".RuntimeState(\"unity-schematic-display\")",
|
||||
".CurrentCatalog()",
|
||||
".CurrentPlayerSettings()",
|
||||
".CurrentEntityState()",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentCatalog(\"unity-schematic-display\")",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentPlayerSettings(\"unity-schematic-display\")",
|
||||
".CurrentEntityState(\"unity-schematic-display\")",
|
||||
"?.Hud ?? new AetheriaRuntimeCurrentEntityHudStatus();",
|
||||
"hud.OverrideShutdown",
|
||||
"hud.HeatsinksEnabled",
|
||||
|
|
@ -5796,8 +5795,7 @@ static void RequireTradeCargoSelectorUseEveSurface(string root)
|
|||
"AetheriaRuntimeTradeCargoSelectorSurfaceCommands.TryRead(request, out var command)",
|
||||
"AetheriaRuntimeTradeCargoSelectorCommandKind.Close",
|
||||
"AetheriaRuntimeTradeCargoSelectorCommandKind.Select",
|
||||
".RuntimeState(\"unity-trade\")",
|
||||
".CurrentStationRefit()",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentStationRefit(\"unity-trade\")",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentDockingState(\"unity-trade\")",
|
||||
"SetTargetCargo(",
|
||||
"selection.EntityKey",
|
||||
|
|
@ -7546,7 +7544,6 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
{
|
||||
"public abstract class ActionBarBinding",
|
||||
"AetheriaUnityRuntimeClientProvider",
|
||||
".RuntimeState()",
|
||||
".CurrentCatalog()",
|
||||
".FindItem(item, x => x.ItemKey)",
|
||||
"private void OnDestroy()"
|
||||
|
|
@ -7589,10 +7586,9 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
"AetheriaRuntimePlayerHudState.cs");
|
||||
var requiredSchematicDisplaySymbols = new[]
|
||||
{
|
||||
".RuntimeState(\"unity-schematic-display\")",
|
||||
".CurrentCatalog()",
|
||||
".CurrentPlayerSettings()",
|
||||
".CurrentEntityState()",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentCatalog(\"unity-schematic-display\")",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentPlayerSettings(\"unity-schematic-display\")",
|
||||
".CurrentEntityState(\"unity-schematic-display\")",
|
||||
"CatalogSnapshot()?.FindItem(item, x => x.ItemKey)",
|
||||
"private AetheriaRuntimeCatalogSnapshot CatalogSnapshot()",
|
||||
"private AetheriaRuntimePlayerSettingsDocument PlayerSettingsSnapshot()",
|
||||
|
|
@ -7859,8 +7855,8 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
var compactTradeMenu = CompactSource(tradeMenu);
|
||||
var requiredTradeMenuSharedDocumentSymbols = new[]
|
||||
{
|
||||
".RuntimeState(\"unity-trade\").CurrentCatalog()",
|
||||
".RuntimeState(\"unity-trade\").CurrentPlayerSettings()",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentCatalog(\"unity-trade\")",
|
||||
"AetheriaUnityRuntimeClientProvider.CurrentPlayerSettings(\"unity-trade\")",
|
||||
"private void OnDestroy()"
|
||||
};
|
||||
var missingTradeMenuSharedDocumentSymbols = requiredTradeMenuSharedDocumentSymbols
|
||||
|
|
@ -16463,6 +16459,10 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
|
|||
"public static AetheriaClientState RuntimeState(string runtimeId = \"\")",
|
||||
"public static AetheriaRuntimeCurrentDockingDocument CurrentDockingState(string runtimeId = \"\")",
|
||||
"public static AetheriaRuntimeCurrentDockingDocument CurrentDockingState(",
|
||||
"public static AetheriaRuntimeCatalogSnapshot CurrentCatalog(string runtimeId = \"\")",
|
||||
"public static AetheriaRuntimePlayerSettingsDocument CurrentPlayerSettings(string runtimeId = \"\")",
|
||||
"public static AetheriaRuntimeCurrentEntityDocument CurrentEntityState(string runtimeId = \"\")",
|
||||
"public static AetheriaRuntimeStationRefitDocument CurrentStationRefit(string runtimeId = \"\")",
|
||||
"public static AetheriaControl Control(string runtimeId = \"\")",
|
||||
"public static AetheriaUi Ui(string runtimeId = \"\")",
|
||||
"public static AetheriaUi Ui(",
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ public abstract class ActionBarBinding
|
|||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState()
|
||||
.CurrentCatalog()
|
||||
.FindItem(item, x => x.ItemKey);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,40 @@ public static class AetheriaUnityRuntimeClientProvider
|
|||
return RuntimeState(stateBoot, runtimeId).CurrentDockingState();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimeCatalogSnapshot CurrentCatalog(string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(runtimeId).CurrentCatalog();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimeCatalogSnapshot CurrentCatalog(
|
||||
AetheriaRuntimeStateBootReport stateBoot,
|
||||
string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(stateBoot, runtimeId).CurrentCatalog();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimePlayerSettingsDocument CurrentPlayerSettings(string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(runtimeId).CurrentPlayerSettings();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimePlayerSettingsDocument CurrentPlayerSettings(
|
||||
AetheriaRuntimeStateBootReport stateBoot,
|
||||
string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(stateBoot, runtimeId).CurrentPlayerSettings();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimeCurrentEntityDocument CurrentEntityState(string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(runtimeId).CurrentEntityState();
|
||||
}
|
||||
|
||||
public static AetheriaRuntimeStationRefitDocument CurrentStationRefit(string runtimeId = "")
|
||||
{
|
||||
return RuntimeState(runtimeId).CurrentStationRefit();
|
||||
}
|
||||
|
||||
public static AetheriaControl Control(string runtimeId = "")
|
||||
{
|
||||
return RuntimeClient(runtimeId).Control;
|
||||
|
|
|
|||
|
|
@ -318,9 +318,7 @@ public class SchematicDisplay : MonoBehaviour
|
|||
{
|
||||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-schematic-display")
|
||||
.CurrentCatalog();
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentCatalog("unity-schematic-display");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -334,9 +332,7 @@ public class SchematicDisplay : MonoBehaviour
|
|||
{
|
||||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-schematic-display")
|
||||
.CurrentPlayerSettings();
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentPlayerSettings("unity-schematic-display");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -351,8 +347,7 @@ public class SchematicDisplay : MonoBehaviour
|
|||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-schematic-display")
|
||||
.CurrentEntityState()
|
||||
.CurrentEntityState("unity-schematic-display")
|
||||
?.Hud ?? new AetheriaRuntimeCurrentEntityHudStatus();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -504,9 +504,7 @@ public class TradeMenu : MonoBehaviour
|
|||
{
|
||||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-trade")
|
||||
.CurrentStationRefit();
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentStationRefit("unity-trade");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -579,9 +577,7 @@ public class TradeMenu : MonoBehaviour
|
|||
{
|
||||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-trade")
|
||||
.CurrentCatalog();
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentCatalog("unity-trade");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -594,9 +590,7 @@ public class TradeMenu : MonoBehaviour
|
|||
{
|
||||
try
|
||||
{
|
||||
return AetheriaUnityRuntimeClientProvider
|
||||
.RuntimeState("unity-trade")
|
||||
.CurrentPlayerSettings();
|
||||
return AetheriaUnityRuntimeClientProvider.CurrentPlayerSettings("unity-trade");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue