using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace YooAsset
{
///
/// 资源系统调试信息
///
[Serializable]
internal class DebugReport
{
///
/// 游戏帧
///
public int FrameCount;
///
/// 调试的包裹数据列表
///
public List PackageDatas = new List(10);
///
/// 序列化
///
public static byte[] Serialize(DebugReport debugReport)
{
return Encoding.UTF8.GetBytes(JsonUtility.ToJson(debugReport));
}
///
/// 反序列化
///
public static DebugReport Deserialize(byte[] data)
{
return JsonUtility.FromJson(Encoding.UTF8.GetString(data));
}
}
}