moveOnlyMapArea property

set moveOnlyMapArea (bool enabled)

Implementation

set moveOnlyMapArea(bool enabled) {
  if (!viewfinder.isMounted) {
    return;
  }
  config.moveOnlyMapArea = enabled;
  if (enabled) {
    setBounds(
      Rectangle.fromRect(
        gameRef.map.getMapRect().deflatexy(
              visibleWorldRect.width / 2,
              visibleWorldRect.height / 2,
            ),
      ),
    );
  } else {
    setBounds(null);
  }
}