refactor(runtime): own teleport destination correlation
This commit is contained in:
parent
38b3773cb9
commit
6a063a27d4
23 changed files with 1209 additions and 487 deletions
|
|
@ -22,10 +22,18 @@ public sealed class RuntimeWorldTransitOwnershipTests
|
|||
appRoot,
|
||||
"Streaming",
|
||||
"WorldRevealLifecycleTelemetry.cs")));
|
||||
Assert.False(File.Exists(Path.Combine(
|
||||
appRoot,
|
||||
"Streaming",
|
||||
"TeleportTransitCoordinator.cs")));
|
||||
Assert.DoesNotContain(
|
||||
"class WorldRevealLifecycleTelemetry",
|
||||
app,
|
||||
StringComparison.Ordinal);
|
||||
Assert.DoesNotContain(
|
||||
"class TeleportTransitCoordinator",
|
||||
app,
|
||||
StringComparison.Ordinal);
|
||||
Assert.DoesNotContain(
|
||||
"record struct WorldRevealLifecycleSnapshot",
|
||||
app,
|
||||
|
|
@ -74,6 +82,19 @@ public sealed class RuntimeWorldTransitOwnershipTests
|
|||
field => field.Name is "_activeGeneration"
|
||||
or "_worldSimulationReleased"
|
||||
or "_lifecycle");
|
||||
|
||||
var teleportFields = typeof(LocalPlayerTeleportController)
|
||||
.GetFields(
|
||||
System.Reflection.BindingFlags.Instance
|
||||
| System.Reflection.BindingFlags.NonPublic);
|
||||
Assert.Single(
|
||||
teleportFields,
|
||||
field => field.FieldType == typeof(RuntimeWorldTransitState));
|
||||
Assert.DoesNotContain(
|
||||
teleportFields,
|
||||
field => field.Name.Contains(
|
||||
"acceptedDestination",
|
||||
StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
private static string FindRepositoryRoot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue