add specific Add method overloads for local/global screen effects
This commit is contained in:
parent
03a71a52ab
commit
28abc219d5
|
@ -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);
|
||||
|
|
Reference in a new issue