public static void es2json(EmoteTable emoteTable, FileInfo esFile) { var jsonFilename = Path.ChangeExtension(esFile.FullName, ".json"); var jsonFile = new FileInfo(jsonFilename); emoteTable.NormalRange(); var jsonTable = new JSON.EmoteTable(emoteTable); // check if file already exists? // output json file OutputJSON(jsonTable, jsonFile); }
public static string es2json(string[] esLines, uint?wcid = null) { var emoteTable = new EmoteTable(); emoteTable.EmoteSets = Parser.ParseLines(esLines); if (emoteTable.EmoteSets == null) { return(null); } emoteTable.Wcid = wcid; emoteTable.NormalRange(); var jsonTable = new JSON.EmoteTable(emoteTable); var jsonLines = BuildJSON(jsonTable); return(jsonLines); }
public static List <string> BuildSQL(EmoteTable emoteTable) { emoteTable.NormalRange(); return(EmoteScriptLib.SQL.SQLWriter.GetSQL(emoteTable)); }