Exemplo n.º 1
0
    //Protobuffer从MemoryStream进行反序列化
    public bool FromMemoryStream(MemoryStream protoMS)
    {
        StoryDungeonRpcPlayerConfirmResultNotify pb = ProtoBuf.Serializer.Deserialize <StoryDungeonRpcPlayerConfirmResultNotify>(protoMS);

        FromPB(pb);
        return(true);
    }
Exemplo n.º 2
0
 //从Protobuffer类型初始化
 public void FromPB(StoryDungeonRpcPlayerConfirmResultNotify v)
 {
     if (v == null)
     {
         return;
     }
     m_UserId   = v.UserId;
     m_UserName = v.UserName;
     m_IsAgree  = v.IsAgree;
 }
Exemplo n.º 3
0
    //转化成Protobuffer类型函数
    public StoryDungeonRpcPlayerConfirmResultNotify ToPB()
    {
        StoryDungeonRpcPlayerConfirmResultNotify v = new StoryDungeonRpcPlayerConfirmResultNotify();

        v.UserId   = m_UserId;
        v.UserName = m_UserName;
        v.IsAgree  = m_IsAgree;

        return(v);
    }