using System;
using WS;

[TypeDrawer]
public class BaseControllerTypeDrawer : ITypeDrawer
{
    public bool HandlesType(Type type, object value)
    {
        return type == typeof(BaseController);
    }

    public object DrawAndGetNewValue(Type memberType, string memberName, object value, object target)
    {
        ComponentViewHelper.Draw(value);
        return value;
    }

    public void Destroy()
    {
    }
}