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); }
private void pushCommand(ParseCommandDelegate cmd) { parserStack.Add(cmd); }