Entity2D Size Property Delta Engine Documentation

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

public Size Size { get; set; }

Property Value

Type: Size
Remarks

Tests: GameOfLife.Tests.GameOfLifeTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Entity2D.Size
[Test, CloseAfterFirstFrame]
public void GridShouldHaveRightSize()
{
    var gridSize = new Size(5);
    Assert.AreEqual(gridSize, gameOfLife.GameGrid.Dimension);
}
See Also