Beispiel #1
0
        Tuple <string, string, string> GetCppInfo()
        {
            var cppFile = WorkingPath.GetChildFileWithName("mod.cpp");

            if (!cppFile.Exists)
            {
                return(new Tuple <string, string, string>(null, null, null));
            }
            var fileContent = File.ReadAllText(cppFile.ToString());

            var p           = new ModCppParser(fileContent);
            var name        = p.GetName();
            var description = p.GetDescription();
            var author      = p.GetAuthor();

            return(Tuple.Create(name, description, author));
        }
        Tuple<string, string, string> GetCppInfo() {
            var cppFile = Folder.GetChildFileWithName("mod.cpp");
            if (!cppFile.Exists)
                return new Tuple<string, string, string>(null, null, null);
            var fileContent = File.ReadAllText(cppFile.ToString());

            var p = new ModCppParser(fileContent);
            var name = p.GetName();
            var description = p.GetDescription();
            var author = p.GetAuthor();

            return Tuple.Create(name, description, author);
        }