ModernUO/Projects/UOContent/Engines/Craft/Core/CraftSubResCol.cs
2020-08-01 08:40:06 -07:00

31 lines
671 B
C#

using System;
using System.Collections.Generic;
namespace Server.Engines.Craft
{
public class CraftSubResCol : List<CraftSubRes>
{
public CraftSubResCol() => Init = false;
public bool Init { get; set; }
public Type ResType { get; set; }
public string NameString { get; set; }
public int NameNumber { get; set; }
public CraftSubRes GetAt(int index) => this[index];
public CraftSubRes SearchFor(Type type)
{
for (int i = 0; i < Count; i++)
{
CraftSubRes craftSubRes = this[i];
if (craftSubRes.ItemType == type) return craftSubRes;
}
return null;
}
}
}