mirror of
https://github.com/Dongyifengs/AssetStudio-Genshin-MoYi.git
synced 2025-04-22 12:39:18 +08:00
25 lines
754 B
C#
25 lines
754 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace AssetStudio
|
|||
|
{
|
|||
|
public abstract class Texture : NamedObject
|
|||
|
{
|
|||
|
protected Texture(ObjectReader reader) : base(reader)
|
|||
|
{
|
|||
|
if (version[0] > 2017 || (version[0] == 2017 && version[1] >= 3)) //2017.3 and up
|
|||
|
{
|
|||
|
var m_ForcedFallbackFormat = reader.ReadInt32();
|
|||
|
var m_DownscaleFallback = reader.ReadBoolean();
|
|||
|
if (version[0] > 2020 || (version[0] == 2020 && version[1] >= 2)) //2020.2 and up
|
|||
|
{
|
|||
|
var m_IsAlphaChannelOptional = reader.ReadBoolean();
|
|||
|
}
|
|||
|
reader.AlignStream();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|