コード例 #1
0
 public ISerializable Deserialize(Pmd.ForwardBwNullUserPmd_CS raw)
 {
     if (raw == null)
     {
         return(null);
     }
     return(rawCommandSerializer.DeserializeCommand(raw.data));
 }
コード例 #2
0
 public void Execute(Pmd.ForwardBwNullUserPmd_CS cmd)
 {
     try
     {
         ISerializable msg = VarlenProtobufCommandSerializer.Instance().Deserialize(cmd);
         PushCmd(msg);
     }
     catch (System.Exception ex)
     {
         Engine.Utility.Log.Error("解析网络消息出错!");
     }
 }