public void MergeFrom(ChannelState other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::Bgs.Protocol.EntityId(); } EntityId.MergeFrom(other.EntityId); } fieldOperation_.Add(other.fieldOperation_); if (other.Healing != false) { Healing = other.Healing; } if (other.presence_ != null) { if (presence_ == null) { presence_ = new global::Bgs.Protocol.Presence.V1.ChannelState(); } Presence.MergeFrom(other.Presence); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::Bgs.Protocol.EntityId(); } input.ReadMessage(entityId_); break; } case 18: { fieldOperation_.AddEntriesFrom(input, _repeated_fieldOperation_codec); break; } case 24: { Healing = input.ReadBool(); break; } case 810: { if (presence_ == null) { presence_ = new global::Bgs.Protocol.Presence.V1.ChannelState(); } input.ReadMessage(presence_); break; } } } }