improved
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace AssetStudio
|
||||
{
|
||||
public abstract class Object
|
||||
{
|
||||
public AssetPreloadData preloadData;
|
||||
public AssetsFile sourceFile;
|
||||
protected EndianBinaryReader reader;
|
||||
public int[] version;
|
||||
protected string[] buildType;
|
||||
protected BuildTarget platform;
|
||||
|
||||
protected Object(AssetPreloadData preloadData)
|
||||
{
|
||||
this.preloadData = preloadData;
|
||||
sourceFile = preloadData.sourceFile;
|
||||
reader = preloadData.InitReader();
|
||||
version = sourceFile.version;
|
||||
buildType = sourceFile.buildType;
|
||||
platform = (BuildTarget)sourceFile.platform;
|
||||
|
||||
if (platform == BuildTarget.NoTarget)
|
||||
{
|
||||
var m_ObjectHideFlags = reader.ReadUInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user