GameCamera MinZoom Property Delta Engine Documentation

Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public float MinZoom { get; set; }

Property Value

Type: Single
Remarks

Tests: CreepyTowers.Tests.GameCameraTests
Examples

1 unit tests call CreepyTowers.GameCamera.MinZoom
[Test, CloseAfterFirstFrame]
public void CannotZoomFurtherThanMinimumValue()
{
    if (!IsMockResolver)
        return; //ncrunch: no coverage
    MockMouse mouse = (MockMouse)Resolve<Mouse>();
    gameCamera.ZoomLevel = gameCamera.MinZoom;
    var originalZoom = gameCamera.ZoomLevel;
    mouse.ScrollDown();
    AdvanceTimeAndUpdateEntities();
    Assert.AreEqual(originalZoom, gameCamera.ZoomLevel);
}
See Also