예제 #1
0
    public void OnStartElement(string name, SmallXmlParser.IAttrList attrs)
    {
        // opening tag, with attributes
        if (dictClosingTags < 2)    //two clsoing tags means its left key frames
        {
            if (name == "dict") //check that a new dict tag has been opened
            {
                newDictTag = true;
            }

            if (name == "string" && newDictTag) //check that a new string tag has been opened AND its under a new dict tag.
            {
                readingFrames = true;
                dictClosingTags = 0;
            }
        }
        else//get teh sheet size
        {
            if (name == "string" && stringNumb == 0) //check that a new dict tag has been opened
            {
                stringNumb = 1;
            }
            else if (name == "string" &&  stringNumb == 1)
            {
                getSheetSize = true;
            }
        }
    }
예제 #2
0
파일: SVGParser.cs 프로젝트: MrJoy/UnitySVG
 public void OnStartParsing(SmallXmlParser parser)
 {
     idx = 0;
 }
예제 #3
0
 public void OnEndParsing(SmallXmlParser parser)
 {
 }
예제 #4
0
 public void OnStartParsing(SmallXmlParser parser)
 {
 }
예제 #5
0
 public void OnStartParsing(SmallXmlParser parser)
 {
     // don't care
 }
예제 #6
0
 public void OnEndParsing(SmallXmlParser parser)
 {
     // end of file
     //Debug.Log("OnEndParsing");
 }
예제 #7
0
 public void OnStartParsing(SmallXmlParser parser)
 {
     // start of file
     //Debug.Log("OnStartParsing");
 }