static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        DragonBones.ArmatureType o = (DragonBones.ArmatureType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
    static int set_type(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.ArmatureData obj  = (DragonBones.ArmatureData)o;
            DragonBones.ArmatureType arg0 = (DragonBones.ArmatureType)ToLua.CheckObject(L, 2, typeof(DragonBones.ArmatureType));
            obj.type = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index type on a nil value" : e.Message));
        }
    }
    static int get_type(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.ArmatureData obj = (DragonBones.ArmatureData)o;
            DragonBones.ArmatureType ret = obj.type;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index type on a nil value" : e.Message));
        }
    }