PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/XSpriter/AnimationList.cs

https://bitbucket.org/dylanwolf/xspriter
C# | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 0ebe5b63e95d2146438364db0915ba7b MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace FuncWorks.XNA.XSpriter
  6. {
  7. public class AnimationList : List<Animation>
  8. {
  9. public Animation this[string name]
  10. {
  11. get { return this.FirstOrDefault(x => x.Name.Equals(name)); }
  12. }
  13. }
  14. }