26 lines
695 B
C#
26 lines
695 B
C#
using System.Collections.Generic;
|
|
|
|
namespace RobloxFiles.BinaryFormat.Chunks
|
|
{
|
|
public class META
|
|
{
|
|
public int NumEntries;
|
|
public Dictionary<string, string> Data = new Dictionary<string, string>();
|
|
|
|
public META(BinaryRobloxFileChunk chunk)
|
|
{
|
|
using (BinaryRobloxFileReader reader = chunk.GetDataReader())
|
|
{
|
|
NumEntries = reader.ReadInt32();
|
|
|
|
for (int i = 0; i < NumEntries; i++)
|
|
{
|
|
string key = reader.ReadString();
|
|
string value = reader.ReadString();
|
|
Data.Add(key, value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|