OnHarvesting() public method

public OnHarvesting ( Server.Mobile from, Item tool, HarvestDefinition def, object toHarvest, object locked, bool last ) : bool
from Server.Mobile
tool Item
def HarvestDefinition
toHarvest object
locked object
last bool
return bool
Ejemplo n.º 1
0
 protected override void OnTick()
 {
     if (!m_System.OnHarvesting(m_From, m_Tool, m_Definition, m_ToHarvest, m_Locked, ++m_Index == m_Count))
     {
         Stop();
     }
 }
Ejemplo n.º 2
0
        protected override void OnTick()
        {
            if (!m_System.OnHarvesting(m_From, m_Tool, m_Definition, m_ToHarvest, m_Locked, ++m_Index == m_Count))
            {
                if (m_From is PlayerMobile)
                {
                    ((PlayerMobile)m_From).EndPlayerAction();
                }

                Stop();
            }
        }