Inheritance: System.EventArgs
Ejemplo n.º 1
0
        private static void EventSink_Connected( ConnectedEventArgs e )
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if ( pm != null )
                pm.m_SessionStart = DateTime.Now;
        }
Ejemplo n.º 2
0
        private static void EventSink_Connected(ConnectedEventArgs e)
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if (pm != null)
            {
                pm.m_SessionStart = DateTime.Now;

                if (pm.m_Quest != null)
                    pm.m_Quest.StartTimer();

                #region GeNova: Mondain's Legacy
                QuestHelper.StartTimer(pm);
                #endregion

                pm.BedrollLogout = false;
                pm.LastOnline = DateTime.Now;
            }

            Timer.DelayCall(TimeSpan.Zero, new TimerStateCallback(ClearSpecialMovesCallback), e.Mobile);
        }
Ejemplo n.º 3
0
        private static void EventSink_Connected( ConnectedEventArgs e )
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if ( pm != null )
            {
                pm.m_SessionStart = DateTime.Now;

                if ( pm.m_Quest != null )
                    pm.m_Quest.StartTimer();

                pm.BedrollLogout = false;
                pm.LastOnline = DateTime.Now;
            }

            DisguiseTimers.StartTimer( e.Mobile );

            Timer.DelayCall( TimeSpan.Zero, new TimerStateCallback( ClearSpecialMovesCallback ), e.Mobile );
        }
Ejemplo n.º 4
0
 public static void InvokeConnected( ConnectedEventArgs e )
 {
     if ( Connected != null )
         Connected( e );
 }
Ejemplo n.º 5
0
		private static void EventSink_Connected( ConnectedEventArgs e )
		{
			PlayerMobile pm = e.Mobile as PlayerMobile;

			if ( pm != null )
			{
				pm.m_SessionStart = DateTime.Now;

				if ( pm.m_Quest != null )
					pm.m_Quest.StartTimer();

				if( pm.IOBEquipped )
				{
					pm.m_IOBStartedWearing = DateTime.Now;
				}
			}
		}
Ejemplo n.º 6
0
        private static void EventSink_Connected( ConnectedEventArgs e )
        {
            Account acc = e.Mobile.Account as Account;

            if ( acc == null )
                return;

            if ( acc.Young && acc.m_YoungTimer == null )
            {
                acc.m_YoungTimer = new YoungTimer( acc );
                acc.m_YoungTimer.Start();
            }
        }
Ejemplo n.º 7
0
        private static void EventSink_Connected( ConnectedEventArgs e )
        {
            Account acc = e.Mobile.Account as Account;

            if ( acc == null )
                return;
        }
Ejemplo n.º 8
0
 public static void InvokeConnected(ConnectedEventArgs e)
 {
     Connected?.Invoke(e);
 }
Ejemplo n.º 9
0
        private static void EventSink_Connected( ConnectedEventArgs e )
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if ( pm != null )
            {
                pm.m_SessionStart = DateTime.Now;

                if ( pm.m_Quest != null )
                    pm.m_Quest.StartTimer();

                pm.BedrollLogout = false;
            }
        }
Ejemplo n.º 10
0
		private static void EventSink_Connected(ConnectedEventArgs e)
		{
			if (e.Mobile != null && e.Mobile.Account != null && e.Mobile.NetState != null)
				try { ClientMon.AddAccount(e.Mobile); }
				catch (Exception ex) { LogHelper.LogException(ex); }
		}
Ejemplo n.º 11
0
		public static void InvokeConnected(ConnectedEventArgs e)
		{
			if (Connected != null)
			{
				foreach (ConnectedEventHandler currentDelegate in Connected.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}