Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (location_ == null)
                    {
                        location_ = new global::Innova.Common.Float3();
                    }
                    input.ReadMessage(location_);
                    break;
                }

                case 18: {
                    if (velocity_ == null)
                    {
                        velocity_ = new global::Innova.Common.Float3();
                    }
                    input.ReadMessage(velocity_);
                    break;
                }

                case 26: {
                    if (rotation_ == null)
                    {
                        rotation_ = new global::Innova.Common.Quaternion();
                    }
                    input.ReadMessage(rotation_);
                    break;
                }

                case 34: {
                    if (angular_ == null)
                    {
                        angular_ = new global::Innova.Common.Float4();
                    }
                    input.ReadMessage(angular_);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(ActorMovement other)
 {
     if (other == null)
     {
         return;
     }
     if (other.location_ != null)
     {
         if (location_ == null)
         {
             location_ = new global::Innova.Common.Float3();
         }
         Location.MergeFrom(other.Location);
     }
     if (other.velocity_ != null)
     {
         if (velocity_ == null)
         {
             velocity_ = new global::Innova.Common.Float3();
         }
         Velocity.MergeFrom(other.Velocity);
     }
     if (other.rotation_ != null)
     {
         if (rotation_ == null)
         {
             rotation_ = new global::Innova.Common.Quaternion();
         }
         Rotation.MergeFrom(other.Rotation);
     }
     if (other.angular_ != null)
     {
         if (angular_ == null)
         {
             angular_ = new global::Innova.Common.Float4();
         }
         Angular.MergeFrom(other.Angular);
     }
 }