示例#1
0
        static void Main(string[] args)
        {
            var luaStore = new LuaStore();
            var apolloGen = new ApolloAPIReader(luaStore);
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000000.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000002.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000003.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000004.xml").Element("Documentation"));

            using (var stream = File.Open("Apollo.lua", FileMode.Create))
            using (var luaStoreWriter = new LuaStoreWriter(stream))
            {
                luaStoreWriter.Write(luaStore);
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            var luaStore  = new LuaStore();
            var apolloGen = new ApolloAPIReader(luaStore);

            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000000.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000002.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000003.xml").Element("Documentation"));
            apolloGen.ProcessDocumentation(XDocument.Load(@"C:\git\NASADocs\LuaDocData\000004.xml").Element("Documentation"));

            using (var stream = File.Open("Apollo.lua", FileMode.Create))
                using (var luaStoreWriter = new LuaStoreWriter(stream))
                {
                    luaStoreWriter.Write(luaStore);
                }
        }