EntitySelector ClassDelta Engine Documentation
Right-clicking an Entity selects it for either observing or editing View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Scenes.EntityDebugger EntitySelector

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

public class EntitySelector

The EntitySelector type exposes the following members.

Constructors

  NameDescription
Public methodEntitySelector
Initializes a new instance of the EntitySelector class
Top
Methods

  NameDescription
Public methodAdd
Top
Properties

  NameDescription
Public propertyEditorMode
Top
Remarks

Tests: DeltaEngine.Scenes.Tests.EntityDebugger.EntitySelectorTests
Examples

8 unit tests call DeltaEngine.Scenes.EntityDebugger.EntitySelector
[Test]
public void BouncingLogosThatCanBeObservedByRightClicking()
{
    selector.Add(ellipse);
    for (int i = 0; i < NumberOfLogos; i++)
        selector.Add(new BouncingLogo());
}
[Test]
public void BouncingLogosThatCanBeEditedByRightClicking()
{
    selector.EditorMode = EditorMode.Write;
    selector.Add(ellipse);
    for (int i = 0; i < NumberOfLogos; i++)
        selector.Add(new BouncingLogo());
}
[Test, CloseAfterFirstFrame]
public void AddEntity()
{
    selector.Add(ellipse);
    Assert.AreEqual(1, selector.entities.Count);
    Assert.AreEqual(ellipse, selector.entities[0]);
}
See Also