Namespace: DeltaEngine.Entities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Entities.DrawableEntityTests
3 unit tests call DeltaEngine.Entities.DrawableEntity.Set(System.Object)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- component
- Type: System Object
Remarks
Examples
[Test] public void SettingLerpableComponentAddsToLastTickComponents() { var draw = new MockDrawableEntity(); draw.Set(1.0f); Assert.AreEqual(1.0f, draw.GetLastTickLerpComponents()[0]); }
[Test] public void SettingWithoutInterpolationANonLerpableComponentDoesNotAffectLastTickLerpComponents() { var draw = new MockDrawableEntity(); draw.SetWithoutInterpolation(1); Assert.AreEqual(0, draw.GetLastTickLerpComponents().Count); }
[Test] public void SettingWithoutInterpolationALerpableComponentChangesLastTickValue() { var draw = new MockDrawableEntity(); draw.Set(1.0f); draw.IsActive = true; EntitiesRunner.Current.UpdateAndDrawAllEntities(() => { });
See Also