示例#1
0
        public void MergeFrom(QuestProgress other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.ReqProgress:
                if (ReqProgress == null)
                {
                    ReqProgress = new global::WUProtos.Data.RequirementsQuestProgress();
                }
                ReqProgress.MergeFrom(other.ReqProgress);
                break;

            case TypeOneofCase.HookProgress:
                if (HookProgress == null)
                {
                    HookProgress = new global::WUProtos.Data.HookQuestProgress();
                }
                HookProgress.MergeFrom(other.HookProgress);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.ReqProgress)
            {
                hash ^= ReqProgress.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.HookProgress)
            {
                hash ^= HookProgress.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }