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))); }
public List <float> ReadAttributeListOfFloat(string name) { return(RsSerilization.DecodeListFloat(Reader.GetAttribute(name))); }
public int[] ReadAttributeArrayOfInt(string name) { return(RsSerilization.DecodeArrayInt(Reader.GetAttribute(name))); }
public bool[] ReadAttributeArrayOfBool(string name) { return(RsSerilization.DecodeArrayBool(Reader.GetAttribute(name))); }
public float[] ReadAttributeArrayOfFloat(string name) { return(RsSerilization.DecodeArrayFloat(Reader.GetAttribute(name))); }
public T[] ReadAttributeArrayOfEnum <T>(string name) { return(RsSerilization.DecodeArrayEnum <T>(Reader.GetAttribute(name))); }
public uint ReadAttributeUInt(string name) { return(RsSerilization.DecodeUInt(Reader.GetAttribute(name))); }
public ulong ReadAttributeULong(string name) { return(RsSerilization.DecodeULong(Reader.GetAttribute(name))); }
public List <Vector2> ReadAttributeListOfVector2(string name) { return(RsSerilization.DecodeListVector2(Reader.GetAttribute(name))); }
public float ReadAttributeFloat(string name) { return(RsSerilization.DecodeFloat(Reader.GetAttribute(name)));; }
public List <Point> ReadAttributeListOfPoint(string name) { return(RsSerilization.DecodeListPoint(Reader.GetAttribute(name))); }
public Rectangle[] ReadAttributeArrayOfRectangle(string name) { return(RsSerilization.DecodeArrayRectangle(Reader.GetAttribute(name))); }
public bool ReadAttributeBool(string name) { return(RsSerilization.DecodeBool(Reader.GetAttribute(name))); }