コード例 #1
0
ファイル: Palette.cs プロジェクト: StoddardOXC/OpenXCOM.Tools
        /// <summary>
        /// Checks for palette equality.
        /// </summary>
        /// <param name="obj">another palette</param>
        /// <returns>true if the palette names are the same</returns>
        public override bool Equals(Object obj)
        {
            var palette = obj as Palette;

            return(palette != null && ColorTable.Equals(palette.ColorTable));
        }