mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
Set up variables in the Chunk class.
This commit is contained in:
parent
4bd0ca9d8f
commit
f3c515263e
2 changed files with 17 additions and 1 deletions
|
@ -6,8 +6,20 @@ namespace Nibriboard.RippleSpace
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Chunk
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
public LocationReference InPlanespace()
|
||||||
{
|
{
|
||||||
return new LocationReference(
|
return new LocationReference(
|
||||||
|
|
Loading…
Reference in a new issue