Esempio n. 1
0
        private string GetEquipmentPropertys(string equipmentItems, out string itemcodes)
        {
            var propertys = "";

            itemcodes = "";
            var equipmentList = equipmentItems.Split('|');

            foreach (var equipmentItem in equipmentList)
            {
                var equipmentItemCode = equipmentItem.Split(',');
                if (equipmentItemCode.Length < 2)
                {
                    continue;
                }

                var itemcode          = Convert.ToInt32(equipmentItemCode[1]);
                var iteminfo          = ItemsdicCache.Instance.GetItem(itemcode);
                var equipmentProperty = EquipmentCache.Instance.RandomEquipmentProperty(iteminfo.LinkId);
                var bytes             = SerializationHelper.ToByte(equipmentProperty);

                itemcodes += itemcode + "|";
                propertys += ShareUtil.ByteArrayToHexStr(bytes) + "|";
            }
            itemcodes = itemcodes.TrimEnd('|');
            return(propertys.TrimEnd('|'));
        }