mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
34 lines
580 B
C#
34 lines
580 B
C#
using System;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Nibriboard.RippleSpace
|
|
{
|
|
[Serializable]
|
|
[JsonObject(MemberSerialization.OptOut)]
|
|
public class PlaneInfo
|
|
{
|
|
public string Name { get; set; }
|
|
public int ChunkSize { get; set; }
|
|
|
|
public PlaneInfo()
|
|
{
|
|
}
|
|
public PlaneInfo(string inName) : this(inName, 1024)
|
|
{
|
|
}
|
|
public PlaneInfo(string inName, int inChunkSize)
|
|
{
|
|
Name = inName;
|
|
ChunkSize = inChunkSize;
|
|
}
|
|
|
|
public static PlaneInfo FromPlane(Plane plane)
|
|
{
|
|
PlaneInfo result = new PlaneInfo(plane.Name, plane.ChunkSize);
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|