Example #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

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

                case 16: {
                    RoomID = input.ReadInt32();
                    break;
                }

                case 24: {
                    Key = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (mousePosition_ == null)
                    {
                        mousePosition_ = new global::ProtoMsg.V3Info();
                    }
                    input.ReadMessage(mousePosition_);
                    break;
                }

                case 42: {
                    LockTag = input.ReadString();
                    break;
                }

                case 48: {
                    LockID = input.ReadInt32();
                    break;
                }
                }
            }
        }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

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

                case 18: {
                    if (position_ == null)
                    {
                        position_ = new global::ProtoMsg.V3Info();
                    }
                    input.ReadMessage(position_);
                    break;
                }

                case 26: {
                    if (rotation_ == null)
                    {
                        rotation_ = new global::ProtoMsg.V3Info();
                    }
                    input.ReadMessage(rotation_);
                    break;
                }

                case 32: {
                    LockID = input.ReadInt32();
                    break;
                }
                }
            }
        }