static int ClickBehavior(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Logic.Model.View.ModelRotateAndAnim obj = (Logic.Model.View.ModelRotateAndAnim)ToLua.CheckObject(L, 1, typeof(Logic.Model.View.ModelRotateAndAnim));
         obj.ClickBehavior();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Rotate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Model.View.ModelRotateAndAnim obj = (Logic.Model.View.ModelRotateAndAnim)ToLua.CheckObject(L, 1, typeof(Logic.Model.View.ModelRotateAndAnim));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.Rotate(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_canClick(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Model.View.ModelRotateAndAnim obj = (Logic.Model.View.ModelRotateAndAnim)o;
            bool ret = obj.canClick;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index canClick on a nil value" : e.Message));
        }
    }
    static int set_canDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Model.View.ModelRotateAndAnim obj = (Logic.Model.View.ModelRotateAndAnim)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.canDrag = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index canDrag on a nil value" : e.Message));
        }
    }