Beispiel #1
0
 public void MergeFrom(Move other)
 {
     if (other == null)
     {
         return;
     }
     if (other.MoveId != 0)
     {
         MoveId = other.MoveId;
     }
     if (other.Category != 0)
     {
         Category = other.Category;
     }
     if (other.U3 != 0)
     {
         U3 = other.U3;
     }
     if (other.User != 0)
     {
         User = other.User;
     }
     if (other.Group != 0)
     {
         Group = other.Group;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.Target != 0)
     {
         Target = other.Target;
     }
     if (other.U8 != 0)
     {
         U8 = other.U8;
     }
     if (other.GaugeDrain != 0)
     {
         GaugeDrain = other.GaugeDrain;
     }
     if (other.Power != 0)
     {
         Power = other.Power;
     }
     if (other.Accuracy != 0)
     {
         Accuracy = other.Accuracy;
     }
     if (other.Uses != 0)
     {
         Uses = other.Uses;
     }
     if (other.Tags != 0)
     {
         Tags = other.Tags;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
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: {
                    MoveId = input.ReadUInt32();
                    break;
                }

                case 16: {
                    category_ = (global::ReMastersLib.Category)input.ReadEnum();
                    break;
                }

                case 24: {
                    U3 = input.ReadUInt32();
                    break;
                }

                case 32: {
                    user_ = (global::ReMastersLib.User)input.ReadEnum();
                    break;
                }

                case 40: {
                    group_ = (global::ReMastersLib.Group)input.ReadEnum();
                    break;
                }

                case 48: {
                    Type = input.ReadUInt32();
                    break;
                }

                case 56: {
                    target_ = (global::ReMastersLib.Target)input.ReadEnum();
                    break;
                }

                case 64: {
                    U8 = input.ReadUInt32();
                    break;
                }

                case 72: {
                    GaugeDrain = input.ReadUInt32();
                    break;
                }

                case 80: {
                    Power = input.ReadUInt32();
                    break;
                }

                case 88: {
                    Accuracy = input.ReadUInt32();
                    break;
                }

                case 96: {
                    Uses = input.ReadUInt32();
                    break;
                }

                case 104: {
                    tags_ = (global::ReMastersLib.Tag)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #3
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

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

                case 8: {
                    MoveId = input.ReadUInt32();
                    break;
                }

                case 16: {
                    Category = (global::ReMastersLib.Category)input.ReadEnum();
                    break;
                }

                case 24: {
                    U3 = input.ReadUInt32();
                    break;
                }

                case 32: {
                    User = (global::ReMastersLib.User)input.ReadEnum();
                    break;
                }

                case 40: {
                    Group = (global::ReMastersLib.Group)input.ReadEnum();
                    break;
                }

                case 48: {
                    Type = input.ReadUInt32();
                    break;
                }

                case 56: {
                    Target = (global::ReMastersLib.Target)input.ReadEnum();
                    break;
                }

                case 64: {
                    U8 = input.ReadUInt32();
                    break;
                }

                case 72: {
                    GaugeDrain = input.ReadUInt32();
                    break;
                }

                case 80: {
                    Power = input.ReadUInt32();
                    break;
                }

                case 88: {
                    Accuracy = input.ReadUInt32();
                    break;
                }

                case 96: {
                    Uses = input.ReadUInt32();
                    break;
                }

                case 104: {
                    Tags = (global::ReMastersLib.Tag)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    MoveId = input.ReadUInt32();
                    break;
                }

                case 16: {
                    Category = (global::ReMastersLib.Category)input.ReadEnum();
                    break;
                }

                case 24: {
                    U3 = input.ReadUInt32();
                    break;
                }

                case 32: {
                    User = (global::ReMastersLib.User)input.ReadEnum();
                    break;
                }

                case 40: {
                    Group = (global::ReMastersLib.Group)input.ReadEnum();
                    break;
                }

                case 48: {
                    Type = input.ReadUInt32();
                    break;
                }

                case 56: {
                    Target = (global::ReMastersLib.Target)input.ReadEnum();
                    break;
                }

                case 64: {
                    U8 = input.ReadUInt32();
                    break;
                }

                case 72: {
                    GaugeDrain = input.ReadUInt32();
                    break;
                }

                case 80: {
                    Power = input.ReadUInt32();
                    break;
                }

                case 88: {
                    Accuracy = input.ReadUInt32();
                    break;
                }

                case 96: {
                    Uses = input.ReadUInt32();
                    break;
                }

                case 104: {
                    Tags = (global::ReMastersLib.Tag)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }