Class EffectManager
Implements manager for all effects
Inheritance
System.Object
EffectManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Media.Effects
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class EffectManager
Properties
Instance
Gets the instance.
Declaration
public static EffectManager Instance { get; }
Property Value
Type | Description |
---|---|
EffectManager | The instance. |
Methods
AddEffect(String)
Adds the effect.
Declaration
public void AddEffect(string effectName)
Parameters
Type | Name | Description |
---|---|---|
System.String | effectName | Name of the effect. |
AddEffect(String, EffectBase)
Adds the effect.
Declaration
public void AddEffect(string effectName, EffectBase effect)
Parameters
Type | Name | Description |
---|---|---|
System.String | effectName | Name of the effect. |
EmptyKeys.UserInterface.Media.EffectBase | effect | The effect. |
ClearCache()
Clears the cache.
Declaration
public void ClearCache()
GetEffect(String)
Gets the effect.
Declaration
public EffectBase GetEffect(string effectName)
Parameters
Type | Name | Description |
---|---|---|
System.String | effectName | Name of the effect. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Media.EffectBase |
LoadEffects(Object, String)
Loads the effects.
Declaration
public void LoadEffects(object contentManager, string basePath = "")
Parameters
Type | Name | Description |
---|---|---|
System.Object | contentManager | The content manager. |
System.String | basePath | The base path. |