Ejemplo 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 10: {
                    if (player_ == null)
                    {
                        Player = new global::Tron.Protocol.Messages.Common.Player();
                    }
                    input.ReadMessage(Player);
                    break;
                }

                case 16: {
                    Action = (global::Tron.Protocol.Messages.Common.ConnectState)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(Connection other)
 {
     if (other == null)
     {
         return;
     }
     if (other.player_ != null)
     {
         if (player_ == null)
         {
             Player = new global::Tron.Protocol.Messages.Common.Player();
         }
         Player.MergeFrom(other.Player);
     }
     if (other.Action != global::Tron.Protocol.Messages.Common.ConnectState.Connect)
     {
         Action = other.Action;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }