Example #1
0
 public void MergeFrom(StoryboardAdviceOverlayStep other)
 {
     if (other == null)
     {
         return;
     }
     if (other.speechBubble_ != null)
     {
         if (speechBubble_ == null)
         {
             SpeechBubble = new global::WUProtos.Data.SpeechBubble();
         }
         SpeechBubble.MergeFrom(other.SpeechBubble);
     }
     if (other.RequiresScrim != false)
     {
         RequiresScrim = other.RequiresScrim;
     }
     if (other.Alignment != 0)
     {
         Alignment = other.Alignment;
     }
     if (other.ShowContinueActionText != false)
     {
         ShowContinueActionText = other.ShowContinueActionText;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #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 10: {
                    if (speechBubble_ == null)
                    {
                        SpeechBubble = new global::WUProtos.Data.SpeechBubble();
                    }
                    input.ReadMessage(SpeechBubble);
                    break;
                }

                case 16: {
                    RequiresScrim = input.ReadBool();
                    break;
                }

                case 24: {
                    Alignment = (global::WUProtos.Data.Storyboard.StoryboardAdviceOverlayStep.Types.AdviceOverlayAlignment)input.ReadEnum();
                    break;
                }

                case 32: {
                    ShowContinueActionText = input.ReadBool();
                    break;
                }
                }
            }
        }