1
0
Fork 0

Set up variables in the Chunk class.

This commit is contained in:
Starbeamrainbowlabs 2017-01-06 20:48:53 +00:00
parent 4bd0ca9d8f
commit f3c515263e
2 changed files with 17 additions and 1 deletions

View File

@ -6,8 +6,20 @@ namespace Nibriboard.RippleSpace
/// </summary>
public class Chunk
{
public Chunk()
/// <summary>
/// The plane that this chunk is located on.
/// </summary>
public readonly Plane Plane;
/// <summary>
/// The size of this chunk.
/// </summary>
public readonly int Size;
public Chunk(Plane inPlane, int inSize)
{
Plane = inPlane;
Size = inSize;
}
}
}

View File

@ -17,6 +17,10 @@ namespace Nibriboard.RippleSpace
}
/// <summary>
/// Converts this chunk-space reference to plane-space.
/// </summary>
/// <returns>This chunk-space reference in plane-space.</returns>
public LocationReference InPlanespace()
{
return new LocationReference(