public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { FrameOpts _inst = (FrameOpts)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.FrameId = input.ReadInt32(); break; } case 18: { OptionEvent subBuilder = new OptionEvent(); input.ReadMessage(subBuilder); _inst.AddOpts(subBuilder); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { OptionEvent _inst = (OptionEvent)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.SeatId = input.ReadInt32(); break; } case 16: { _inst.OptType = input.ReadInt32(); break; } case 24: { _inst.PosX = input.ReadInt32(); break; } case 32: { _inst.PosY = input.ReadInt32(); break; } case 40: { _inst.PosZ = input.ReadInt32(); break; } } } return(_inst); }
public void AddOpts(OptionEvent value) { opts_.Add(value); }