PageRenderTime 847ms CodeModel.GetById 138ms app.highlight 2ms RepoModel.GetById 706ms app.codeStats 0ms

/ContentSystem/UserInterfaces/BaseUIThemeData.cs

#
C# | 40 lines | 18 code | 1 blank | 21 comment | 0 complexity | 75cb18400ce8b39abfc53e2d4ced4b93 MD5 | raw file
 1namespace 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
24		#region Constructors
25		/// <summary>
26		/// The content constructor just searches for the ContentMetaData entry
27		/// with the ContentManager.Add method and links it up for this object.
28		/// </summary>
29		/// <param name="setName">Name for this content object, should not contain
30		/// any path, project, scene or any special character! If this is empty
31		/// or starts with an &gt; character, we assume this is code generated
32		/// content (e.g. "&gt;IntroScene&lt;" or "") and no loading will happen!
33		/// </param>
34		protected BaseUIThemeData(string setName)
35			: base(setName, ContentType.UITheme)
36		{
37		}
38		#endregion
39	}
40}