Files
YarikStudio/AssetStudioCLI/Components/AssetItem.cs
Razmoth a0abbe8037 - [Core] Exportable Material.
- [Core] Added name to `PPtr` and `Object` when available.
2023-09-26 11:53:47 +04:00

30 lines
741 B
C#

using AssetStudio;
namespace AssetStudioCLI
{
public class AssetItem
{
public string Text;
public Object Asset;
public SerializedFile SourceFile;
public string Container = string.Empty;
public string TypeString;
public long m_PathID;
public long FullSize;
public ClassIDType Type;
public string InfoText;
public string UniqueID;
public AssetItem(Object asset)
{
Asset = asset;
Text = asset.Name;
SourceFile = asset.assetsFile;
Type = asset.type;
TypeString = Type.ToString();
m_PathID = asset.m_PathID;
FullSize = asset.byteSize;
}
}
}