public JSONClass ExportState() { JSONClass state = new JSONClass(); state["Position"] = Position.ExportAsJson(); state["Rotation"] = Rotation.ExportAsJson(); state["MeshPath"] = new JSONData(MeshPath); state["CellType"] = new JSONData(CellType.ToString()); return(state); }