Class2.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Threading.Tasks;
  8. namespace WpfAppA.model
  9. {
  10. class Globals
  11. {
  12. public static IDataProvider dataProvider;
  13. IEnumerable<HeroPower> getHeroPower()
  14. {
  15. return new HeroPower[] {
  16. new HeroPower { title = "1/10"},
  17. new HeroPower { title = "2/10"},
  18. new HeroPower { title = "3/10"},
  19. new HeroPower { title = "4/10"},
  20. new HeroPower { title = "5/10"},
  21. new HeroPower { title = "6/10"},
  22. new HeroPower { title = "7/10"},
  23. new HeroPower { title = "8/10"},
  24. new HeroPower { title = "9/10"},
  25. new HeroPower { title = "10/10"}
  26. };
  27. }
  28. IEnumerable<HeroAge> getHeroAges()
  29. {
  30. return new HeroAge[] {
  31. new HeroAge{title="Все возраста", AgeFrom=0, AgeTo=2000},
  32. new HeroAge{title="Дети", AgeFrom=1, AgeTo=100},
  33. new HeroAge{title="Подростки", AgeFrom=100, AgeTo = 500},
  34. new HeroAge{title="Мужчины", AgeFrom=500, AgeTo=700},
  35. new HeroAge{title="Старики", AgeFrom=700, AgeTo=200}
  36. };
  37. }
  38. IEnumerable<HeroRace> getHeroRace()
  39. {
  40. return new HeroRace[] {
  41. new HeroRace { title = "Человек"},
  42. new HeroRace { title = "Огр"},
  43. new HeroRace { title = "Дракон"},
  44. new HeroRace { title = "Гоблин"},
  45. new HeroRace { title = "Фея"},
  46. new HeroRace { title = "Камень"},
  47. new HeroRace { title = "Рыба"},
  48. new HeroRace { title = "Селёдка"}
  49. };
  50. }
  51. }
  52. }