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