31 lines
671 B
C#
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;
|
|
}
|
|
}
|
|
}
|