Ejemplo n.º 1
0
    public string GetStuffContent(AStuff <TModuleType> stuff)
    {
        AStuff <TModuleType> equippedStuff = this.equipment.EquipmentSlots[((int)stuff.equipmentEmplacement)].Item;
        string text = "";

        text = StuffGUI <TModuleType> .GetStuffTitle(stuff, this.inventory, this.itemSelectedIndex);

        //if (stuff.equipmentEmplacement == e_equipmentEmplacement.Both_Hand &&
        //	(null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item || null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item))
        //{
        //	//if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item && null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item)
        //	//	text += objectAttributeToString.ComparedDefinedToString(stuff,
        //	//	objectAttributeToString.AdditionListOfObjectAttributeCompared(
        //	//	stuff.GetTheWhiteAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item, player),
        //	//	stuff.GetTheWhiteAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item, player))) + "</size>";
        //	//if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item)
        //	//	text += objectAttributeToString.GetTheWhiteAttributesCompared(stuff, equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item, player);
        //	//else if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item)
        //	//	text += objectAttributeToString.GetTheWhiteAttributesCompared(stuff, equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item, player);
        //}
        if (equippedStuff != null && stuff.equipmentCategory == equippedStuff.equipmentCategory)
        {
            text += this.objectAttributeToString.GetTheWhiteAttributesCompared(stuff, equippedStuff, player);
        }
        else
        {
            text += this.objectAttributeToString.SimpleDefinedToString(stuff, stuff.GetTheWhiteAttributes()) + "</size>";
        }

        //if (stuff.equipmentEmplacement == e_equipmentEmplacement.Both_Hand &&
        //	(null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item || null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item))
        //{
        //	//if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item && null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item)
        //	//	text += objectAttributeToString.ComparedRandomToString(stuff,
        //	//	objectAttributeToString.AdditionListOfObjectAttributeCompared(
        //	//	stuff.GetTheBlueAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item.GetheBlueAttributes()),
        //	//	stuff.GetTheBlueAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item.GetheBlueAttributes()))) + "</size>";
        //	//if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item)
        //	//	text += objectAttributeToString.ComparedRandomToString(stuff, stuff.GetTheWhiteAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Left_Hand)].item, player));
        //	//else if (null != equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item)
        //	//	text += objectAttributeToString.ComparedRandomToString(stuff, stuff.GetTheWhiteAttributesCompared(equipment.equipmentSlots[((int)e_equipmentEmplacement.Right_Hand)].item, player));
        //}
        if (equippedStuff != null && stuff.equipmentEmplacement == equippedStuff.equipmentEmplacement && stuff != equippedStuff && equippedStuff.equipped != e_equipmentEquipped.NOT_EQUIPPED)
        {
            text += this.objectAttributeToString.GetTheBlueAttributesCompared(stuff, equippedStuff);
        }
        else
        {
            text += StuffGUI <TModuleType> .GetTheBlueAttributes(stuff);
        }

        return(text);
    }