Exemple #1
0
        /// <summary>
        /// Gets a decoration description
        /// </summary>
        /// <param name="id">Decoration number</param>
        /// <returns>Decoration information or null</returns>
        public Decoration GetDecoration(int id)
        {
            if (Decorations == null || id == -1)
            {
                return(null);
            }

            if (!Decorations.ContainsKey(id))
            {
                return(null);
            }

            return(Decorations[id]);
        }