コード例 #1
0
        public static WarShip_Rank_ExpConfigObject Load(SecurityElement element)
        {
            WarShip_Rank_ExpConfigObject WarShipRankExpConfigObject = new WarShip_Rank_ExpConfigObject();

            WarShipRankExpConfigObject.WarShip_Rank = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("WarShip_Rank"), ""), -1);
            WarShipRankExpConfigObject.Exp          = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Exp"), ""), -1);

            return(WarShipRankExpConfigObject);
        }
コード例 #2
0
    public bool GetWarshipElement(int WarShip_Rank, out WarShip_Rank_ExpConfigObject element)
    {
        element = null;

        if (!_warshipevolutionObjectDict.TryGetValue(WarShip_Rank, out element))
        {
            return(false);
        }

        return(true);
    }
コード例 #3
0
    public override bool Load(SecurityElement element)
    {
        if (element.Tag != "Items")
        {
            return(false);
        }

        if (element.Children != null)
        {
            foreach (SecurityElement childrenElement in element.Children)
            {
                WarShip_Rank_ExpConfigObject WarShipRankExpConfigObject = WarShip_Rank_ExpConfigObject.Load(childrenElement);

                if (!_warshipevolutionObjectDict.ContainsKey(WarShipRankExpConfigObject.WarShip_Rank))
                {
                    _warshipevolutionObjectDict[WarShipRankExpConfigObject.WarShip_Rank] = WarShipRankExpConfigObject;
                }
            }
        }

        return(true);
    }