invertika_game.Game.AttributeManager.readModifierNode C# (CSharp) Method

readModifierNode() private method

private readModifierNode ( ) : void
return void
        void readModifierNode()
        {
            //const std::string stackableTypeString = utils::toUpper(
            //            XML::getProperty(modifierNode, "stacktype", std::string()));
            //const std::string effectTypeString = utils::toUpper(
            //            XML::getProperty(modifierNode, "modtype", std::string()));
            //const std::string tag = XML::getProperty(modifierNode, "tag",
            //                                         std::string());

            //if (stackableTypeString.empty())
            //{
            //    LOG_WARN("Attribute manager: attribute '" << attributeId <<
            //             "' has undefined stackable type, skipping modifier!");
            //    return;
            //}

            //if (effectTypeString.empty())
            //{
            //    LOG_WARN("Attribute manager: attribute '" << attributeId
            //             << "' has undefined modification type, skipping modifier!");
            //    return;
            //}

            //StackableType stackableType;
            //ModifierEffectType effectType;

            //if (stackableTypeString == "STACKABLE")
            //    stackableType = Stackable;
            //else if (stackableTypeString == "NON STACKABLE")
            //    stackableType = NonStackable;
            //else if (stackableTypeString == "NON STACKABLE BONUS")
            //    stackableType = NonStackableBonus;
            //else
            //{
            //    LOG_WARN("Attribute manager: attribute '"
            //             << attributeId << "' has unknown stackable type '"
            //             << stackableTypeString << "', skipping modifier!");
            //    return;
            //}

            //if (effectTypeString == "ADDITIVE")
            //    effectType = Additive;
            //else if (effectTypeString == "MULTIPLICATIVE")
            //    effectType = Multiplicative;
            //else
            //{
            //    LOG_WARN("Attribute manager: attribute '" << attributeId
            //             << "' has unknown modification type '"
            //             << effectTypeString << "', skipping modifier!");
            //    return;
            //}

            //mAttributeMap[attributeId].second.push_back(
            //            AttributeInfoType(stackableType, effectType));

            //if (!tag.empty())
            //{
            //    const int layer = mAttributeMap[attributeId].second.size() - 1;
            //    mTagMap.insert(std::make_pair(tag, ModifierLocation(attributeId,
            //                                                        layer)));
            //}
        }