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/GMTrigger.cs

44 lines
539 B
C#

using System.IO;
namespace GMAssetCompiler
{
public class GMTrigger
{
public string Name
{
get;
private set;
}
public string Condition
{
get;
private set;
}
public string ConstName
{
get;
private set;
}
public int Moment
{
get;
private set;
}
public GMTrigger(GMAssets _a, Stream _s)
{
int num = _s.ReadInteger();
if (num == 800)
{
Name = _s.ReadString();
Condition = _s.ReadString();
Moment = _s.ReadInteger();
ConstName = _s.ReadString();
}
}
}
}