# Interface RegionProvider

public interface RegionProvider
Loads and persists `Region`s by id for a `GameWorld`, so a world larger than memory can page whole areas in and out as the player roams. Implementations may read from bundled resources, `Storage`, or the network.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Region`
  `loadRegion(String id)`
  Loads the region with the given id, or null if it does not exist.
  `void`
  `saveRegion(Region region)`
  Persists a region (e.g. before it is unloaded).

- ## Method Details

  - ### loadRegion

    Region loadRegion(String id)
    Loads the region with the given id, or null if it does not exist.

  - ### saveRegion

    void saveRegion(Region region)
    Persists a region (e.g. before it is unloaded). No-op for read-only sources.