Files
SM64Lib/SM64Lib/Geolayout/Script/GeolayoutCommandCollection.cs
2024-06-05 19:21:19 +02:00

17 lines
446 B
C#

using global::SM64Lib.Script;
namespace SM64Lib.Geolayout.Script;
public class GeolayoutCommandCollection : BaseCommandCollection<GeolayoutCommand, GeolayoutCommandTypes>
{
public int IndexOfFirst(GeolayoutCommandTypes cmdType)
{
for (int index = 0, loopTo = Count - 1; index <= loopTo; index++)
{
if (this[index].CommandType == cmdType)
return index;
}
return -1;
}
}