예제 #1
0
 public override string ToString()
 {
     return("Shirt: " + Shirt.ToString() + "\nPants: " + Pants.ToString() + "\nShoes: " + Shoes.ToString());
 }
예제 #2
0
파일: HabboFigure.cs 프로젝트: habb0/IHI
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            bool prefixRequired = false;

            if (_body != null)
            {
                stringBuilder.Append(_body.ToString(false));
                prefixRequired = true;
            }
            if (_eyeAccessory != null)
            {
                stringBuilder.Append(_eyeAccessory.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_faceAccessory != null)
            {
                stringBuilder.Append(_faceAccessory.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_hair != null)
            {
                stringBuilder.Append(_hair.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_hat != null)
            {
                stringBuilder.Append(_hat.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_headAccessory != null)
            {
                stringBuilder.Append(_headAccessory.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_jacket != null)
            {
                stringBuilder.Append(_jacket.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_legs != null)
            {
                stringBuilder.Append(_legs.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_shirt != null)
            {
                stringBuilder.Append(_shirt.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_shirtAccessory != null)
            {
                stringBuilder.Append(_shirtAccessory.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_shoes != null)
            {
                stringBuilder.Append(_shoes.ToString(prefixRequired));
                prefixRequired = true;
            }
            if (_waistAccessory != null)
            {
                stringBuilder.Append(_waistAccessory.ToString(prefixRequired));
            }

            return(stringBuilder.ToString());
        }