示例#1
0
        public static List <Rectangle> DecodeListRectangle(string value)
        {
            int index            = 0;
            int nextIndex        = 0;
            List <Rectangle> tmp = new List <Rectangle>();

            while (nextIndex != -1)
            {
                nextIndex = value.IndexOf(",", index);
                if (nextIndex != -1) //if element found
                {
                    tmp.Add(RsSerilization.DecodeRectangle(value.Substring(index, nextIndex - index)));
                    index = nextIndex + 1;
                    if (index >= value.Length)
                    {
                        break;
                    }
                }
            }
            return(tmp);
        }
 public byte[] ReadAttributeArrayOfByte(string name)
 {
     return(RsSerilization.DecodeArrayByte(Reader.GetAttribute(name)));
 }
 public List <byte> ReadAttributeListOfByte(string name)
 {
     return(RsSerilization.DecodeListByte(Reader.GetAttribute(name)));
 }
 public Vector2[] ReadAttributeArrayOfVector2(string name)
 {
     return(RsSerilization.DecodeArrayVector2(Reader.GetAttribute(name)));
 }
 public List <Rectangle> ReadAttributeListOfRectangle(string name)
 {
     return(RsSerilization.DecodeListRectangle(Reader.GetAttribute(name)));
 }
 public Vector2 ReadAttributeVector2(string name)
 {
     return(RsSerilization.DecodeVector2(Reader.GetAttribute(name)));
 }
 public double ReadAttributeDouble(string name)
 {
     return(RsSerilization.DecodeDouble(Reader.GetAttribute(name)));
 }
 public byte ReadAttributeByte(string name)
 {
     return(RsSerilization.DecodeByte(Reader.GetAttribute(name)));
 }
 public List <bool> ReadAttributeListOfBool(string name)
 {
     return(RsSerilization.DecodeListBool(Reader.GetAttribute(name)));
 }
示例#10
0
 public List <float> ReadAttributeListOfFloat(string name)
 {
     return(RsSerilization.DecodeListFloat(Reader.GetAttribute(name)));
 }
示例#11
0
 public int[] ReadAttributeArrayOfInt(string name)
 {
     return(RsSerilization.DecodeArrayInt(Reader.GetAttribute(name)));
 }
示例#12
0
 public bool[] ReadAttributeArrayOfBool(string name)
 {
     return(RsSerilization.DecodeArrayBool(Reader.GetAttribute(name)));
 }
示例#13
0
 public float[] ReadAttributeArrayOfFloat(string name)
 {
     return(RsSerilization.DecodeArrayFloat(Reader.GetAttribute(name)));
 }
示例#14
0
 public T[] ReadAttributeArrayOfEnum <T>(string name)
 {
     return(RsSerilization.DecodeArrayEnum <T>(Reader.GetAttribute(name)));
 }
示例#15
0
 public uint ReadAttributeUInt(string name)
 {
     return(RsSerilization.DecodeUInt(Reader.GetAttribute(name)));
 }
示例#16
0
 public ulong ReadAttributeULong(string name)
 {
     return(RsSerilization.DecodeULong(Reader.GetAttribute(name)));
 }
示例#17
0
 public List <Vector2> ReadAttributeListOfVector2(string name)
 {
     return(RsSerilization.DecodeListVector2(Reader.GetAttribute(name)));
 }
示例#18
0
 public float ReadAttributeFloat(string name)
 {
     return(RsSerilization.DecodeFloat(Reader.GetAttribute(name)));;
 }
示例#19
0
 public List <Point> ReadAttributeListOfPoint(string name)
 {
     return(RsSerilization.DecodeListPoint(Reader.GetAttribute(name)));
 }
示例#20
0
 public Rectangle[] ReadAttributeArrayOfRectangle(string name)
 {
     return(RsSerilization.DecodeArrayRectangle(Reader.GetAttribute(name)));
 }
示例#21
0
 public bool ReadAttributeBool(string name)
 {
     return(RsSerilization.DecodeBool(Reader.GetAttribute(name)));
 }