Exemplo n.º 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 8: {
                    EntityId = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (pos_ == null)
                    {
                        pos_ = new global::Common.Protobuf.ST_Pos();
                    }
                    input.ReadMessage(pos_);
                    break;
                }

                case 26: {
                    if (face_ == null)
                    {
                        face_ = new global::Common.Protobuf.ST_Face();
                    }
                    input.ReadMessage(face_);
                    break;
                }

                case 32: {
                    SkillId = input.ReadInt32();
                    break;
                }

                case 40: {
                    TargetId = input.ReadInt32();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(SCBattleBehavior other)
 {
     if (other == null)
     {
         return;
     }
     if (other.EntityId != 0)
     {
         EntityId = other.EntityId;
     }
     if (other.pos_ != null)
     {
         if (pos_ == null)
         {
             pos_ = new global::Common.Protobuf.ST_Pos();
         }
         Pos.MergeFrom(other.Pos);
     }
     if (other.face_ != null)
     {
         if (face_ == null)
         {
             face_ = new global::Common.Protobuf.ST_Face();
         }
         Face.MergeFrom(other.Face);
     }
     if (other.SkillId != 0)
     {
         SkillId = other.SkillId;
     }
     if (other.TargetId != 0)
     {
         TargetId = other.TargetId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }