public static void GenerateLuaTableByExcel(string excelFloder, string luaFloder, int readMask = 0x7FFFFFFF) { if (!Directory.Exists(luaFloder)) { Directory.CreateDirectory(luaFloder); } ReadALLExcelSheets(excelFloder); foreach (var excelSheet in mExcelSheetCaches.Values) { var translator = new TranslatorTable(excelSheet, readMask); string path = Path.Combine(luaFloder, translator.sheetName + ".lua"); File.WriteAllBytes(path, UTF8Encoding.UTF8.GetBytes(translator.ToLuaTable())); } }
public static string ToLuaLable(ExcelWorksheet excelSheet, int readMask) { TranslatorTable table = new TranslatorTable(excelSheet, readMask); return(table.ToLuaTable()); }
public static string ToLuaLable(byte[] bytes) { TranslatorTable table = new TranslatorTable(bytes); return(table.ToLuaTable()); }