Craft() 공개 메소드

public Craft ( Server.Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool ) : void
from Server.Mobile
craftSystem CraftSystem
typeRes System.Type
tool Server.Items.BaseTool
리턴 void
예제 #1
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 );
            }
        }
예제 #2
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
     CraftItem craftItem = this.m_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 );
     }
 }
예제 #3
0
        public void CreateItem(Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem, bool showGumps)
        {
            // Verify if the type is in the list of the craftable item
            CraftItem craftItem = m_CraftItems.SearchFor(type);

            if (craftItem != null)
            {
                realCraftItem.Craft(from, this, typeRes, tool, showGumps);
            }
        }