static int MaxChildren(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         BehaviorDesigner.Runtime.Tasks.Decorator obj = (BehaviorDesigner.Runtime.Tasks.Decorator)ToLua.CheckObject <BehaviorDesigner.Runtime.Tasks.Decorator>(L, 1);
         int o = obj.MaxChildren();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int _CreateBehaviorDesigner_Runtime_Tasks_Decorator(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                BehaviorDesigner.Runtime.Tasks.Decorator obj = new BehaviorDesigner.Runtime.Tasks.Decorator();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: BehaviorDesigner.Runtime.Tasks.Decorator.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }