1
0
mirror of https://github.com/aelurum/AssetStudio.git synced 2025-08-12 14:34:17 -04:00
Files
.github
AssetStudio
AssetStudio.PInvoke
AssetStudioCLI
AssetStudioFBXNative
AssetStudioFBXWrapper
AssetStudioGUI
Components
AlphanumComparatorFast.cs
AlphanumComparatorFastNet.cs
AssetItem.cs
ConsoleWindow.cs
GOHierarchy.cs
GameObjectTreeNode.cs
LnkReader.cs
OpenFolderDialog.cs
TypeTreeItem.cs
Libraries
Properties
Resources
AboutForm.Designer.cs
AboutForm.cs
AboutForm.resx
AssetStudioGUI.csproj
AssetStudioGUIForm.Designer.cs
AssetStudioGUIForm.cs
AssetStudioGUIForm.resx
DirectBitmap.cs
ExportOptions.Designer.cs
ExportOptions.cs
ExportOptions.resx
Exporter.cs
GUILogger.cs
ParallelExport.cs
Program.cs
Studio.cs
app.manifest
AssetStudioUtility
Texture2DDecoderNative
Texture2DDecoderWrapper
.gitattributes
.gitignore
AssetStudio.sln
CHANGELOG.md
LICENSE
README.md
AssetStudio/AssetStudioGUI/Components/AssetItem.cs
2020-03-25 14:01:59 +08:00

41 lines
1.0 KiB
C#

using System.Windows.Forms;
using AssetStudio;
namespace AssetStudioGUI
{
internal class AssetItem : ListViewItem
{
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 GameObjectTreeNode TreeNode;
public AssetItem(Object asset)
{
Asset = asset;
SourceFile = asset.assetsFile;
Type = asset.type;
TypeString = Type.ToString();
m_PathID = asset.m_PathID;
FullSize = asset.byteSize;
}
public void SetSubItems()
{
SubItems.AddRange(new[]
{
Container, //Container
TypeString, //Type
m_PathID.ToString(), //PathID
FullSize.ToString(), //Size
});
}
}
}