GameCamera MaxZoom Property Delta Engine Documentation

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

public float MaxZoom { get; set; }

Property Value

Type: Single
Remarks

Tests: CreepyTowers.Tests.GameCameraTests
Examples

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