EntityReader ClassDelta Engine Documentation
Scenes controls reveal the component values of an Entity, refreshing every frame. Use EntityWriter if you wish to be able to change these component values View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Entities Entity
    DeltaEngine.Scenes.EntityDebugger EntityEditor
      DeltaEngine.Scenes.EntityDebugger EntityReader

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

public class EntityReader : EntityEditor

The EntityReader type exposes the following members.

Constructors

  NameDescription
Public methodEntityReader
Initializes a new instance of the EntityReader class
Top
Methods

  NameDescription
Public methodAdd T  (Inherited from Entity.)
Public methodAddTag (Inherited from Entity.)
Public methodClearTags (Inherited from Entity.)
Public methodContains T  (Inherited from Entity.)
Public methodContainsBehavior T  (Inherited from Entity.)
Public methodContainsTag (Inherited from Entity.)
Protected methodDeactivate (Inherited from Entity.)
Public methodDispose (Inherited from EntityEditor.)
Public methodGet T 
Gets a specific component, derived classes can return faster cached values (e.g. Entity2D) View code on GitHub
(Inherited from Entity.)
Protected methodGetActiveBehaviors (Inherited from Entity.)
Protected methodGetComponentsForSaving (Inherited from Entity.)
Public methodGetOrDefault T  (Inherited from Entity.)
Public methodGetTags (Inherited from Entity.)
Public methodRemove T  (Inherited from Entity.)
Public methodRemoveTag (Inherited from Entity.)
Protected methodReset (Inherited from EntityEditor.)
Public methodSet (Inherited from Entity.)
Public methodSetComponents (Inherited from Entity.)
Public methodStart T  (Inherited from Entity.)
Public methodStop T  (Inherited from Entity.)
Public methodToString (Inherited from Entity.)
Public methodUpdate (Overrides EntityEditor Update .)
Top
Fields

  NameDescription
Protected fieldcomponentControls (Inherited from EntityEditor.)
Protected fieldcomponentList (Inherited from EntityEditor.)
Protected fieldcomponents (Inherited from Entity.)
Top
Properties

  NameDescription
Public propertyEntity (Inherited from EntityEditor.)
Public propertyIsActive (Inherited from Entity.)
Public propertyIsPauseable (Inherited from EntityEditor.)
Public propertyNumberOfComponents (Inherited from Entity.)
Public propertyUpdatePriority (Inherited from Entity.)
Top
Remarks

Tests: DeltaEngine.Scenes.Tests.EntityDebugger.EntityReaderTests
Examples

3 unit tests call DeltaEngine.Scenes.EntityDebugger.EntityReader
[Test, CloseAfterFirstFrame]
public void UpdatingEntityRotationUpdatesRotationTextBox()
{
    AdvanceTimeAndUpdateEntities();
    Assert.AreEqual(logo.Rotation.ToInvariantString(), GetTextBox("Rotation").Text);
}
[Test, CloseAfterFirstFrame, Timeout(10000)]
public void AddComponent()
{
    logo.Add(new Name("name"));
    AdvanceTimeAndUpdateEntities();
    if (GetTextBox("Name") != null)
        Assert.AreEqual("name", GetTextBox("Name").Text);
}
[Test, CloseAfterFirstFrame, Timeout(10000)]
public void DisposingClearsSceneAndInactivates()
{
    reader.Dispose();
    Assert.AreEqual(0, reader.scene.Controls.Count);
    Assert.IsFalse(reader.IsActive);
}
See Also