Ejemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="slot"></param>
        /// <param name="value"></param>
        public void SetEnchantCharges( EnchantmentSlot slot, uint value )
        {
            int enchBase = GetEnchantmentBase( slot );

            SetUInt32( enchBase + 2, value );
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="slot"></param>
 /// <returns></returns>
 private int GetEnchantmentBase( EnchantmentSlot slot )
 {
     return (int)(int)ItemFields.ENCHANTMENT + ( (int)slot * 3 );
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="slot"></param>
        /// <param name="value"></param>
        public void SetEnchantDuration( EnchantmentSlot slot, uint value )
        {
            int enchBase = GetEnchantmentBase( slot );

            SetUInt32( enchBase + 1, value );
        }
Ejemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="slot"></param>
        /// <param name="value"></param>
        public void SetEnchantCharges(EnchantmentSlot slot, uint value)
        {
            int enchBase = GetEnchantmentBase(slot);

            SetUInt32(enchBase + 2, value);
        }
Ejemplo n.º 5
0
 public EnchantDuration(Item _item = null, EnchantmentSlot _slot = EnchantmentSlot.Max, uint _leftduration = 0)
 {
     item         = _item;
     slot         = _slot;
     leftduration = _leftduration;
 }
Ejemplo n.º 6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="slot"></param>
        /// <param name="value"></param>
        public void SetEnchantDuration(EnchantmentSlot slot, uint value)
        {
            int enchBase = GetEnchantmentBase(slot);

            SetUInt32(enchBase + 1, value);
        }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="slot"></param>
 /// <returns></returns>
 private int GetEnchantmentBase(EnchantmentSlot slot)
 {
     return((int)(int)ItemFields.ENCHANTMENT + ((int)slot * 3));
 }
Ejemplo n.º 8
0
 uint GetEnchantmentCharges(EnchantmentSlot slot)
 {
     return(GetValue <uint>(ItemFields.Enchantment + (int)slot * (int)EnchantmentOffset.Max + (int)EnchantmentOffset.Charges));
 }
Ejemplo n.º 9
0
 uint GetEnchantmentDuration(EnchantmentSlot slot)
 {
     return(GetValue <uint>(ItemFields.Enchantment + (int)slot * (int)EnchantmentOffset.Max + (int)EnchantmentOffset.Duration));
 }
Ejemplo n.º 10
0
 public uint GetEnchantmentId(EnchantmentSlot slot)
 {
     return(GetValue <uint>(ItemFields.Enchantment + (int)slot * (int)EnchantmentOffset.Max + (int)EnchantmentOffset.Id));
 }