/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
- namespace Delta.ContentSystem.UserInterfaces
- {
- /// <summary>
- /// Basic data container for UI Theme content.
- /// </summary>
- public abstract class BaseUIThemeData : Content
- {
- #region Get (Static)
- /// <summary>
- /// Get and load content based on the content name. This method makes sure
- /// we do not load the same content twice (the constructor is protected).
- /// </summary>
- /// <param name="contentName">Content name we want to load, this is
- /// passed onto the Content System, which will do the actual loading with
- /// help of the Load method in this class.</param>
- /// <returns>The loaded Content object, always unique for the same
- /// name, this helps comparing data.</returns>
- public static BaseUIThemeData Get(string contentName)
- {
- return Get<BaseUIThemeData>(contentName, ContentType.UITheme);
- }
- #endregion
-
- #region Constructors
- /// <summary>
- /// The content constructor just searches for the ContentMetaData entry
- /// with the ContentManager.Add method and links it up for this object.
- /// </summary>
- /// <param name="setName">Name for this content object, should not contain
- /// any path, project, scene or any special character! If this is empty
- /// or starts with an > character, we assume this is code generated
- /// content (e.g. ">IntroScene<" or "") and no loading will happen!
- /// </param>
- protected BaseUIThemeData(string setName)
- : base(setName, ContentType.UITheme)
- {
- }
- #endregion
- }
- }