PageRenderTime 68ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/ContentSystem/UserInterfaces/BaseUIThemeData.cs

#
C# | 40 lines | 18 code | 1 blank | 21 comment | 0 complexity | 75cb18400ce8b39abfc53e2d4ced4b93 MD5 | raw file
Possible License(s): Apache-2.0
  1. namespace Delta.ContentSystem.UserInterfaces
  2. {
  3. /// <summary>
  4. /// Basic data container for UI Theme content.
  5. /// </summary>
  6. public abstract class BaseUIThemeData : Content
  7. {
  8. #region Get (Static)
  9. /// <summary>
  10. /// Get and load content based on the content name. This method makes sure
  11. /// we do not load the same content twice (the constructor is protected).
  12. /// </summary>
  13. /// <param name="contentName">Content name we want to load, this is
  14. /// passed onto the Content System, which will do the actual loading with
  15. /// help of the Load method in this class.</param>
  16. /// <returns>The loaded Content object, always unique for the same
  17. /// name, this helps comparing data.</returns>
  18. public static BaseUIThemeData Get(string contentName)
  19. {
  20. return Get<BaseUIThemeData>(contentName, ContentType.UITheme);
  21. }
  22. #endregion
  23. #region Constructors
  24. /// <summary>
  25. /// The content constructor just searches for the ContentMetaData entry
  26. /// with the ContentManager.Add method and links it up for this object.
  27. /// </summary>
  28. /// <param name="setName">Name for this content object, should not contain
  29. /// any path, project, scene or any special character! If this is empty
  30. /// or starts with an &gt; character, we assume this is code generated
  31. /// content (e.g. "&gt;IntroScene&lt;" or "") and no loading will happen!
  32. /// </param>
  33. protected BaseUIThemeData(string setName)
  34. : base(setName, ContentType.UITheme)
  35. {
  36. }
  37. #endregion
  38. }
  39. }