Use managed Verse target copy
This commit is contained in:
parent
a849214e0b
commit
b88bafd9e1
9 changed files with 75 additions and 11 deletions
|
|
@ -2137,6 +2137,12 @@ static void RequireDaemonRenderQueryAuthority(string root)
|
|||
var querySource = File.Exists(queryPath)
|
||||
? File.ReadAllText(queryPath)
|
||||
: throw new InvalidOperationException("Daemon render queries must live in the shared Aetheria runtime package, not in Unity ZoneRenderer.");
|
||||
if (querySource.Contains("Unity XZ viewport", StringComparison.Ordinal) ||
|
||||
querySource.Contains("through Unity axes", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Shared daemon render query types must use domain projection vocabulary, not runtime-specific Unity axis copy.");
|
||||
}
|
||||
|
||||
var packageSnapshotPath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeSnapshotDocuments.cs");
|
||||
var packageSnapshot = File.Exists(packageSnapshotPath)
|
||||
|
|
@ -8073,6 +8079,64 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
string.Join(", ", forbiddenMainMenuSharedDocumentHits));
|
||||
}
|
||||
|
||||
var managedVerseCopySources = new Dictionary<string, string>
|
||||
{
|
||||
["Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Packages",
|
||||
"org.gamecult.aetheria.state",
|
||||
"Runtime",
|
||||
"AetheriaClient.cs")),
|
||||
["Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeClientTargetSurfaceBuilder.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Packages",
|
||||
"org.gamecult.aetheria.state",
|
||||
"Runtime",
|
||||
"AetheriaRuntimeClientTargetSurfaceBuilder.cs")),
|
||||
["Assets/Scripts/Gameplay/AetheriaDaemonObserver.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Assets",
|
||||
"Scripts",
|
||||
"Gameplay",
|
||||
"AetheriaDaemonObserver.cs")),
|
||||
["Assets/Scripts/UI/InputScreen/InputDisplayLayout.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Assets",
|
||||
"Scripts",
|
||||
"UI",
|
||||
"InputScreen",
|
||||
"InputDisplayLayout.cs")),
|
||||
["Assets/Scripts/UI/MainMenu.cs"] = mainMenu,
|
||||
["Assets/Scripts/UI/Menu/InventoryPanel.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Assets",
|
||||
"Scripts",
|
||||
"UI",
|
||||
"Menu",
|
||||
"InventoryPanel.cs")),
|
||||
["Assets/Scripts/UI/Menu/SectorRenderer.cs"] = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Assets",
|
||||
"Scripts",
|
||||
"UI",
|
||||
"Menu",
|
||||
"SectorRenderer.cs"))
|
||||
};
|
||||
var staleLocalVerseCopyHits = managedVerseCopySources
|
||||
.Where(pair =>
|
||||
pair.Value.Contains("local Verse state", StringComparison.Ordinal) ||
|
||||
pair.Value.Contains("local Aetheria Verse state", StringComparison.Ordinal) ||
|
||||
pair.Value.Contains("selected local Verse state file", StringComparison.Ordinal) ||
|
||||
pair.Value.Contains("readable local Verse state file", StringComparison.Ordinal))
|
||||
.Select(pair => pair.Key)
|
||||
.ToArray();
|
||||
if (staleLocalVerseCopyHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Managed client/UI surfaces must describe typed Verse targets/documents instead of teaching local-file Verse authority: " +
|
||||
string.Join(", ", staleLocalVerseCopyHits));
|
||||
}
|
||||
|
||||
var tradeMenu = File.ReadAllText(Path.Combine(
|
||||
root,
|
||||
"Assets",
|
||||
|
|
@ -13528,7 +13592,7 @@ static void RequireMainMenuVerseHostDocumentAccess(string root)
|
|||
"\"Verse\"",
|
||||
"\"Visibility\"",
|
||||
"\"CultMesh\"",
|
||||
"Client target edits are local. Visibility changes append provider-owned Eve requests"
|
||||
"Client target edits persist through the managed target document. Visibility changes append provider-owned Eve requests against the selected Verse target."
|
||||
};
|
||||
var missingMainMenuSymbols = requiredMainMenuSymbols
|
||||
.Where(symbol => !mainMenu.Contains(symbol, StringComparison.Ordinal))
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ public sealed class AetheriaDaemonObserver : MonoBehaviour
|
|||
if (!stateBoot.SupportsLocalStateFileRead || !stateBoot.StateFileExists)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Aetheria daemon observer requires a readable local Verse state file: {stateBoot.FailureMessage}");
|
||||
$"Aetheria daemon observer requires a readable managed Verse target: {stateBoot.FailureMessage}");
|
||||
}
|
||||
|
||||
_renderDocuments = AetheriaUnityRuntimeClientProvider.DaemonRenderDocuments(stateBoot, clientId);
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ public class InputDisplayLayout : MonoBehaviour
|
|||
if (!stateBoot.SupportsLocalStateFileRead || !stateBoot.StateFileExists)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Input settings require a readable local Aetheria Verse state file: {stateBoot.FailureMessage}");
|
||||
$"Input settings require a readable managed Aetheria Verse target: {stateBoot.FailureMessage}");
|
||||
}
|
||||
|
||||
return stateBoot;
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ public class MainMenu : MonoBehaviour
|
|||
if (!stateBoot.SupportsLocalStateFileRead || !stateBoot.StateFileExists)
|
||||
{
|
||||
Debug.LogWarning(
|
||||
$"Cannot send {label} command because the active target is not a readable local Verse state file.");
|
||||
$"Cannot send {label} command because the active Verse target is not readable.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarning($"Failed to read Aetheria inventory panel surface from local Verse state: {ex.Message}");
|
||||
Debug.LogWarning($"Failed to read Aetheria inventory panel surface from managed Verse state: {ex.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -398,7 +398,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarning($"Failed to read Aetheria inventory dropdown surface from local Verse state: {ex.Message}");
|
||||
Debug.LogWarning($"Failed to read Aetheria inventory dropdown surface from managed Verse state: {ex.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarning($"Failed to read Aetheria sector zone details surface from local Verse state: {ex.Message}");
|
||||
Debug.LogWarning($"Failed to read Aetheria sector zone details surface from managed Verse state: {ex.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -165,7 +165,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarning($"Failed to read Aetheria sector current zone from local Verse state: {ex.Message}");
|
||||
Debug.LogWarning($"Failed to read Aetheria sector current zone from managed Verse state: {ex.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
if (!stateBoot.SupportsLocalStateFileRead || !stateBoot.StateFileExists)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Aetheria local client requires a readable local Verse state file: {stateBoot.FailureMessage}");
|
||||
$"Aetheria client requires a readable managed Verse target: {stateBoot.FailureMessage}");
|
||||
}
|
||||
|
||||
return OpenAsync(
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
new[] { ("title", "Ownership") },
|
||||
Text(
|
||||
"aetheria.clientTarget.host.note",
|
||||
"Client target edits are local. Visibility changes append provider-owned Eve requests against the selected local Verse state file."))),
|
||||
"Client target edits persist through the managed target document. Visibility changes append provider-owned Eve requests against the selected Verse target."))),
|
||||
Array.Empty<AetheriaRuntimeSurfaceStyleToken>()),
|
||||
commands: new[]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unity XZ viewport boundary for callers that still present the world through Unity axes.
|
||||
/// Horizontal X/Z viewport boundary for callers projecting the world into a two-dimensional surface.
|
||||
/// </summary>
|
||||
public readonly struct AetheriaRuntimeXzRect
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue