Exemple #1
0
        public void MergeFrom(EncounterInteractCombatStageOptions other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.Attack:
                if (Attack == null)
                {
                    Attack = new global::WUProtos.Data.Encounter.EncounterInteractCombatStageOptions.Types.Attack();
                }
                Attack.MergeFrom(other.Attack);
                break;

            case TypeOneofCase.Defend:
                if (Defend == null)
                {
                    Defend = new global::WUProtos.Data.Encounter.EncounterInteractCombatStageOptions.Types.Defend();
                }
                Defend.MergeFrom(other.Defend);
                break;

            case TypeOneofCase.AutoAdvance:
                if (AutoAdvance == null)
                {
                    AutoAdvance = new global::WUProtos.Data.Encounter.EncounterInteractCombatStageOptions.Types.AutoAdvance();
                }
                AutoAdvance.MergeFrom(other.AutoAdvance);
                break;
            }

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

            if (typeCase_ == TypeOneofCase.Attack)
            {
                hash ^= Attack.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Defend)
            {
                hash ^= Defend.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.AutoAdvance)
            {
                hash ^= AutoAdvance.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }