コード例 #1
0
ファイル: Converter.cs プロジェクト: sLackeR-hub/EmoteScript
        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);
        }
コード例 #2
0
ファイル: Converter.cs プロジェクト: sLackeR-hub/EmoteScript
        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);
        }
コード例 #3
0
ファイル: Converter.cs プロジェクト: sLackeR-hub/EmoteScript
        public static List <string> BuildSQL(EmoteTable emoteTable)
        {
            emoteTable.NormalRange();

            return(EmoteScriptLib.SQL.SQLWriter.GetSQL(emoteTable));
        }