EntityWriter ClassDelta Engine Documentation
The app does not need to be paused to use EntityWriter but it likely makes sense to do so: Every frame the contents of the controls are written back to the Entity. If invoked through EntitySelector the app will be paused. Components can be edited but not added or removed. View code on GitHub
Inheritance Hierarchy

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

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

public class EntityWriter : EntityEditor

The EntityWriter type exposes the following members.

Constructors

  NameDescription
Public methodEntityWriter
Initializes a new instance of the EntityWriter 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.EntityWriterTests
Examples

14 unit tests call DeltaEngine.Scenes.EntityDebugger.EntityWriter
[Test, CloseAfterFirstFrame]
public void IsNotPauseable()
{
    Assert.IsFalse(writer.IsPauseable);
}
[Test, CloseAfterFirstFrame]
public void ConstructorTakesEntity()
{
    Assert.AreEqual(ellipse, writer.Entity);
}
[Test, CloseAfterFirstFrame]
public void RotationBecomesTextBox()
{
    Assert.AreEqual("0", rotationBox.Text);
}
See Also