예제 #1
0
        private bool parseCommand()
        {
            if (!line.Line.StartsWith(":"))
            {
                return(false);
            }

            ParseCommandDelegate newCmd = null;

            if (line == ":bonedata")
            {
                newCmd = parseCommandBonedata;
            }
            if (line == ":hierarchy")
            {
                newCmd = parseCommandHierarchy;
            }
            if (line == ":root")
            {
                var j = new ASFJoint();
                j.name = "root";
                Joints.Add(j);
                RootJoint = j;
            }

            if (newCmd != null)
            {
                popCommand();
                pushCommand(newCmd);
            }

            return(true);
        }
예제 #2
0
 private void pushCommand(ParseCommandDelegate cmd)
 {
     parserStack.Add(cmd);
 }