예제 #1
0
        public bool TryAddOutfit(Outfit outfit)
        {
            if (!OutfitsMap.TryAdd(outfit.AliasLower, outfit))
            {
                return(false);
            }

            Outfits.Add(outfit);

            return(true);
        }
예제 #2
0
        public bool TryAddOutfit(Outfit outfit)
        {
            //if (ContainsOutfit(outfit.AliasLower))
            //{
            //    return false;
            //}

            if (!OutfitsMap.TryAdd(outfit.AliasLower, outfit))
            {
                return(false);
            }

            Outfits.Add(outfit);

            //_seedOutfitAliases.Add(outfit.AliasLower);
            //OutfitsMap.TryAdd(outfit.AliasLower, outfit);

            //_seedOutfitIds.Add(outfit.Id);

            return(true);
        }