using System; using System.Security.Policy; namespace Nibriboard.RippleSpace { /// /// References the location of a chunk. /// /// /// Defaults to chunk-space, but absolute plane-space can also be calculated /// and obtained (A /// is returned). /// public class ChunkReference : Reference { public ChunkReference(Plane inPlane, int inX, int inY) : base(inPlane, inX, inY) { } /// /// Converts this chunk-space reference to plane-space. /// /// This chunk-space reference in plane-space. public LocationReference InPlanespace() { return new LocationReference( Plane, X / Plane.ChunkSize, Y / Plane.ChunkSize ); } } }