コード例 #1
0
ファイル: Item.cs プロジェクト: ashllay/LQGMTool
        public override string ToString()
        {
            string text = ItemClass + "\n" + Name
                          + "\n" + R.Package + ":" + Collection + "(" + Slot + ")"
                          + "\n" + R.Category + ":" + MainCategory + "," + SubCategory + "";

            text += "\n" + R.MaxStackCount + ":" + (MaxStack < 0? R.UnLimit :"" + MaxStack);
            if (Color1 != 0)
            {
                text += "\n" + R.Color + ":" + "#" + Color1.ToString("X")
                        + "," + (Color2 == 0 ? "-" : "#" + Color2.ToString("X"))
                        + "," + (Color3 == 0 ? "-" : "#" + Color3.ToString("X"));
            }
            text += "\n" + R.ClassRestriction + ":" + ClassInfoEx.GetClassText(this.RequiredClass);
            if (Stat != null)
            {
                text += Stat.ToString();
            }
            if (Attributes != null)
            {
                foreach (ItemAttribute attr in Attributes)
                {
                    text += "\n" + attr.ToString();
                }
            }
            text += "\n" + Desc;
            if (Time != "-")
            {
                text += "\n" + R.TimeDate + ":" + Time;
            }
            return(text);
        }
コード例 #2
0
ファイル: Item.cs プロジェクト: ashllay/LQGMTool
        public override string ToString()
        {
            string text = "物品ID:" + ItemClass + "\n物品名:" + ItemName
                          + "\n背包:" + Collection + ",格子:" + Slot
                          + "\n类型:" + MainCategory + " [" + SubCategory + "]";

            text += "\n最大堆叠数量:" + (MaxStack < 0?"不限":"" + MaxStack);

            if (Color1 != 0)
            {
                text += "\n颜色:" + (Color1 == 0 ? "无" : "#" + Color1.ToString("X"))
                        + "," + (Color2 == 0 ? "无" : "#" + Color2.ToString("X"))
                        + "," + (Color3 == 0 ? "无" : "#" + Color3.ToString("X"));
            }
            text += "\n职业限制:" + ClassInfoEx.GetClassText(this.RequiredClass);
            if (Stat != null)
            {
                text += Stat.ToString();
            }
            if (Attributes != null)
            {
                foreach (ItemAttribute attr in Attributes)
                {
                    text += "\n" + attr.ToString();
                }
            }
            text += "\n物品描述:" + ItemDesc;
            if (Time != "无限期")
            {
                text += "\n到期时间:" + Time;
            }
            return(text);
        }
コード例 #3
0
ファイル: ItemClassInfo.cs プロジェクト: ashllay/LQGMTool
 public override string ToString()
 {
     return("物品ID:" + ItemClass + "\n物品名字:" + Name + " \n需求等级: " + RequiredLevel
            + "\n最大叠放数量:" + (MaxStack < 0?"不限":"" + MaxStack)
            + "\n分类:" + SubCategory.Name() + "  " + MainCategory.Name()
            + "\n限制条件" + Feature + "\n职业限制:" + ClassInfoEx.GetClassText(ClassRestriction)
            + (Stat == null?"":"\n" + Stat.ToString())
            + "\n" + Desc);
 }
コード例 #4
0
 public override string ToString()
 {
     return("ID:" + ItemClass + "\n" + R.ItemName + ":" + Name
            + " \n" + R.ItemRequireLevel + ": " + RequiredLevel
            + "\n" + R.ItemMaxStack + ":" + (MaxStack < 0?R.UnLimit:"" + MaxStack)
            + "\n" + R.Category + ":" + SubCategory.Name() + "  " + MainCategory.Name()
            + "\n" + R.Feature + ":" + Feature
            + "\n" + R.ClassRestriction + ":" + ClassInfoEx.GetClassText(ClassRestriction) + (Stat == null?"":"\n" + Stat)
            + "\n" + Desc);
 }