//Protobuffer从MemoryStream进行反序列化 public bool FromMemoryStream(MemoryStream protoMS) { ActivityScheduleRpcSubdueMonsterBeOpenedNotify pb = ProtoBuf.Serializer.Deserialize <ActivityScheduleRpcSubdueMonsterBeOpenedNotify>(protoMS); FromPB(pb); return(true); }
//从Protobuffer类型初始化 public void FromPB(ActivityScheduleRpcSubdueMonsterBeOpenedNotify v) { if (v == null) { return; } m_SubdueMonsterData.FromPB(v.SubdueMonsterData); }
//转化成Protobuffer类型函数 public ActivityScheduleRpcSubdueMonsterBeOpenedNotify ToPB() { ActivityScheduleRpcSubdueMonsterBeOpenedNotify v = new ActivityScheduleRpcSubdueMonsterBeOpenedNotify(); v.SubdueMonsterData = m_SubdueMonsterData.ToPB(); return(v); }