mirror of
https://github.com/Dongyifengs/AssetStudio-Genshin-MoYi.git
synced 2025-04-22 20:49:18 +08:00
20 lines
617 B
C#
20 lines
617 B
C#
using System.Collections.Generic;
|
|
|
|
namespace AssetStudio
|
|
{
|
|
public class ResourceManager : Object
|
|
{
|
|
public KeyValuePair<string, PPtr<Object>>[] m_Container;
|
|
|
|
public ResourceManager(ObjectReader reader) : base(reader)
|
|
{
|
|
var m_ContainerSize = reader.ReadInt32();
|
|
m_Container = new KeyValuePair<string, PPtr<Object>>[m_ContainerSize];
|
|
for (int i = 0; i < m_ContainerSize; i++)
|
|
{
|
|
m_Container[i] = new KeyValuePair<string, PPtr<Object>>(reader.ReadAlignedString(), new PPtr<Object>(reader));
|
|
}
|
|
}
|
|
}
|
|
}
|