Ejemplo n.º 1
0
        public void EndLoom(LoomCallback callback, Mobile from, int hue, Item resource)
        {
            if (m_Timer != null)
            {
                m_Timer.Stop();
            }

            m_Timer = null;

            m_Phase++;
            PublicOverheadMessage(Server.Network.MessageType.Emote, 51, false, m_Phase.ToString());

            /*
             * foreach (AddonComponent c in Components)
             * {
             *  switch (c.ItemID)
             *  {
             *      case 0x1016:
             *      case 0x101A:
             *      case 0x101D:
             *      case 0x10A5: --c.ItemID; break;
             *  }
             * }
             */

            if (callback != null)
            {
                callback(this, from, hue, resource);
            }
        }
        public void EndLoom(LoomCallback callback, Mobile from, int hue, Item resource)
        {
            if (m_Timer != null)
                m_Timer.Stop();

            m_Timer = null;

            m_Phase++;
            if (m_Phase == 3)
                PublicOverheadMessage(Server.Network.MessageType.Emote, 51, false, "(cha-cha)");

            /*
            foreach (AddonComponent c in Components)
            {
                switch (c.ItemID)
                {
                    case 0x1016:
                    case 0x101A:
                    case 0x101D:
                    case 0x10A5: --c.ItemID; break;
                }
            }
             */

            if (callback != null)
                callback(this, from, hue, resource);
        }
Ejemplo n.º 3
0
 public LoomTimer(LoomEastAddon loom, LoomCallback callback, Mobile from, int hue, Item resource)
     : base(TimeSpan.FromSeconds(1.5))
 {
     m_Loom     = loom;
     m_Callback = callback;
     m_From     = from;
     m_Hue      = hue;
     m_Resource = resource;
     Priority   = TimerPriority.TwoFiftyMS;
 }
Ejemplo n.º 4
0
        public void BeginLoom(LoomCallback callback, Mobile from, int hue, Item resource)
        {
            m_Timer = new LoomTimer(this, callback, from, hue, resource);
            m_Timer.Start();

            /*
             * foreach (AddonComponent c in Components)
             * {
             *  switch (c.ItemID)
             *  {
             *      case 0x1015:
             *      case 0x1019:
             *      case 0x101C:
             *      case 0x10A4: ++c.ItemID; break;
             *  }
             * }
             */
        }
        public void BeginLoom(LoomCallback callback, Mobile from, int hue, Item resource)
        {
            m_Timer = new LoomTimer(this, callback, from, hue, resource);
            m_Timer.Start();

            /*
            foreach (AddonComponent c in Components)
            {
                switch (c.ItemID)
                {
                    case 0x1015:
                    case 0x1019:
                    case 0x101C:
                    case 0x10A4: ++c.ItemID; break;
                }
            }
             */
        }
Ejemplo n.º 6
0
 public LoomTimer(LoomEastAddon loom, LoomCallback callback, Mobile from, int hue, Item resource)
     : base(TimeSpan.FromSeconds(1.5))
 {
     m_Loom = loom;
     m_Callback = callback;
     m_From = from;
     m_Hue = hue;
     m_Resource = resource;
     Priority = TimerPriority.TwoFiftyMS;
 }