Made the BindMethods and UnbindMethods functions in the ActionManager public so they can be used in plugins

This commit is contained in:
codeimp 2009-05-16 16:45:28 +00:00
parent 0c5b437f64
commit ef67891c15

View file

@ -206,14 +206,14 @@ namespace CodeImp.DoomBuilder.Actions
}
// This binds all methods marked with this attribute
internal void BindMethods(Type type)
public void BindMethods(Type type)
{
// Bind static methods
BindMethods(null, type);
}
// This binds all methods marked with this attribute
internal void BindMethods(object obj)
public void BindMethods(object obj)
{
// Bind instance methods
BindMethods(obj, obj.GetType());
@ -307,14 +307,14 @@ namespace CodeImp.DoomBuilder.Actions
}
// This unbinds all methods marked with this attribute
internal void UnbindMethods(Type type)
public void UnbindMethods(Type type)
{
// Unbind static methods
UnbindMethods(null, type);
}
// This unbinds all methods marked with this attribute
internal void UnbindMethods(object obj)
public void UnbindMethods(object obj)
{
// Unbind instance methods
UnbindMethods(obj, obj.GetType());