コード例 #1
0
ファイル: GoodsEquip.cs プロジェクト: wuhuolong/MaxBooks
        public override void GetClientGoodsStr_inner(ref System.Text.StringBuilder builder)
        {
            base.GetClientGoodsStr_inner(ref builder);
            if (LegendAttrs.Count > 0)
            {//传奇属性
                builder.AppendFormat("LegendAttrs=");
                bool is_first_attr = true;
                foreach (var item in LegendAttrs)
                {
                    string legend_str = DBTextResource.GetStringArrayUint(item.Values, ",", "[", "]");
                    if (is_first_attr)
                    {
                        builder.AppendFormat("{0},{1}", item.Id, legend_str);
                        is_first_attr = false;
                    }
                    else
                    {
                        builder.AppendFormat(",{0},{1}", item.Id, legend_str);
                    }
                }

                builder.AppendFormat(";");
            }

            if (IsHasIdentifyWing())
            {//已经鉴定翅膀的品质
                builder.AppendFormat("color_type={0};", this.color_type);
            }
        }