コード例 #1
0
ファイル: LadderCache.cs プロジェクト: cool8868/H5Nball
        public List <EquipmentProperty> AnalysisProperties(string equipmentProperties)
        {
            var propertyList = new List <EquipmentProperty>();
            var equipmentPropertiesHexList = equipmentProperties.Split('|');

            foreach (var equipmentProperty in equipmentPropertiesHexList)
            {
                if (string.IsNullOrEmpty(equipmentProperties))
                {
                    continue;
                }

                var propertyBytes = ShareUtil.HexStrToByteArray(equipmentProperty);
                var property      = SerializationHelper.FromByte <EquipmentProperty>(propertyBytes);
                if (property != null)
                {
                    propertyList.Add(property);
                }
            }
            return(propertyList);
        }