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)
{
}
public LocationReference InPlanespace()
{
return new LocationReference(
Plane,
X / Plane.ChunkSize,
Y / Plane.ChunkSize
);
}
}
}