Files
SM64Lib/SM64Lib/Model/Fast3D/DisplayLists/DisplayListCollection.cs
2024-08-18 09:25:16 +02:00

26 lines
535 B
C#

using global::Pilz.S3DFileParser;
namespace SM64Lib.Model.Fast3D.DisplayLists;
public class DisplayListCollection : List<DisplayList>
{
public Object3D ToObject3D(RomManager rommgr, byte? AreaID)
{
var obj = new Object3D();
foreach (DisplayList dl in this)
dl.ToObject3D(obj, rommgr, AreaID);
return obj;
}
public new void Clear()
{
Close();
base.Clear();
}
public void Close()
{
foreach (var dl in this)
dl.Close();
}
}