public EncyclopediaScientistsStage(SystemKey scientist)
     : base(YND.CelestialGenerator[SystemKey.Empty])
 {
     _scientist = scientist;
     Enum.TryParse(_scientist + "Title", out _speechKeyTitle);
     Enum.TryParse(_scientist.ToString(), out _speechKey);
 }
Пример #2
0
 public static string GetSystemUrl(SystemKey key)
 {
     var path = CmsService.Instance.GetSystemPath(key.ToString());
     if (string.IsNullOrEmpty(path))
         return null;
     var page = CmsService.Instance.GetItem<Page>(path);
     if (page == null)
         return null;
     return page.Url;
 }
Пример #3
0
 public static string GetSystemPath(SystemKey key)
 {
     return CmsService.Instance.GetSystemPath(key.ToString());
 }
 public EncyclopediaCelestialsStage(SystemKey system)
     : base(YND.CelestialGenerator[system])
 {
     Enum.TryParse("Encyclopedia" + system + "Title", out _speechKeyTitle);
     Enum.TryParse("Encyclopedia" + system.ToString(), out _speechKey);
 }