mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Replace "type" with "classID" in object dumps
This commit is contained in:
parent
8704feb079
commit
573b87b570
@ -17,9 +17,11 @@ namespace AssetStudio
|
|||||||
protected BuildType buildType;
|
protected BuildType buildType;
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public BuildTarget platform;
|
public BuildTarget platform;
|
||||||
|
[JsonIgnore]
|
||||||
public ClassIDType type;
|
public ClassIDType type;
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public SerializedType serializedType;
|
public SerializedType serializedType;
|
||||||
|
public int classID;
|
||||||
public uint byteSize;
|
public uint byteSize;
|
||||||
private static JsonSerializerOptions jsonOptions;
|
private static JsonSerializerOptions jsonOptions;
|
||||||
|
|
||||||
@ -49,6 +51,7 @@ namespace AssetStudio
|
|||||||
buildType = reader.buildType;
|
buildType = reader.buildType;
|
||||||
platform = reader.platform;
|
platform = reader.platform;
|
||||||
serializedType = reader.serializedType;
|
serializedType = reader.serializedType;
|
||||||
|
classID = reader.classID;
|
||||||
byteSize = reader.byteSize;
|
byteSize = reader.byteSize;
|
||||||
|
|
||||||
if (platform == BuildTarget.NoTarget)
|
if (platform == BuildTarget.NoTarget)
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace AssetStudio
|
namespace AssetStudio
|
||||||
{
|
{
|
||||||
@ -12,6 +8,7 @@ namespace AssetStudio
|
|||||||
public long m_PathID;
|
public long m_PathID;
|
||||||
public long byteStart;
|
public long byteStart;
|
||||||
public uint byteSize;
|
public uint byteSize;
|
||||||
|
public int classID;
|
||||||
public ClassIDType type;
|
public ClassIDType type;
|
||||||
public SerializedType serializedType;
|
public SerializedType serializedType;
|
||||||
public BuildTarget platform;
|
public BuildTarget platform;
|
||||||
@ -26,6 +23,7 @@ namespace AssetStudio
|
|||||||
m_PathID = objectInfo.m_PathID;
|
m_PathID = objectInfo.m_PathID;
|
||||||
byteStart = objectInfo.byteStart;
|
byteStart = objectInfo.byteStart;
|
||||||
byteSize = objectInfo.byteSize;
|
byteSize = objectInfo.byteSize;
|
||||||
|
classID = objectInfo.classID;
|
||||||
if (Enum.IsDefined(typeof(ClassIDType), objectInfo.classID))
|
if (Enum.IsDefined(typeof(ClassIDType), objectInfo.classID))
|
||||||
{
|
{
|
||||||
type = (ClassIDType)objectInfo.classID;
|
type = (ClassIDType)objectInfo.classID;
|
||||||
|
Loading…
Reference in New Issue
Block a user