1 using System.Collections.Generic;
3 namespace SiliconStudio.
Paradox.Graphics
14 public List<T> Images =
new List<T>();
27 for (
int i = 0; i < Images.Count; i++)
29 if (Images[i].Name == spriteName)
34 throw new KeyNotFoundException(spriteName);
42 public T
this[
int index]
44 get {
return Images[index]; }
45 set { Images[index] = value; }
53 public T
this[
string name]
55 get {
return Images[FindImageIndex(name)]; }
56 set { Images[FindImageIndex(name)] = value; }
int FindImageIndex(string spriteName)
Find the index of a sprite in the group using its name.