add specific Add method overloads for local/global screen effects

This commit is contained in:
Gered 2013-08-24 18:33:06 -04:00
parent 03a71a52ab
commit 28abc219d5

View file

@ -46,6 +46,16 @@ namespace Blarg.GameFramework.Graphics.ScreenEffects
return effect;
}
public T AddLocal<T>() where T : ScreenEffect
{
return Add<T>(true);
}
public T AddGlobal<T>() where T : ScreenEffect
{
return Add<T>(false);
}
public void Remove<T>() where T : ScreenEffect
{
var type = typeof(T);