public void MergeFrom(ProtoThing other) { if (other == null) { return; } if (other.DefName.Length != 0) { DefName = other.DefName; } if (other.StackCount != 0) { StackCount = other.StackCount; } if (other.StuffDefName.Length != 0) { StuffDefName = other.StuffDefName; } if (other.Quality != 0) { Quality = other.Quality; } if (other.HitPoints != 0) { HitPoints = other.HitPoints; } if (other.innerProtoThing_ != null) { if (innerProtoThing_ == null) { innerProtoThing_ = new global::Trading.ProtoThing(); } InnerProtoThing.MergeFrom(other.InnerProtoThing); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { DefName = input.ReadString(); break; } case 16: { StackCount = input.ReadInt32(); break; } case 26: { StuffDefName = input.ReadString(); break; } case 32: { quality_ = (global::Trading.Quality)input.ReadEnum(); break; } case 40: { HitPoints = input.ReadInt32(); break; } case 50: { if (innerProtoThing_ == null) { innerProtoThing_ = new global::Trading.ProtoThing(); } input.ReadMessage(innerProtoThing_); break; } } } }
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: { DefName = input.ReadString(); break; } case 16: { StackCount = input.ReadInt32(); break; } case 26: { StuffDefName = input.ReadString(); break; } case 32: { Quality = (global::Trading.Quality)input.ReadEnum(); break; } case 40: { HitPoints = input.ReadInt32(); break; } case 50: { if (innerProtoThing_ == null) { InnerProtoThing = new global::Trading.ProtoThing(); } input.ReadMessage(InnerProtoThing); break; } } } }
public void MergeFrom(ProtoThing other) { if (other == null) { return; } if (other.DefName.Length != 0) { DefName = other.DefName; } if (other.StackCount != 0) { StackCount = other.StackCount; } if (other.StuffDefName.Length != 0) { StuffDefName = other.StuffDefName; } if (other.Quality != global::Trading.Quality.Awful) { Quality = other.Quality; } if (other.HitPoints != 0) { HitPoints = other.HitPoints; } if (other.innerProtoThing_ != null) { if (innerProtoThing_ == null) { InnerProtoThing = new global::Trading.ProtoThing(); } InnerProtoThing.MergeFrom(other.InnerProtoThing); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }