示例#1
0
 public void CreateItem(Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem)
 {
     // Verify if the type is in the list of the craftable item
     if (CraftItems.SearchFor(type) != null)
     {
         realCraftItem.Craft(from, this, typeRes, tool);
     }
 }
示例#2
0
        public virtual CraftItem FindCraft(Type type, bool subClasses)
        {
            if (CraftItems != null)
            {
                return(subClasses ? CraftItems.SearchForSubclass(type) : CraftItems.SearchFor(type));
            }

            return(null);
        }
示例#3
0
        public void CreateItem(Mobile from, Type type, Type typeRes, ITool tool, CraftItem realCraftItem)
        {
            CraftItem craftItem = CraftItems.SearchFor(type);

            if (craftItem != null)
            {
                realCraftItem.Craft(from, this, typeRes, tool);
            }
        }
示例#4
0
        public void CreateItem(Mobile from, Type type, Type typeRes, ITool tool, CraftItem realCraftItem)
        {
            // Verify if the type is in the list of the craftable item
            CraftItem craftItem = CraftItems.SearchFor(type);

            if (craftItem != null)
            {
                // The item is in the list, try to create it
                // Test code: items like sextant parts can be crafted either directly from ingots, or from different parts
                realCraftItem.Craft(from, this, typeRes, tool);
                //craftItem.Craft( from, this, typeRes, tool );
            }
        }