Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void AddOpts(OptionEvent value)
 {
     opts_.Add(value);
 }