This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
chovy-gm/GMAssetCompiler/GMTimeLine.cs

28 lines
559 B
C#

using System.Collections.Generic;
using System.IO;
namespace GMAssetCompiler
{
public class GMTimeLine
{
public IList<KeyValuePair<int, GMEvent>> Entries
{
get;
private set;
}
public GMTimeLine(GMAssets _a, Stream _stream)
{
_stream.ReadInteger();
int num = _stream.ReadInteger();
Entries = new List<KeyValuePair<int, GMEvent>>(num);
for (int i = 0; i < num; i++)
{
int key = _stream.ReadInteger();
GMEvent value = new GMEvent(_a, _stream);
Entries.Add(new KeyValuePair<int, GMEvent>(key, value));
}
}
}
}