Entity2D GetComponentsForEditing Method Delta Engine Documentation

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

public List<Object> GetComponentsForEditing()

Return Value

Type: List Object 
Remarks

Tests: DeltaEngine.Rendering2D.Tests.Entity2DTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Entity2D.GetComponentsForEditing
[Test]
public void GetComponentsForEntityDebugger()
{
    var entityWithComponent = new Entity2D(Rectangle.HalfCentered);
    List<object> components = entityWithComponent.GetComponentsForEditing();
    Assert.AreEqual(5, components.Count);
    Assert.AreEqual(Rectangle.HalfCentered, GetComponent<Rectangle>(components));
    Assert.IsTrue(GetComponent<bool>(components));
}
See Also