Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public byte[] ReadAttributeArrayOfByte(string name)
 {
     return(RsSerilization.DecodeArrayByte(Reader.GetAttribute(name)));
 }
Exemplo n.º 3
0
 public List <byte> ReadAttributeListOfByte(string name)
 {
     return(RsSerilization.DecodeListByte(Reader.GetAttribute(name)));
 }
Exemplo n.º 4
0
 public Vector2[] ReadAttributeArrayOfVector2(string name)
 {
     return(RsSerilization.DecodeArrayVector2(Reader.GetAttribute(name)));
 }
Exemplo n.º 5
0
 public List <Rectangle> ReadAttributeListOfRectangle(string name)
 {
     return(RsSerilization.DecodeListRectangle(Reader.GetAttribute(name)));
 }
Exemplo n.º 6
0
 public Vector2 ReadAttributeVector2(string name)
 {
     return(RsSerilization.DecodeVector2(Reader.GetAttribute(name)));
 }
Exemplo n.º 7
0
 public double ReadAttributeDouble(string name)
 {
     return(RsSerilization.DecodeDouble(Reader.GetAttribute(name)));
 }
Exemplo n.º 8
0
 public byte ReadAttributeByte(string name)
 {
     return(RsSerilization.DecodeByte(Reader.GetAttribute(name)));
 }
Exemplo n.º 9
0
 public List <bool> ReadAttributeListOfBool(string name)
 {
     return(RsSerilization.DecodeListBool(Reader.GetAttribute(name)));
 }
Exemplo n.º 10
0
 public List <float> ReadAttributeListOfFloat(string name)
 {
     return(RsSerilization.DecodeListFloat(Reader.GetAttribute(name)));
 }
Exemplo n.º 11
0
 public int[] ReadAttributeArrayOfInt(string name)
 {
     return(RsSerilization.DecodeArrayInt(Reader.GetAttribute(name)));
 }
Exemplo n.º 12
0
 public bool[] ReadAttributeArrayOfBool(string name)
 {
     return(RsSerilization.DecodeArrayBool(Reader.GetAttribute(name)));
 }
Exemplo n.º 13
0
 public float[] ReadAttributeArrayOfFloat(string name)
 {
     return(RsSerilization.DecodeArrayFloat(Reader.GetAttribute(name)));
 }
Exemplo n.º 14
0
 public T[] ReadAttributeArrayOfEnum <T>(string name)
 {
     return(RsSerilization.DecodeArrayEnum <T>(Reader.GetAttribute(name)));
 }
Exemplo n.º 15
0
 public uint ReadAttributeUInt(string name)
 {
     return(RsSerilization.DecodeUInt(Reader.GetAttribute(name)));
 }
Exemplo n.º 16
0
 public ulong ReadAttributeULong(string name)
 {
     return(RsSerilization.DecodeULong(Reader.GetAttribute(name)));
 }
Exemplo n.º 17
0
 public List <Vector2> ReadAttributeListOfVector2(string name)
 {
     return(RsSerilization.DecodeListVector2(Reader.GetAttribute(name)));
 }
Exemplo n.º 18
0
 public float ReadAttributeFloat(string name)
 {
     return(RsSerilization.DecodeFloat(Reader.GetAttribute(name)));;
 }
Exemplo n.º 19
0
 public List <Point> ReadAttributeListOfPoint(string name)
 {
     return(RsSerilization.DecodeListPoint(Reader.GetAttribute(name)));
 }
Exemplo n.º 20
0
 public Rectangle[] ReadAttributeArrayOfRectangle(string name)
 {
     return(RsSerilization.DecodeArrayRectangle(Reader.GetAttribute(name)));
 }
Exemplo n.º 21
0
 public bool ReadAttributeBool(string name)
 {
     return(RsSerilization.DecodeBool(Reader.GetAttribute(name)));
 }