예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (AnimIn.Length != 0)
            {
                hash ^= AnimIn.GetHashCode();
            }
            if (AnimLoop.Length != 0)
            {
                hash ^= AnimLoop.GetHashCode();
            }
            if (AnimOut.Length != 0)
            {
                hash ^= AnimOut.GetHashCode();
            }
            if (color_ != null)
            {
                hash ^= Color.GetHashCode();
            }
            if (SoundSelect.Length != 0)
            {
                hash ^= SoundSelect.GetHashCode();
            }
            if (IntroSoundSelect.Length != 0)
            {
                hash ^= IntroSoundSelect.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }