using System; using System.Collections.Generic; using System.Text; namespace Substrate.Core { public interface IRegionContainer { /// /// Determines if a region exists at the given coordinates. /// /// The global X-coordinate of a region. /// The global Z-coordinate of a region. /// True if a region exists at the given global region coordinates; false otherwise. bool RegionExists (int rx, int rz); /// /// Gets an for the given region filename. /// /// The filename of the region to get. /// A corresponding to the coordinates encoded in the filename. IRegion GetRegion (int rx, int rz); /// /// Creates a new empty region at the given coordinates, if no region exists. /// /// The global X-coordinate of a region. /// The global Z-coordinate of a region. /// A new empty object for the given coordinates, or an existing if one exists. IRegion CreateRegion (int rx, int rz); /// /// Deletes a region at the given coordinates. /// /// The global X-coordinate of a region. /// The global Z-coordinate of a region. /// True if a region was deleted; false otherwise. bool DeleteRegion (int rx, int rz); } public interface IRegionManager : IRegionContainer, IEnumerable { } }