Ejemplo n.º 1
0
        static void testLoadSuf()
        {
            //			var context = TotekanParse.parseSuf(@"D:\home\tomotaco-doga\Unity\work\data\pame\EG06.SUF");
            var tableNamesSuf = new string[] {
                /*
                 * @"BridgeFoot01.SUF",
                 * @"BridgeUp.SUF",
                 */
                @"Dote_20.suf",

                /*
                 * @"roadside09.SUF",
                 * @"sDote_m20.SUF",
                 * @"trees\t01.SUF",
                 * @"trees\t02.SUF",
                 * @"trees\t03.SUF",
                 * @"trees\t05.SUF",
                 * @"trees\t06.SUF",
                 * @"trees\t07.SUF"
                 */
            };

            foreach (var nameSuf in tableNamesSuf)
            {
                var context = TotekanParse.parseSuf(@"C:/H/VRW/背景作成/objs/back" + @"\" + nameSuf);
                var visitor = new DoGASufVisitor();
                visitor.Visit(context as IParseTree);
            }
        }
Ejemplo n.º 2
0
    static List <DoGASuf> importSuf(string nameFileSuf)
    {
        Debug.Log("Parsing suf file: " + nameFileSuf + " ...");
        var context = TotekanParse.parseSuf(nameFileSuf);
//		Debug.Log("ImportWorker.importSuf(): now DoGASufVisitor.Visit()...");
        var visitor = new DoGASufVisitor();

        visitor.Visit(context as IParseTree);
//		Debug.Log("ImportWorker.importSuf(): Visit() completed.");
        return(visitor.listSufs);
    }