Example #1
0
 public void SetEquipExtendAttributeValueByKey(FC_EQUIP_EXTEND_ATTRIBUTE attKey, int attValue)
 {
     if (_extendAttributes.ContainsKey(attKey))
     {
         _extendAttributes[attKey] = attValue;
     }
     else
     {
         _extendAttributes.Add(attKey, attValue);
     }
 }
Example #2
0
 public int GetEquipExtendAttributeValueByKey(FC_EQUIP_EXTEND_ATTRIBUTE key)
 {
     if (_extendAttributes.ContainsKey(key))
     {
         return(_extendAttributes[key]);
     }
     else
     {
         return(0);
     }
 }
Example #3
0
    public override void Parse(System.IO.BinaryReader reader)
    {
        _item_GUID = reader.ReadInt64();
        _itemID    = NetResponse.ReadString(reader);
        _count     = reader.ReadInt16();

        byte itemPropNum = reader.ReadByte();

        for (int i = 0; i < itemPropNum; i++)
        {
            FC_EQUIP_EXTEND_ATTRIBUTE attKey = (FC_EQUIP_EXTEND_ATTRIBUTE)reader.ReadInt32();
            int attValue = reader.ReadInt32();

            if (_extendAttributes.ContainsKey(attKey))
            {
                _extendAttributes[attKey] = attValue;
            }
            else
            {
                _extendAttributes.Add(attKey, attValue);
            }
        }
    }
Example #4
0
 public ItemAttributeUpdateVo(FC_EQUIP_EXTEND_ATTRIBUTE key, int value)
 {
     this.Key   = key;
     this.Value = value;
 }