EmptyWorldMap constructor

EmptyWorldMap({
  1. double tileSizeToUpdate = 0,
  2. Vector2? size,
})

Implementation

EmptyWorldMap({double tileSizeToUpdate = 0, Vector2? size})
    : super(
        [
          Layer(
            id: 0,
            tiles: [
              if (size != null)
                Tile(x: size.x, y: size.y, width: 1, height: 1)
            ],
          )
        ],
        tileSizeToUpdate: tileSizeToUpdate,
      );