Entity UpdatePriority Property Delta Engine Documentation

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

public Priority UpdatePriority { get; set; }

Property Value

Type: Priority
Remarks

Tests: DeltaEngine.Tests.Entities.EntityTests
Examples

1 unit tests call DeltaEngine.Entities.Entity.UpdatePriority
[Test]
public void ChangeUpdatePriority()
{
    var updateable = new UpdateableEntity().Add(1);
    Assert.AreEqual(1, updateable.Get<int>());
    Assert.AreEqual(1, entities.GetEntitiesOfType<UpdateableEntity>().Count);
    updateable.UpdatePriority = Priority.High;
    entities.RunEntities();
    Assert.AreEqual(2, updateable.Get<int>());
    Assert.AreEqual(1, entities.GetEntitiesOfType<UpdateableEntity>().Count);
}
See Also