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 (position_ == null) { Position = new global::Chunks.Vector3Message(); } input.ReadMessage(Position); break; } case 18: { if (velocity_ == null) { Velocity = new global::Chunks.Vector3Message(); } input.ReadMessage(Velocity); break; } case 26: { if (force_ == null) { Force = new global::Chunks.Vector3Message(); } input.ReadMessage(Force); break; } case 32: { IsKinematic = input.ReadBool(); break; } case 40: { MagicalExtraOne = input.ReadInt32(); break; } } } }
public void MergeFrom(ProjectileObjectSyncChunk other) { if (other == null) { return; } if (other.position_ != null) { if (position_ == null) { Position = new global::Chunks.Vector3Message(); } Position.MergeFrom(other.Position); } if (other.velocity_ != null) { if (velocity_ == null) { Velocity = new global::Chunks.Vector3Message(); } Velocity.MergeFrom(other.Velocity); } if (other.force_ != null) { if (force_ == null) { Force = new global::Chunks.Vector3Message(); } Force.MergeFrom(other.Force); } if (other.IsKinematic != false) { IsKinematic = other.IsKinematic; } if (other.MagicalExtraOne != 0) { MagicalExtraOne = other.MagicalExtraOne; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }