//Protobuffer从MemoryStream进行反序列化
    public bool FromMemoryStream(MemoryStream protoMS)
    {
        ActivityScheduleRpcSubdueMonsterRefreshNotify pb = ProtoBuf.Serializer.Deserialize <ActivityScheduleRpcSubdueMonsterRefreshNotify>(protoMS);

        FromPB(pb);
        return(true);
    }
    //转化成Protobuffer类型函数
    public ActivityScheduleRpcSubdueMonsterRefreshNotify ToPB()
    {
        ActivityScheduleRpcSubdueMonsterRefreshNotify v = new ActivityScheduleRpcSubdueMonsterRefreshNotify();

        for (int i = 0; i < (int)m_SubdueMonsterData.Count; i++)
        {
            v.SubdueMonsterData.Add(m_SubdueMonsterData[i].ToPB());
        }

        return(v);
    }
 //从Protobuffer类型初始化
 public void FromPB(ActivityScheduleRpcSubdueMonsterRefreshNotify v)
 {
     if (v == null)
     {
         return;
     }
     m_SubdueMonsterData.Clear();
     for (int i = 0; i < v.SubdueMonsterData.Count; i++)
     {
         m_SubdueMonsterData.Add(new ActivityNpcDataWraper());
     }
     for (int i = 0; i < v.SubdueMonsterData.Count; i++)
     {
         m_SubdueMonsterData[i].FromPB(v.SubdueMonsterData[i]);
     }
 }