Example #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (enter_ == null)
                    {
                        Enter = new global::M3Online.Domain.Enter.Enter();
                    }
                    input.ReadMessage(Enter);
                    break;
                }

                case 18: {
                    if (attackEnemy_ == null)
                    {
                        AttackEnemy = new global::M3Online.Domain.Enemy.Enemy();
                    }
                    input.ReadMessage(AttackEnemy);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(Attack other)
 {
     if (other == null)
     {
         return;
     }
     if (other.enter_ != null)
     {
         if (enter_ == null)
         {
             Enter = new global::M3Online.Domain.Enter.Enter();
         }
         Enter.MergeFrom(other.Enter);
     }
     if (other.attackEnemy_ != null)
     {
         if (attackEnemy_ == null)
         {
             AttackEnemy = new global::M3Online.Domain.Enemy.Enemy();
         }
         AttackEnemy.MergeFrom(other.AttackEnemy);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }