Exemple #1
0
        private void writeToMarkdownWiki(string wikiPath, string fileName, ref List <Telemachus.APIEntry> apiList)
        {
            MDFile file = new MDFile(Path.Combine(wikiPath, fileName));

            string intro = "_API strings_ are used to identify values or functions within KSP, such as" +
                           "v.altitude which is mapped to the altitude of the vessel you are currently flying." +
                           "The API strings which are currently supported are listed below.";

            file.write(intro);
            foreach (Telemachus.APIEntry apiEntry in apiList)
            {
                file.writeHeading(apiEntry.APIString);
                file.writeBody(apiEntry.name);
                file.writeBody(apiEntry.plotable ? "Plotable" : "Not Plotable");
            }

            file.close();
        }
        private void writeToMarkdownWiki(string wikiPath, string fileName, ref List<Telemachus.APIEntry> apiList)
        {
            MDFile file = new MDFile(Path.Combine(wikiPath, fileName));

            string intro = "_API strings_ are used to identify values or functions within KSP, such as" +
                "v.altitude which is mapped to the altitude of the vessel you are currently flying." +
                "The API strings which are currently supported are listed below.";

            file.write(intro);
            foreach (Telemachus.APIEntry apiEntry in apiList)
            {
                file.writeHeading(apiEntry.APIString);
                file.writeBody(apiEntry.name);
                file.writeBody(apiEntry.plotable ? "Plotable" : "Not Plotable");
            }

            file.close();
        }