Add EveUnity playable world input and camera
This commit is contained in:
parent
d40be46a48
commit
e5a7092471
13 changed files with 551 additions and 8 deletions
|
|
@ -0,0 +1,92 @@
|
|||
using UnityEngine;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace GameCult.Eve.UnityScene
|
||||
{
|
||||
public sealed class EveUnityPlayableWorldCameraRig : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private EveUnityPlayableWorldClientHost? host;
|
||||
[SerializeField] private Transform? cameraTransform;
|
||||
[SerializeField] private bool driveInLateUpdate = true;
|
||||
[SerializeField] private float distance = 10f;
|
||||
[SerializeField] private float height = 6f;
|
||||
[SerializeField] private float yawDegrees = 35f;
|
||||
[SerializeField] private float followDamping = 12f;
|
||||
|
||||
public EveUnityPlayableWorldClientHost? Host
|
||||
{
|
||||
get => host;
|
||||
set => host = value;
|
||||
}
|
||||
|
||||
public Transform? CameraTransform
|
||||
{
|
||||
get => cameraTransform;
|
||||
set => cameraTransform = value;
|
||||
}
|
||||
|
||||
public bool ApplyRig(float deltaTime)
|
||||
{
|
||||
var resolvedHost = ResolveHost();
|
||||
var activeWorld = resolvedHost?.ActiveWorld;
|
||||
if (resolvedHost == null || activeWorld == null)
|
||||
return false;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(activeWorld.CameraRig) &&
|
||||
activeWorld.CameraRig != "arpg.orbital-follow.v1" &&
|
||||
activeWorld.CameraRig != "third-person-orbit")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var camera = cameraTransform != null ? cameraTransform : transform;
|
||||
var player = FindPlayerMarker(resolvedHost, activeWorld.PlayerEntityId);
|
||||
if (player == null)
|
||||
return false;
|
||||
|
||||
var target = player.transform.position;
|
||||
var orbit = Quaternion.Euler(0f, yawDegrees, 0f) * (Vector3.back * Mathf.Max(0.1f, distance));
|
||||
var desiredPosition = target + orbit + (Vector3.up * Mathf.Max(0f, height));
|
||||
var t = deltaTime <= 0f
|
||||
? 1f
|
||||
: 1f - Mathf.Exp(-Mathf.Max(0.01f, followDamping) * deltaTime);
|
||||
|
||||
camera.position = Vector3.Lerp(camera.position, desiredPosition, t);
|
||||
camera.LookAt(target);
|
||||
return true;
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
if (driveInLateUpdate)
|
||||
ApplyRig(Time.deltaTime);
|
||||
}
|
||||
|
||||
private EveUnityPlayableWorldClientHost? ResolveHost()
|
||||
{
|
||||
if (host != null)
|
||||
return host;
|
||||
|
||||
host = GetComponent<EveUnityPlayableWorldClientHost>();
|
||||
return host;
|
||||
}
|
||||
|
||||
private static EveUnityPlayableWorldEntityMarker? FindPlayerMarker(
|
||||
EveUnityPlayableWorldClientHost host,
|
||||
string playerEntityId)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(playerEntityId))
|
||||
return null;
|
||||
|
||||
var markers = host.SceneRoot.GetComponentsInChildren<EveUnityPlayableWorldEntityMarker>();
|
||||
foreach (var marker in markers)
|
||||
{
|
||||
if (marker != null && marker.EntityId == playerEntityId)
|
||||
return marker;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3e68cf66c50b4951a9d7f7de68f0ad0e
|
||||
|
|
@ -32,6 +32,8 @@ namespace GameCult.Eve.UnityScene
|
|||
|
||||
public long ActiveVersion => Runtime?.ActiveVersion ?? 0;
|
||||
|
||||
public Transform SceneRoot => sceneRoot == null ? transform : sceneRoot;
|
||||
|
||||
public void Configure(
|
||||
Transform? sceneRoot,
|
||||
MonoBehaviour providerSurfaceDocuments,
|
||||
|
|
@ -54,7 +56,7 @@ namespace GameCult.Eve.UnityScene
|
|||
RefreshProviderSources();
|
||||
|
||||
Runtime = EveUnityPlayableWorldRuntime.CreateForGameObjectScene(
|
||||
sceneRoot == null ? transform : sceneRoot,
|
||||
SceneRoot,
|
||||
Required<IEveUnitySceneProviderSurfaceDocumentSource>(
|
||||
providerSurfaceDocuments,
|
||||
nameof(providerSurfaceDocuments)),
|
||||
|
|
@ -87,6 +89,16 @@ namespace GameCult.Eve.UnityScene
|
|||
return RequireRuntime().SubmitMoveIntent(entityId, targetX, targetY, targetZ, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitMoveVectorIntent(
|
||||
string entityId,
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue = 1f,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
return RequireRuntime().SubmitMoveVectorIntent(entityId, directionX, directionY, scalarValue, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitFocusIntent(
|
||||
string entityId,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,173 @@
|
|||
using System;
|
||||
using GameCult.Eve.Surface;
|
||||
using UnityEngine;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace GameCult.Eve.UnityScene
|
||||
{
|
||||
public sealed class EveUnityPlayableWorldInputDriver : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private EveUnityPlayableWorldClientHost? host;
|
||||
[SerializeField] private Transform? cameraTransform;
|
||||
[SerializeField] private bool driveInUpdate = true;
|
||||
[SerializeField] private string horizontalAxis = "Horizontal";
|
||||
[SerializeField] private string verticalAxis = "Vertical";
|
||||
[SerializeField] private string actionButton = "Fire1";
|
||||
[SerializeField] private float deadZone = 0.01f;
|
||||
[SerializeField] private float commandIntervalSeconds = 0.05f;
|
||||
[SerializeField] private bool submitZeroOnRelease = true;
|
||||
|
||||
private float _nextCommandAt;
|
||||
private bool _wasMoving;
|
||||
|
||||
public EveUnityPlayableWorldClientHost? Host
|
||||
{
|
||||
get => host;
|
||||
set => host = value;
|
||||
}
|
||||
|
||||
public Transform? CameraTransform
|
||||
{
|
||||
get => cameraTransform;
|
||||
set => cameraTransform = value;
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest? SubmitMoveVectorInput(
|
||||
float horizontal,
|
||||
float vertical,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
var resolvedHost = ResolveHost();
|
||||
if (resolvedHost == null || resolvedHost.ActiveWorld == null)
|
||||
return null;
|
||||
|
||||
var movement = EveUnityPlayableWorldMoveVector.FromCameraRelativeInput(
|
||||
horizontal,
|
||||
vertical,
|
||||
cameraTransform,
|
||||
deadZone);
|
||||
|
||||
if (!movement.HasInput)
|
||||
{
|
||||
if (!submitZeroOnRelease || !_wasMoving)
|
||||
return null;
|
||||
|
||||
_wasMoving = false;
|
||||
return resolvedHost.SubmitMoveVectorIntent(
|
||||
resolvedHost.ActiveWorld.PlayerEntityId,
|
||||
0f,
|
||||
0f,
|
||||
0f,
|
||||
issuedAt);
|
||||
}
|
||||
|
||||
_wasMoving = true;
|
||||
return resolvedHost.SubmitMoveVectorIntent(
|
||||
resolvedHost.ActiveWorld.PlayerEntityId,
|
||||
movement.DirectionX,
|
||||
movement.DirectionY,
|
||||
movement.ScalarValue,
|
||||
issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest? SubmitPrimaryAction(string actionId = "primary")
|
||||
{
|
||||
var resolvedHost = ResolveHost();
|
||||
if (resolvedHost?.ActiveWorld == null)
|
||||
return null;
|
||||
|
||||
return resolvedHost.SubmitActionIntent(
|
||||
resolvedHost.ActiveWorld.PlayerEntityId,
|
||||
string.IsNullOrWhiteSpace(actionId) ? "primary" : actionId);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (!driveInUpdate || Time.unscaledTime < _nextCommandAt)
|
||||
return;
|
||||
|
||||
_nextCommandAt = Time.unscaledTime + Math.Max(0.01f, commandIntervalSeconds);
|
||||
SubmitMoveVectorInput(Input.GetAxisRaw(horizontalAxis), Input.GetAxisRaw(verticalAxis));
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(actionButton) && Input.GetButtonDown(actionButton))
|
||||
SubmitPrimaryAction(actionButton);
|
||||
}
|
||||
|
||||
private EveUnityPlayableWorldClientHost? ResolveHost()
|
||||
{
|
||||
if (host != null)
|
||||
return host;
|
||||
|
||||
host = GetComponent<EveUnityPlayableWorldClientHost>();
|
||||
return host;
|
||||
}
|
||||
}
|
||||
|
||||
public readonly struct EveUnityPlayableWorldMoveVector
|
||||
{
|
||||
public EveUnityPlayableWorldMoveVector(
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue,
|
||||
bool hasInput)
|
||||
{
|
||||
DirectionX = directionX;
|
||||
DirectionY = directionY;
|
||||
ScalarValue = scalarValue;
|
||||
HasInput = hasInput;
|
||||
}
|
||||
|
||||
public float DirectionX { get; }
|
||||
|
||||
public float DirectionY { get; }
|
||||
|
||||
public float ScalarValue { get; }
|
||||
|
||||
public bool HasInput { get; }
|
||||
|
||||
public static EveUnityPlayableWorldMoveVector FromCameraRelativeInput(
|
||||
float horizontal,
|
||||
float vertical,
|
||||
Transform? cameraTransform,
|
||||
float deadZone = 0.01f)
|
||||
{
|
||||
var input = new Vector2(horizontal, vertical);
|
||||
var magnitude = Mathf.Clamp01(input.magnitude);
|
||||
if (magnitude <= Mathf.Max(0f, deadZone))
|
||||
return new EveUnityPlayableWorldMoveVector(0f, 0f, 0f, false);
|
||||
|
||||
Vector3 direction;
|
||||
if (cameraTransform == null)
|
||||
{
|
||||
direction = new Vector3(horizontal, 0f, vertical);
|
||||
}
|
||||
else
|
||||
{
|
||||
var forward = cameraTransform.forward;
|
||||
forward.y = 0f;
|
||||
if (forward.sqrMagnitude <= 0.0001f)
|
||||
forward = Vector3.forward;
|
||||
forward.Normalize();
|
||||
|
||||
var right = cameraTransform.right;
|
||||
right.y = 0f;
|
||||
if (right.sqrMagnitude <= 0.0001f)
|
||||
right = Vector3.right;
|
||||
right.Normalize();
|
||||
|
||||
direction = (right * horizontal) + (forward * vertical);
|
||||
}
|
||||
|
||||
if (direction.sqrMagnitude <= 0.0001f)
|
||||
return new EveUnityPlayableWorldMoveVector(0f, 0f, 0f, false);
|
||||
|
||||
direction.Normalize();
|
||||
return new EveUnityPlayableWorldMoveVector(
|
||||
direction.x,
|
||||
direction.z,
|
||||
magnitude,
|
||||
true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7ad1be678e6e4d6d9c72769358e0a233
|
||||
|
|
@ -65,6 +65,16 @@ namespace GameCult.Eve.UnityScene
|
|||
return _connection.SubmitMoveIntent(entityId, targetX, targetY, targetZ, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitMoveVectorIntent(
|
||||
string entityId,
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue = 1f,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
return _connection.SubmitMoveVectorIntent(entityId, directionX, directionY, scalarValue, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitFocusIntent(
|
||||
string entityId,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
|
|
|
|||
|
|
@ -108,6 +108,16 @@ namespace GameCult.Eve.UnityScene
|
|||
return _client.SubmitMoveIntent(entityId, targetX, targetY, targetZ, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitMoveVectorIntent(
|
||||
string entityId,
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue = 1f,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
return _client.SubmitMoveVectorIntent(entityId, directionX, directionY, scalarValue, issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitFocusIntent(
|
||||
string entityId,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
|
|
|
|||
|
|
@ -63,6 +63,26 @@ namespace GameCult.Eve.UnityScene
|
|||
issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest CreateMoveVectorIntent(
|
||||
string entityId,
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue = 1f,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
var playableWorld = RequirePlayableWorld();
|
||||
return CreatePlayableWorldIntent(
|
||||
playableWorld.MovementCommand,
|
||||
new Dictionary<string, string>(StringComparer.Ordinal)
|
||||
{
|
||||
["entityId"] = entityId ?? "",
|
||||
["directionX"] = FormatFloat(directionX),
|
||||
["directionY"] = FormatFloat(directionY),
|
||||
["scalarValue"] = FormatFloat(scalarValue)
|
||||
},
|
||||
issuedAt);
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest CreateFocusIntent(
|
||||
string entityId,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
|
|
@ -168,6 +188,11 @@ namespace GameCult.Eve.UnityScene
|
|||
y.ToString("R", CultureInfo.InvariantCulture),
|
||||
z.ToString("R", CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
private static string FormatFloat(float value)
|
||||
{
|
||||
return value.ToString("R", CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class EveUnitySceneProviderSurfaceSnapshot
|
||||
|
|
|
|||
|
|
@ -184,6 +184,16 @@ namespace GameCult.Eve.UnityScene
|
|||
return Submit(_session.CreateMoveIntent(entityId, targetX, targetY, targetZ, issuedAt));
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitMoveVectorIntent(
|
||||
string entityId,
|
||||
float directionX,
|
||||
float directionY,
|
||||
float scalarValue = 1f,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
{
|
||||
return Submit(_session.CreateMoveVectorIntent(entityId, directionX, directionY, scalarValue, issuedAt));
|
||||
}
|
||||
|
||||
public EveSurfaceCommandRequest SubmitFocusIntent(
|
||||
string entityId,
|
||||
DateTimeOffset? issuedAt = null)
|
||||
|
|
|
|||
|
|
@ -130,6 +130,22 @@ namespace GameCult.Eve.UnityScene.Tests
|
|||
var focusIntent = session.CreateFocusIntent("anchor-station");
|
||||
Assert.That(focusIntent.Command, Is.EqualTo("aetheria.daemon.commands"));
|
||||
Assert.That(focusIntent.CommandBoundary, Is.EqualTo("aetheria.daemon.commands"));
|
||||
|
||||
var moveVectorIntent = session.CreateMoveVectorIntent(
|
||||
"player-vanguard",
|
||||
0.25f,
|
||||
0.75f,
|
||||
0.8f,
|
||||
DateTimeOffset.Parse("2026-07-09T00:00:01Z"));
|
||||
|
||||
Assert.That(moveVectorIntent.ProviderId, Is.EqualTo("aetheria"));
|
||||
Assert.That(moveVectorIntent.SurfaceId, Is.EqualTo("aetheria.daemon.game"));
|
||||
Assert.That(moveVectorIntent.Command, Is.EqualTo("aetheria.daemon.commands"));
|
||||
Assert.That(moveVectorIntent.Payload.GetString("commandId"), Is.EqualTo("aetheria.daemon.move_intent"));
|
||||
Assert.That(moveVectorIntent.Payload.GetString("entityId"), Is.EqualTo("player-vanguard"));
|
||||
Assert.That(moveVectorIntent.Payload.GetString("directionX"), Is.EqualTo("0.25"));
|
||||
Assert.That(moveVectorIntent.Payload.GetString("directionY"), Is.EqualTo("0.75"));
|
||||
Assert.That(moveVectorIntent.Payload.GetString("scalarValue"), Is.EqualTo("0.8"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
@ -384,6 +400,142 @@ namespace GameCult.Eve.UnityScene.Tests
|
|||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PlayableWorldClientHostSubmitsProviderOwnedMoveVector()
|
||||
{
|
||||
var rootObject = new GameObject("generic-eve-world-root");
|
||||
var hostObject = new GameObject("generic-eve-client");
|
||||
hostObject.SetActive(false);
|
||||
|
||||
try
|
||||
{
|
||||
var provider = hostObject.AddComponent<FakePlayableWorldProviderComponent>();
|
||||
provider.Set(
|
||||
new EveUnitySceneProviderSurfaceDocument(
|
||||
PlayableArpgDocument(),
|
||||
Advertisement("aetheria.daemon.game"),
|
||||
"cultmesh://aetheria/eve/surfaces/aetheria.daemon.game",
|
||||
1),
|
||||
new EveUnityPlayableWorldAssetManifestDocument(
|
||||
"cultmesh://aetheria/assets/manifest",
|
||||
Array.Empty<EveUnityPlayableWorldAssetManifestDocumentEntry>(),
|
||||
"aetheria"));
|
||||
|
||||
var host = hostObject.AddComponent<EveUnityPlayableWorldClientHost>();
|
||||
host.Configure(rootObject.transform, provider, provider, provider, provider);
|
||||
host.Connect();
|
||||
|
||||
var moveVector = host.SubmitMoveVectorIntent("player-vanguard", 0.6f, -0.8f, 1f);
|
||||
|
||||
Assert.That(provider.Submitted.Count, Is.EqualTo(1));
|
||||
Assert.That(provider.Submitted[0], Is.SameAs(moveVector));
|
||||
Assert.That(moveVector.CommandBoundary, Is.EqualTo("aetheria.daemon.commands"));
|
||||
Assert.That(moveVector.Payload.GetString("commandId"), Is.EqualTo("aetheria.daemon.move_intent"));
|
||||
Assert.That(moveVector.Payload.GetString("entityId"), Is.EqualTo("player-vanguard"));
|
||||
Assert.That(moveVector.Payload.GetString("directionX"), Is.EqualTo("0.6"));
|
||||
Assert.That(moveVector.Payload.GetString("directionY"), Is.EqualTo("-0.8"));
|
||||
Assert.That(moveVector.Payload.GetString("scalarValue"), Is.EqualTo("1"));
|
||||
}
|
||||
finally
|
||||
{
|
||||
UnityEngine.Object.DestroyImmediate(hostObject);
|
||||
UnityEngine.Object.DestroyImmediate(rootObject);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PlayableWorldInputDriverBuildsCameraRelativeMoveVectorWithoutProviderTypes()
|
||||
{
|
||||
var rootObject = new GameObject("generic-eve-world-root");
|
||||
var hostObject = new GameObject("generic-eve-client");
|
||||
var cameraObject = new GameObject("generic-eve-camera");
|
||||
hostObject.SetActive(false);
|
||||
|
||||
try
|
||||
{
|
||||
cameraObject.transform.rotation = Quaternion.Euler(0f, 90f, 0f);
|
||||
var provider = hostObject.AddComponent<FakePlayableWorldProviderComponent>();
|
||||
provider.Set(
|
||||
new EveUnitySceneProviderSurfaceDocument(
|
||||
PlayableArpgDocument(),
|
||||
Advertisement("aetheria.daemon.game"),
|
||||
"cultmesh://aetheria/eve/surfaces/aetheria.daemon.game",
|
||||
1),
|
||||
new EveUnityPlayableWorldAssetManifestDocument(
|
||||
"cultmesh://aetheria/assets/manifest",
|
||||
Array.Empty<EveUnityPlayableWorldAssetManifestDocumentEntry>(),
|
||||
"aetheria"));
|
||||
|
||||
var host = hostObject.AddComponent<EveUnityPlayableWorldClientHost>();
|
||||
host.Configure(rootObject.transform, provider, provider, provider, provider);
|
||||
host.Connect();
|
||||
|
||||
var driver = hostObject.AddComponent<EveUnityPlayableWorldInputDriver>();
|
||||
driver.Host = host;
|
||||
driver.CameraTransform = cameraObject.transform;
|
||||
var request = driver.SubmitMoveVectorInput(0f, 1f);
|
||||
|
||||
Assert.That(request, Is.Not.Null);
|
||||
Assert.That(provider.Submitted.Count, Is.EqualTo(1));
|
||||
Assert.That(request!.Payload.GetString("commandId"), Is.EqualTo("aetheria.daemon.move_intent"));
|
||||
Assert.That(request.Payload.GetDouble("directionX", 0), Is.EqualTo(1f).Within(0.0001f));
|
||||
Assert.That(request.Payload.GetDouble("directionY", 0), Is.EqualTo(0f).Within(0.0001f));
|
||||
Assert.That(request.Payload.GetDouble("scalarValue", 0), Is.EqualTo(1f).Within(0.0001f));
|
||||
|
||||
var movement = EveUnityPlayableWorldMoveVector.FromCameraRelativeInput(1f, 1f, null);
|
||||
Assert.That(movement.HasInput, Is.True);
|
||||
Assert.That(movement.ScalarValue, Is.EqualTo(1f).Within(0.0001f));
|
||||
}
|
||||
finally
|
||||
{
|
||||
UnityEngine.Object.DestroyImmediate(cameraObject);
|
||||
UnityEngine.Object.DestroyImmediate(hostObject);
|
||||
UnityEngine.Object.DestroyImmediate(rootObject);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PlayableWorldCameraRigFollowsAdvertisedPlayerEntityWithoutProviderTypes()
|
||||
{
|
||||
var rootObject = new GameObject("generic-eve-world-root");
|
||||
var hostObject = new GameObject("generic-eve-client");
|
||||
var cameraObject = new GameObject("generic-eve-camera");
|
||||
hostObject.SetActive(false);
|
||||
|
||||
try
|
||||
{
|
||||
var provider = hostObject.AddComponent<FakePlayableWorldProviderComponent>();
|
||||
provider.Set(
|
||||
new EveUnitySceneProviderSurfaceDocument(
|
||||
PlayableArpgDocument(),
|
||||
Advertisement("aetheria.daemon.game"),
|
||||
"cultmesh://aetheria/eve/surfaces/aetheria.daemon.game",
|
||||
1),
|
||||
new EveUnityPlayableWorldAssetManifestDocument(
|
||||
"cultmesh://aetheria/assets/manifest",
|
||||
Array.Empty<EveUnityPlayableWorldAssetManifestDocumentEntry>(),
|
||||
"aetheria"));
|
||||
|
||||
var host = hostObject.AddComponent<EveUnityPlayableWorldClientHost>();
|
||||
host.Configure(rootObject.transform, provider, provider, provider, provider);
|
||||
host.Connect();
|
||||
|
||||
var rig = hostObject.AddComponent<EveUnityPlayableWorldCameraRig>();
|
||||
rig.Host = host;
|
||||
rig.CameraTransform = cameraObject.transform;
|
||||
|
||||
Assert.That(rig.ApplyRig(0f), Is.True);
|
||||
Assert.That(cameraObject.transform.position.y, Is.GreaterThan(0f));
|
||||
Assert.That(Vector3.Distance(cameraObject.transform.position, Vector3.zero), Is.GreaterThan(1f));
|
||||
}
|
||||
finally
|
||||
{
|
||||
UnityEngine.Object.DestroyImmediate(cameraObject);
|
||||
UnityEngine.Object.DestroyImmediate(hostObject);
|
||||
UnityEngine.Object.DestroyImmediate(rootObject);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PlayableWorldPresenterInstantiatesUpdatesAndDespawnsProviderEntities()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@
|
|||
"providerCommandReceipts",
|
||||
"providerAssetManifestDocumentSource",
|
||||
"playableWorldClientHost",
|
||||
"playableWorldInputDriver",
|
||||
"playableWorldCameraRig",
|
||||
"sceneGraphProjection",
|
||||
"playableWorldProjection",
|
||||
"playableWorldRuntimeHost",
|
||||
|
|
@ -76,6 +78,8 @@
|
|||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldLiveClient.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldRuntime.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldClientHost.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldInputDriver.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldCameraRig.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityProviderRefreshSource.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldPresenter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityGameObjectPlayableWorldSceneSink.cs",
|
||||
|
|
@ -131,6 +135,8 @@
|
|||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldLiveClient.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldRuntime.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldClientHost.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldInputDriver.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldCameraRig.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityProviderRefreshSource.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldPresenter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityGameObjectPlayableWorldSceneSink.cs",
|
||||
|
|
@ -175,6 +181,8 @@
|
|||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldLiveClient.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldRuntime.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldClientHost.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldInputDriver.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldCameraRig.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityProviderRefreshSource.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityPlayableWorldPresenter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnityGameObjectPlayableWorldSceneSink.cs",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ $aetheriaEveRuntimeAsmdef = Join-Path $AetheriaRoot "Packages\org.gamecult.aethe
|
|||
$aetheriaSceneBridge = Join-Path $AetheriaRoot "Packages\org.gamecult.aetheria.eve-runtime\Runtime\AetheriaEveUnitySceneProviderBridge.cs"
|
||||
$aetheriaSceneProviderComponent = Join-Path $AetheriaRoot "Packages\org.gamecult.aetheria.eve-runtime\Runtime\AetheriaEveUnitySceneProviderComponent.cs"
|
||||
$aetheriaGameSurfaceBuilder = Join-Path $AetheriaRoot "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeDaemonGameSurfaceBuilder.cs"
|
||||
$aetheriaDaemonOperationsClient = Join-Path $AetheriaRoot "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeDaemonOperationsClient.cs"
|
||||
if (-not (Test-Path $manifestPath)) {
|
||||
throw "Aetheria Unity package manifest not found: $manifestPath"
|
||||
}
|
||||
|
|
@ -41,6 +42,9 @@ if (-not (Test-Path $aetheriaSceneProviderComponent)) {
|
|||
if (-not (Test-Path $aetheriaGameSurfaceBuilder)) {
|
||||
throw "Aetheria daemon game surface builder not found: $aetheriaGameSurfaceBuilder"
|
||||
}
|
||||
if (-not (Test-Path $aetheriaDaemonOperationsClient)) {
|
||||
throw "Aetheria daemon operations client not found: $aetheriaDaemonOperationsClient"
|
||||
}
|
||||
|
||||
$manifest = Get-Content -Raw -LiteralPath $manifestPath
|
||||
foreach ($dependency in @(
|
||||
|
|
@ -124,6 +128,9 @@ foreach ($symbol in @(
|
|||
'"world.entity3d"',
|
||||
'"movementCommand"',
|
||||
'"assetManifest"',
|
||||
'"arpg.pointer-keyboard.v1"',
|
||||
'"arpg.orbital-follow.v1"',
|
||||
'SetMoveVector',
|
||||
'"prefab.entity.ship"',
|
||||
'"prefab.entity.station"'
|
||||
)) {
|
||||
|
|
@ -132,6 +139,24 @@ foreach ($symbol in @(
|
|||
}
|
||||
}
|
||||
|
||||
$daemonOperationsClient = Get-Content -Raw -LiteralPath $aetheriaDaemonOperationsClient
|
||||
foreach ($symbol in @(
|
||||
"TrySubmitSurfaceCommand",
|
||||
"SetMoveVector",
|
||||
'"directionX"',
|
||||
'"directionY"',
|
||||
'"scalarValue"',
|
||||
"SetTarget",
|
||||
'"targetEntityId"',
|
||||
"FireWeaponGroup",
|
||||
'"weaponGroup"',
|
||||
'"actionId"'
|
||||
)) {
|
||||
if (-not $daemonOperationsClient.Contains($symbol)) {
|
||||
throw "Aetheria daemon surface command adapter is not consuming playable world command payload symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$aetheriaAssets = Get-Content -Raw -LiteralPath (Join-Path $AetheriaRoot "Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeAssets.cs")
|
||||
foreach ($symbol in @(
|
||||
'"prefab.entity.player"',
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ foreach ($evidencePath in @($worldSurfaceLoweringClaim.evidencePaths)) {
|
|||
}
|
||||
}
|
||||
|
||||
foreach ($feature in @("providerAdvertisements", "commandTransport", "providerSurfaceSession", "providerSurfaceSource", "providerSurfaceDocumentSource", "livePlayableWorldClient", "providerCommandReceipts", "providerAssetManifestDocumentSource", "playableWorldClientHost", "sceneGraphProjection", "playableWorldProjection", "playableWorldRuntimeHost", "playableWorldScenePresentation", "unityGameObjectSceneSink", "providerAssetManifestResolution", "providerAssetManifestSource")) {
|
||||
foreach ($feature in @("providerAdvertisements", "commandTransport", "providerSurfaceSession", "providerSurfaceSource", "providerSurfaceDocumentSource", "livePlayableWorldClient", "providerCommandReceipts", "providerAssetManifestDocumentSource", "playableWorldClientHost", "playableWorldInputDriver", "playableWorldCameraRig", "sceneGraphProjection", "playableWorldProjection", "playableWorldRuntimeHost", "playableWorldScenePresentation", "unityGameObjectSceneSink", "providerAssetManifestResolution", "providerAssetManifestSource")) {
|
||||
if (-not (@($manifest.supportedFeatures) -contains $feature)) {
|
||||
throw "EveUnity scene provider shell missing supported feature: $feature"
|
||||
}
|
||||
|
|
@ -69,6 +69,8 @@ $expectedFiles = @(
|
|||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldLiveClient.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldRuntime.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldClientHost.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldInputDriver.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldCameraRig.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityProviderRefreshSource.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldPresenter.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnityGameObjectPlayableWorldSceneSink.cs",
|
||||
|
|
@ -95,35 +97,35 @@ foreach ($symbol in @("EveUnitySceneSurfaceLowerer", "EveUnitySceneProviderSurfa
|
|||
}
|
||||
|
||||
$clientSessionSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnitySceneClientSession.cs") -Raw
|
||||
foreach ($symbol in @("EveUnitySceneClientSession", "EveUnitySceneProviderSurfaceSnapshot", "ActiveVersion", "Connect", "ApplySnapshot", "CreateMoveIntent", "CreateFocusIntent", "CreateTargetIntent", "CreateActionIntent", "CreatePlayableWorldIntent", "commandId", "targetPosition", "unity-scene")) {
|
||||
foreach ($symbol in @("EveUnitySceneClientSession", "EveUnitySceneProviderSurfaceSnapshot", "ActiveVersion", "Connect", "ApplySnapshot", "CreateMoveIntent", "CreateMoveVectorIntent", "CreateFocusIntent", "CreateTargetIntent", "CreateActionIntent", "CreatePlayableWorldIntent", "commandId", "targetPosition", "directionX", "directionY", "scalarValue", "unity-scene")) {
|
||||
if (-not $clientSessionSource.Contains($symbol)) {
|
||||
throw "EveUnity scene client session missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$providerConnectionSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnitySceneProviderConnection.cs") -Raw
|
||||
foreach ($symbol in @("IEveUnitySceneProviderSurfaceSource", "IEveUnitySceneCommandSink", "IEveUnitySceneProviderSurfaceDocumentSource", "EveUnitySceneProviderSurfaceDocument", "EveUnitySceneProviderSurfaceDocumentSource", "ToSnapshot", "DocumentAvailable", "EveUnitySceneProviderConnection", "SnapshotAvailable", "CurrentSnapshot", "Connect", "Refresh", "SubmitMoveIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Disconnect")) {
|
||||
foreach ($symbol in @("IEveUnitySceneProviderSurfaceSource", "IEveUnitySceneCommandSink", "IEveUnitySceneProviderSurfaceDocumentSource", "EveUnitySceneProviderSurfaceDocument", "EveUnitySceneProviderSurfaceDocumentSource", "ToSnapshot", "DocumentAvailable", "EveUnitySceneProviderConnection", "SnapshotAvailable", "CurrentSnapshot", "Connect", "Refresh", "SubmitMoveIntent", "SubmitMoveVectorIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Disconnect")) {
|
||||
if (-not $providerConnectionSource.Contains($symbol)) {
|
||||
throw "EveUnity scene provider connection missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$liveClientSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldLiveClient.cs") -Raw
|
||||
foreach ($symbol in @("EveUnityPlayableWorldLiveClient", "IEveUnitySceneCommandReceiptSource", "EveUnitySceneCommandReceipt", "EveUnitySceneProviderConnection", "EveUnityPlayableWorldPresenter", "ActiveWorld", "LastPresentation", "LastReceipt", "ReceiptAvailable", "Connect", "Refresh", "SubmitMoveIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "ProjectionUpdated", "ShouldRefreshProviderSurface", "IsProviderOwned", "Disconnect")) {
|
||||
foreach ($symbol in @("EveUnityPlayableWorldLiveClient", "IEveUnitySceneCommandReceiptSource", "EveUnitySceneCommandReceipt", "EveUnitySceneProviderConnection", "EveUnityPlayableWorldPresenter", "ActiveWorld", "LastPresentation", "LastReceipt", "ReceiptAvailable", "Connect", "Refresh", "SubmitMoveIntent", "SubmitMoveVectorIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "ProjectionUpdated", "ShouldRefreshProviderSurface", "IsProviderOwned", "Disconnect")) {
|
||||
if (-not $liveClientSource.Contains($symbol)) {
|
||||
throw "EveUnity playable world live client missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$runtimeHostSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldRuntime.cs") -Raw
|
||||
foreach ($symbol in @("EveUnityPlayableWorldRuntime", "CreateForGameObjectScene", "EveUnityLivePlayableWorldAssetProvider", "IEveUnitySceneProviderSurfaceDocumentSource", "IEveUnitySceneCommandSink", "IEveUnityPlayableWorldAssetManifestDocumentSource", "IEveUnitySceneCommandReceiptSource", "EveUnityPlayableWorldAssetManifestCache", "AssetManifests", "ActiveWorld", "SubmitMoveIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Connect", "Refresh", "Disconnect")) {
|
||||
foreach ($symbol in @("EveUnityPlayableWorldRuntime", "CreateForGameObjectScene", "EveUnityLivePlayableWorldAssetProvider", "IEveUnitySceneProviderSurfaceDocumentSource", "IEveUnitySceneCommandSink", "IEveUnityPlayableWorldAssetManifestDocumentSource", "IEveUnitySceneCommandReceiptSource", "EveUnityPlayableWorldAssetManifestCache", "AssetManifests", "ActiveWorld", "SubmitMoveIntent", "SubmitMoveVectorIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Connect", "Refresh", "Disconnect")) {
|
||||
if (-not $runtimeHostSource.Contains($symbol)) {
|
||||
throw "EveUnity playable world runtime host missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$clientHostSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldClientHost.cs") -Raw
|
||||
foreach ($symbol in @("EveUnityPlayableWorldClientHost", "MonoBehaviour", "providerSurfaceDocuments", "IEveUnitySceneProviderSurfaceDocumentSource", "IEveUnitySceneCommandSink", "IEveUnityPlayableWorldAssetManifestDocumentSource", "IEveUnitySceneCommandReceiptSource", "IEveUnityGameObjectAssetProvider", "IEveUnityProviderRefreshSource", "Configure", "CreateForGameObjectScene", "Connect", "Refresh", "SubmitMoveIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Disconnect")) {
|
||||
foreach ($symbol in @("EveUnityPlayableWorldClientHost", "MonoBehaviour", "providerSurfaceDocuments", "IEveUnitySceneProviderSurfaceDocumentSource", "IEveUnitySceneCommandSink", "IEveUnityPlayableWorldAssetManifestDocumentSource", "IEveUnitySceneCommandReceiptSource", "IEveUnityGameObjectAssetProvider", "IEveUnityProviderRefreshSource", "Configure", "CreateForGameObjectScene", "Connect", "Refresh", "SceneRoot", "SubmitMoveIntent", "SubmitMoveVectorIntent", "SubmitFocusIntent", "SubmitTargetIntent", "SubmitActionIntent", "Disconnect")) {
|
||||
if (-not $clientHostSource.Contains($symbol)) {
|
||||
throw "EveUnity playable world client host missing symbol: $symbol"
|
||||
}
|
||||
|
|
@ -139,6 +141,26 @@ foreach ($symbol in @("IEveUnityProviderRefreshSource", "Refresh")) {
|
|||
}
|
||||
}
|
||||
|
||||
$inputDriverSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldInputDriver.cs") -Raw
|
||||
foreach ($symbol in @("EveUnityPlayableWorldInputDriver", "EveUnityPlayableWorldMoveVector", "FromCameraRelativeInput", "SubmitMoveVectorInput", "SubmitPrimaryAction", "Input.GetAxisRaw", "Input.GetButtonDown", "directionX", "directionY", "scalarValue", "SubmitMoveVectorIntent")) {
|
||||
if (-not $inputDriverSource.Contains($symbol)) {
|
||||
throw "EveUnity playable world input driver missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
if ($inputDriverSource.Contains("Aetheria")) {
|
||||
throw "EveUnity playable world input driver must remain provider-agnostic and cannot reference Aetheria"
|
||||
}
|
||||
|
||||
$cameraRigSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldCameraRig.cs") -Raw
|
||||
foreach ($symbol in @("EveUnityPlayableWorldCameraRig", "ApplyRig", "arpg.orbital-follow.v1", "EveUnityPlayableWorldEntityMarker", "SceneRoot", "LookAt")) {
|
||||
if (-not $cameraRigSource.Contains($symbol)) {
|
||||
throw "EveUnity playable world camera rig missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
if ($cameraRigSource.Contains("Aetheria")) {
|
||||
throw "EveUnity playable world camera rig must remain provider-agnostic and cannot reference Aetheria"
|
||||
}
|
||||
|
||||
$playableWorldPresenterSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnityPlayableWorldPresenter.cs") -Raw
|
||||
foreach ($symbol in @("IEveUnityPlayableWorldSceneSink", "IEveUnityPlayableWorldAssetResolver", "EveUnityPlayableWorldPresenter", "EveUnityPlayableWorldAssetBinding", "EveUnityPlayableWorldPresentation", "EveUnityAssetRefResolver", "ConfigureWorld", "UpsertEntity", "RemoveEntity", "provider-asset-ref", "unity-generated-placeholder")) {
|
||||
if (-not $playableWorldPresenterSource.Contains($symbol)) {
|
||||
|
|
@ -182,7 +204,7 @@ foreach ($symbol in @("TeXMathUnitySceneProjectionAdapter", "tex.math", "embed.t
|
|||
}
|
||||
|
||||
$testSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Tests\Editor\EveUnitySceneSurfaceLowererTests.cs") -Raw
|
||||
foreach ($symbol in @("LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "LowerExtractsPlayableArpgWorldFromGenericScene3dSurface", "GenericClientSessionConsumesAetheriaPlayableWorldSnapshotWithoutAetheriaTypes", "GenericProviderConnectionAppliesLiveSnapshotsAndSubmitsCommandsThroughSink", "ProviderSurfaceDocumentSourceFeedsPlayableClientWithoutAetheriaTypes", "PlayableWorldRuntimeComposesProviderDocumentsAssetsReceiptsAndSceneSink", "PlayableWorldClientHostMountsInterfaceProviderWithoutProviderTypes", "PlayableWorldPresenterInstantiatesUpdatesAndDespawnsProviderEntities", "LivePlayableWorldClientPresentsProviderSnapshotsAndKeepsCommandsProviderOwned", "LivePlayableWorldClientRefreshesFromProviderSnapshotAfterReceiptWithoutOwningMovement", "AssetManifestMapsProviderAssetRefsToUnityLoadKeysWithoutAetheriaTypes", "AssetManifestCacheTracksPlayableWorldManifestPointerAndLiveUpdates", "AssetManifestDocumentSourceFeedsCacheWithoutChangingSceneLowering", "FakeProviderSurfaceSource", "FakeProviderSurfaceDocumentSource", "FakeCommandReceiptSource", "FakeAssetManifestSource", "FakeAssetManifestDocumentSource", "FakeCommandSink", "FakePlayableWorldSceneSink", "FakePlayableWorldProviderComponent", "SaiVisualNovelLowersThroughRuntimeProjectionAdapterWithoutOwningStoryState", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "pending", "reconciled", "world-projection-node", "playable-world-root", "playable-world-entity", "world-field-3d", "arpg-third-person", "cultmesh://aetheria/assets/manifest", "cultmesh://aetheria/eve/surfaces/aetheria.daemon.game", "aetheria.daemon.move_intent", "sai-vn-scene-stage", "norn-graph-scene-projection", "tex-math-scene-projection", "sai.vn", "norn.graph", "tex.math", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1")) {
|
||||
foreach ($symbol in @("LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "LowerExtractsPlayableArpgWorldFromGenericScene3dSurface", "GenericClientSessionConsumesAetheriaPlayableWorldSnapshotWithoutAetheriaTypes", "GenericProviderConnectionAppliesLiveSnapshotsAndSubmitsCommandsThroughSink", "ProviderSurfaceDocumentSourceFeedsPlayableClientWithoutAetheriaTypes", "PlayableWorldRuntimeComposesProviderDocumentsAssetsReceiptsAndSceneSink", "PlayableWorldClientHostMountsInterfaceProviderWithoutProviderTypes", "PlayableWorldClientHostSubmitsProviderOwnedMoveVector", "PlayableWorldInputDriverBuildsCameraRelativeMoveVectorWithoutProviderTypes", "PlayableWorldCameraRigFollowsAdvertisedPlayerEntityWithoutProviderTypes", "PlayableWorldPresenterInstantiatesUpdatesAndDespawnsProviderEntities", "LivePlayableWorldClientPresentsProviderSnapshotsAndKeepsCommandsProviderOwned", "LivePlayableWorldClientRefreshesFromProviderSnapshotAfterReceiptWithoutOwningMovement", "AssetManifestMapsProviderAssetRefsToUnityLoadKeysWithoutAetheriaTypes", "AssetManifestCacheTracksPlayableWorldManifestPointerAndLiveUpdates", "AssetManifestDocumentSourceFeedsCacheWithoutChangingSceneLowering", "FakeProviderSurfaceSource", "FakeProviderSurfaceDocumentSource", "FakeCommandReceiptSource", "FakeAssetManifestSource", "FakeAssetManifestDocumentSource", "FakeCommandSink", "FakePlayableWorldSceneSink", "FakePlayableWorldProviderComponent", "SaiVisualNovelLowersThroughRuntimeProjectionAdapterWithoutOwningStoryState", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "pending", "reconciled", "world-projection-node", "playable-world-root", "playable-world-entity", "world-field-3d", "arpg-third-person", "cultmesh://aetheria/assets/manifest", "cultmesh://aetheria/eve/surfaces/aetheria.daemon.game", "aetheria.daemon.move_intent", "sai-vn-scene-stage", "norn-graph-scene-projection", "tex-math-scene-projection", "sai.vn", "norn.graph", "tex.math", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1")) {
|
||||
if (-not $testSource.Contains($symbol)) {
|
||||
throw "EveUnity scene provider shell tests missing symbol: $symbol"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue