示例#1
0
        public KeyValuePair<JewelAttributeType, float> SpecialAttribute; // 饰品特殊属性(单条)

        #endregion Fields

        #region Constructors

        /// <summary>
        /// 类型:方法
        /// 名称:Jewel
        /// 作者:taixihuase
        /// 作用:通过数据库中获得的数据构造饰品装备实例
        /// 编写日期:2015/8/16
        /// </summary>
        /// <param name="fixedId"></param>
        /// <param name="allocatedId"></param>
        /// <param name="name"></param>
        /// <param name="occupation"></param>
        /// <param name="limit"></param>
        /// <param name="upgrade"></param>
        /// <param name="cur"></param>
        /// <param name="dur"></param>
        /// <param name="type"></param>
        /// <param name="jewelAttributeType"></param>
        public Jewel(int fixedId, int allocatedId, string name, OccupationCode occupation, int limit, bool upgrade,
            int cur, int dur,
            JewelType type, JewelAttributeType jewelAttributeType)
            : base(fixedId, allocatedId, name, occupation, limit, upgrade, cur, dur, EquipmentType.Jewel)
        {
            Type = (byte) type;
            JewelAttribute = jewelAttributeType;
            SpecialAttribute = new KeyValuePair<JewelAttributeType, float>(jewelAttributeType, 0);
        }
示例#2
0
        public KeyValuePair <JewelAttributeType, float> SpecialAttribute; // 饰品特殊属性(单条)

        #endregion

        /// <summary>
        /// 类型:方法
        /// 名称:Jewel
        /// 作者:taixihuase
        /// 作用:通过数据库中获得的数据构造饰品装备实例
        /// 编写日期:2015/8/16
        /// </summary>
        /// <param name="fixedId"></param>
        /// <param name="allocatedId"></param>
        /// <param name="name"></param>
        /// <param name="occupation"></param>
        /// <param name="limit"></param>
        /// <param name="upgrade"></param>
        /// <param name="cur"></param>
        /// <param name="dur"></param>
        /// <param name="type"></param>
        /// <param name="jewelAttributeType"></param>
        public Jewel(int fixedId, int allocatedId, string name, OccupationCode occupation, int limit, bool upgrade,
                     int cur, int dur,
                     JewelType type, JewelAttributeType jewelAttributeType)
            : base(fixedId, allocatedId, name, occupation, limit, upgrade, cur, dur, EquipmentType.Jewel)
        {
            Type             = (byte)type;
            JewelAttribute   = jewelAttributeType;
            SpecialAttribute = new KeyValuePair <JewelAttributeType, float>(jewelAttributeType, 0);
        }
示例#3
0
 /// <summary>
 /// 类型:方法
 /// 名称:UpdateSpecialAttributeType
 /// 作者:taixihuase
 /// 作用:变更饰品特殊属性类型
 /// 编写日期:2015/8/16
 /// </summary>
 /// <param name="jewelAttribute"></param>
 public void UpdateSpecialAttributeType(JewelAttributeType jewelAttribute)
 {
     JewelAttribute = jewelAttribute;
 }
示例#4
0
 /// <summary>
 /// 类型:方法
 /// 名称:UpdateSpecialAttributeType
 /// 作者:taixihuase
 /// 作用:变更饰品特殊属性类型
 /// 编写日期:2015/8/16
 /// </summary>
 /// <param name="jewelAttribute"></param>
 public void UpdateSpecialAttributeType(JewelAttributeType jewelAttribute)
 {
     JewelAttribute = jewelAttribute;
 }
示例#5
0
 /// <summary>
 /// 类型:方法
 /// 名称:Jewel
 /// 作者:taixihuase
 /// 作用:构造空的饰品装备实例
 /// 编写日期:2015/8/16
 /// </summary>
 public Jewel()
 {
     Type             = (byte)JewelType.Null;
     JewelAttribute   = JewelAttributeType.Null;
     SpecialAttribute = new KeyValuePair <JewelAttributeType, float>(JewelAttributeType.Null, 0);
 }