ContentData Dispose Method Delta Engine Documentation

Namespace: DeltaEngine.Content
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Dispose()

Implements

IDisposable Dispose 
Remarks

Tests: Asteroids.Tests.GameLogicTests
Examples

1 unit tests call DeltaEngine.Content.ContentData.Dispose
[Test, CloseAfterFirstFrame]
public void ProjectileAndAsteroidDisposedOnCollision()
{
    var projectile = new Projectile(new Vector2D(0.5f, 0.55f), 0);
    interactionLogic.CreateAsteroidsAtPosition(Vector2D.Half, 1, 1);
    AdvanceTimeAndUpdateEntities();
    Assert.IsFalse(projectile.IsActive);
}
See Also