Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Additional constructors for MappingsFrame, DPLCFrame, and Animation.
  • Loading branch information
MainMemory committed Feb 23, 2015
1 parent ef622dd commit 648b6dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions SonLVLAPI/DataTypes.cs
Expand Up @@ -1532,6 +1532,12 @@ public static List<MappingsFrame> Load(byte[] file, EngineVersion version, Dicti
return result;
}

public MappingsFrame(string name)
{
Name = name;
Tiles = new List<MappingsTile>();
}

public MappingsFrame(byte[] file, int address, EngineVersion version, string name)
{
Name = name;
Expand Down Expand Up @@ -1807,6 +1813,12 @@ public static DPLCFrame[] Load(byte[] file, EngineVersion version, Dictionary<st
return result.ToArray();
}

public DPLCFrame(string name)
{
Name = name;
Tiles = new List<DPLCEntry>();
}

public DPLCFrame(byte[] file, int address, EngineVersion version, string name)
{
try
Expand Down Expand Up @@ -2029,6 +2041,12 @@ public static List<Animation> Load(byte[] file, Dictionary<string, int> labels)
return result;
}

public Animation(string name)
{
Name = name;
Frames = new List<byte>();
}

public Animation(byte[] file, int address, string name)
{
Name = name;
Expand Down

0 comments on commit 648b6dd

Please sign in to comment.