Esempio n. 1
0
    public bool GetItemElement(int itemLogicID, out ExplorePlaceInfo itemElement)
    {
        itemElement = null;
        if (!_mPlaceObjectDic.TryGetValue(itemLogicID, out itemElement))
        {
            return(false);
        }

        return(true);
    }
Esempio n. 2
0
    public override bool Load(SecurityElement element)
    {
        if (element.Children != null)
        {
            foreach (SecurityElement childrenElement in element.Children)
            {
                // server
                ExplorePlaceInfo explorePlaceInfo = new ExplorePlaceInfo();
                explorePlaceInfo.placeID     = StrParser.ParseDecInt(StrParser.ParseStr(childrenElement.Attribute("Place_ID"), ""), -1);
                explorePlaceInfo.pictureName = StrParser.ParseStr(childrenElement.Attribute("Plcace_Picture"), "");
                _mPlaceObjectDic.Add(explorePlaceInfo.placeID, explorePlaceInfo);
            }
            return(true);
        }
        else
        {
            return(false);
        }

        return(true);
    }