refactor(world): extract live entity teardown
This commit is contained in:
parent
4427cfb2c7
commit
f38822c490
8 changed files with 565 additions and 159 deletions
|
|
@ -26,6 +26,10 @@ public sealed class GameWindowLiveEntityCompositionTests
|
|||
[InlineData("OnLiveEntityPickedUp")]
|
||||
[InlineData("OnLiveParentUpdated")]
|
||||
[InlineData("TryAcceptParentForRender")]
|
||||
[InlineData("OnLiveEntityDeleted")]
|
||||
[InlineData("OnLiveEntityPruned")]
|
||||
[InlineData("TearDownLiveEntityRuntimeComponents")]
|
||||
[InlineData("CreateLiveEntityRuntimeTeardownPlan")]
|
||||
public void GameWindow_DoesNotReacquireExtractedLiveEntityBodies(string methodName)
|
||||
{
|
||||
Assert.Null(typeof(GameWindow).GetMethod(methodName, PrivateImplementation));
|
||||
|
|
@ -47,6 +51,7 @@ public sealed class GameWindowLiveEntityCompositionTests
|
|||
[InlineData(typeof(LiveEntityAppearanceBinding))]
|
||||
[InlineData(typeof(LiveEntityHydrationController))]
|
||||
[InlineData(typeof(DatLiveEntityProjectionMaterializer))]
|
||||
[InlineData(typeof(LiveEntityRuntimeTeardownController))]
|
||||
public void ExtractedHelpers_DoNotOwnGuidIndexesOrBackendState(Type helperType)
|
||||
{
|
||||
foreach (FieldInfo field in helperType.GetFields(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue