Exemplo n.º 1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            StoneSlotInfo _inst = (StoneSlotInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.SlotId = input.ReadInt32();
                    break;
                }

                case  18: {
                    StoneInfo subBuilder = new StoneInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddStoneInfo(subBuilder);
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            StoneInfo _inst = (StoneInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  8: {
                    _inst.HoleId = input.ReadInt32();
                    break;
                }

                case  16: {
                    _inst.TemplateId = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemplo n.º 3
0
 public void AddStoneInfo(StoneInfo value)
 {
     stoneInfo_.Add(value);
 }