yyl
2025-06-04 593754665fbd99310de28c9b66637cf9b5185a2a
目录迁移2
2 文件已重命名
1个文件已删除
154 ■■■■ 已修改文件
Main/System/Backpack.meta 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/BackpackData.cs 146 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/BackpackData.cs.meta 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Backpack.meta
File was deleted
Main/System/KnapSack/BackpackData.cs
File was renamed from Main/System/Backpack/BackpackData.cs
@@ -1,74 +1,74 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, July 31, 2017
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
    public struct Item
    {
        public int id;
        public int count;       //兼容旧代码保留
        public ulong countEx;   //兼容旧代码count,当数量超过了32位无法表示时使用
        public int quality;
        public int bind;
        public Item(int _id, ulong _count)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = 0;
            this.bind = 0;
            this.countEx = _count;
        }
        public Item(int _id, ulong _count, int _quality)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = _quality;
            this.bind = 0;
            this.countEx = _count;
        }
        public Item(int _id, ulong _count, int _bind = 0, int _quality = 0)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = _quality;
            this.bind = _bind;
            this.countEx = _count;
        }
        #region 旧代码兼容 显示无法超过32位
        public Item(int _id, int _count)
        {
            this.id = _id;
            this.count = _count;
            this.quality = 0;
            this.bind = 0;
            this.countEx = (ulong)_count;
        }
        public Item(int _id, int _count, int _quality)
        {
            this.id = _id;
            this.count = _count;
            this.quality = _quality;
            this.bind = 0;
            this.countEx = (ulong)_count;
        }
        public Item(int _id, int _count, int _bind = 0, int _quality = 0)
        {
            this.id = _id;
            this.count = _count;
            this.quality = _quality;
            this.bind = _bind;
            this.countEx = (ulong)_count;
        }
        #endregion
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, July 31, 2017
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
    public struct Item
    {
        public int id;
        public int count;       //兼容旧代码保留
        public ulong countEx;   //兼容旧代码count,当数量超过了32位无法表示时使用
        public int quality;
        public int bind;
        public Item(int _id, ulong _count)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = 0;
            this.bind = 0;
            this.countEx = _count;
        }
        public Item(int _id, ulong _count, int _quality)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = _quality;
            this.bind = 0;
            this.countEx = _count;
        }
        public Item(int _id, ulong _count, int _bind = 0, int _quality = 0)
        {
            this.id = _id;
            this.count = (int)_count;
            this.quality = _quality;
            this.bind = _bind;
            this.countEx = _count;
        }
        #region 旧代码兼容 显示无法超过32位
        public Item(int _id, int _count)
        {
            this.id = _id;
            this.count = _count;
            this.quality = 0;
            this.bind = 0;
            this.countEx = (ulong)_count;
        }
        public Item(int _id, int _count, int _quality)
        {
            this.id = _id;
            this.count = _count;
            this.quality = _quality;
            this.bind = 0;
            this.countEx = (ulong)_count;
        }
        public Item(int _id, int _count, int _bind = 0, int _quality = 0)
        {
            this.id = _id;
            this.count = _count;
            this.quality = _quality;
            this.bind = _bind;
            this.countEx = (ulong)_count;
        }
        #endregion
    }
Main/System/KnapSack/BackpackData.cs.meta