diff --git a/RueI/API/Elements/CachedElement.cs b/RueI/API/Elements/CachedElement.cs index 7285a18..9516b38 100644 --- a/RueI/API/Elements/CachedElement.cs +++ b/RueI/API/Elements/CachedElement.cs @@ -26,6 +26,18 @@ public CachedElement(float position, TimeSpan cacheTime, Func contentGet this.CacheTime = cacheTime; } + /// + /// Initializes a new instance of the class. + /// + /// A indicating how long to store cached text before regenerating. + /// + /// + public CachedElement(float position, TimeSpan cacheTime, Func contentGetter) + : base(position, contentGetter) + { + this.CacheTime = cacheTime; + } + /// /// Gets a indicating how long data should be cached for before it is regenerated. ///