예제 #1
0
        /// <summary>
        /// Returns a raw accessor to an excel sheet allowing you to skip templated row access entirely.
        /// </summary>
        /// <param name="name">Name of the sheet to load</param>
        /// <param name="language">The requested language to load</param>
        /// <returns>A ExcelSheetImpl object, or null if the sheet name was not found.</returns>
        public ExcelSheetImpl GetSheetRaw(string name, Language language = Language.None)
        {
            // todo: duped code is a bit ass but zzz
            // todo: expose useful functions to ExcelSheetImpl like getrow(s) and so on

            // create new sheet
            var path       = BuildExcelHeaderPath(name);
            var headerFile = _lumina.GetFile <ExcelHeaderFile>(path);

            if (headerFile == null)
            {
                return(null);
            }

            var newSheet = new ExcelSheetImpl(headerFile, name, language, _lumina);

            newSheet.GenerateFilePages();

            return(newSheet);
        }
예제 #2
0
파일: RowParser.cs 프로젝트: NotAdam/Lumina
 public RowParser(ExcelSheetImpl sheet, ExcelDataFile dataFile, uint row, uint subRow)
     : this(sheet, dataFile, row)
 {
     SeekToRow(row, subRow);
 }
예제 #3
0
파일: RowParser.cs 프로젝트: NotAdam/Lumina
 public RowParser(ExcelSheetImpl sheet, ExcelDataFile dataFile)
 {
     _sheet    = sheet;
     _dataFile = dataFile;
 }
예제 #4
0
 public RowParser(ExcelSheetImpl sheet, ExcelDataFile dataFile, int row)
     : this(sheet, dataFile)
 {
     SeekToRow(row);
 }