This commit is contained in:
mark 2008-05-29 03:57:42 +00:00
parent e41632fe95
commit 9c5abc3b0d
48 changed files with 261 additions and 70 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace Server.Engines.Craft
{
@ -12,14 +13,14 @@ namespace Server.Engines.Craft
public class CraftContext
{
private ArrayList m_Items;
private List<CraftItem> m_Items;
private int m_LastResourceIndex;
private int m_LastResourceIndex2;
private int m_LastGroupIndex;
private bool m_DoNotColor;
private CraftMarkOption m_MarkOption;
public ArrayList Items{ get{ return m_Items; } }
public List<CraftItem> Items { get { return m_Items; } }
public int LastResourceIndex{ get{ return m_LastResourceIndex; } set{ m_LastResourceIndex = value; } }
public int LastResourceIndex2{ get{ return m_LastResourceIndex2; } set{ m_LastResourceIndex2 = value; } }
public int LastGroupIndex{ get{ return m_LastGroupIndex; } set{ m_LastGroupIndex = value; } }
@ -28,7 +29,7 @@ namespace Server.Engines.Craft
public CraftContext()
{
m_Items = new ArrayList();
m_Items = new List<CraftItem>();
m_LastResourceIndex = -1;
m_LastResourceIndex2 = -1;
m_LastGroupIndex = -1;
@ -39,7 +40,7 @@ namespace Server.Engines.Craft
get
{
if ( m_Items.Count > 0 )
return (CraftItem)m_Items[0];
return m_Items[0];
return null;
}