Esempio n. 1
0
 private static void EndIntercept()
 {
     m_Intercept      = false;
     m_OnTarget       = null;
     m_OnCancel       = null;
     m_FromGrabHotKey = false;
 }
Esempio n. 2
0
        internal static void OneTimeTarget(bool ground, TargetResponseCallback onTarget, CancelTargetCallback onCancel)
        {
            if (m_Intercept && m_OnCancel != null)
            {
                m_OnCancel();
                CancelOneTimeTarget();
            }

            if (m_HasTarget && m_CurrentID != 0 && m_CurrentID != LocalTargID)
            {
                m_PreviousID     = m_CurrentID;
                m_PreviousGround = m_AllowGround;
                m_PrevFlags      = m_CurFlags;

                m_FilterCancel.Add(m_PreviousID);
            }

            m_Intercept = true;
            m_CurrentID = LocalTargID;
            m_OnTarget  = onTarget;
            m_OnCancel  = onCancel;

            m_ClientTarget = m_HasTarget = true;
            Client.Instance.SendToClient(new Target(LocalTargID, ground));
            ClearQueue();
        }
Esempio n. 3
0
 internal static void OneTimeTarget(TargetResponseCallback onTarget, CancelTargetCallback onCancel)
 {
     OneTimeTarget(false, onTarget, onCancel);
 }
Esempio n. 4
0
        internal static void OneTimeTarget(TargetResponseCallback onTarget, bool fromGrab)
        {
            m_FromGrabHotKey = fromGrab;

            OneTimeTarget(false, onTarget, null);
        }
Esempio n. 5
0
 internal static void OneTimeTarget(bool ground, TargetResponseCallback onTarget)
 {
     OneTimeTarget(ground, onTarget, null);
 }
Esempio n. 6
0
 private static void EndIntercept()
 {
     m_Intercept = false;
     m_OnTarget  = null;
     m_OnCancel  = null;
 }
Esempio n. 7
0
 internal static void OneTimeTarget(TargetResponseCallback onTarget)
 {
     OneTimeTarget(false, onTarget, null);
 }
Esempio n. 8
0
        internal static void OneTimeTarget( bool ground, TargetResponseCallback onTarget, CancelTargetCallback onCancel )
        {
            if ( m_Intercept && m_OnCancel != null )
            {
                m_OnCancel();
                CancelOneTimeTarget();
            }

            if ( m_HasTarget && m_CurrentID != 0 && m_CurrentID != LocalTargID )
            {
                m_PreviousID = m_CurrentID;
                m_PreviousGround = m_AllowGround;
                m_PrevFlags = m_CurFlags;

                m_FilterCancel.Add( m_PreviousID );
            }

            m_Intercept = true;
            m_CurrentID = LocalTargID;
            m_OnTarget = onTarget;
            m_OnCancel = onCancel;

            m_ClientTarget = m_HasTarget = true;
            ClientCommunication.SendToClient( new Target( LocalTargID, ground ) );
            ClearQueue();
        }
Esempio n. 9
0
 internal static void OneTimeTarget( TargetResponseCallback onTarget, CancelTargetCallback onCancel )
 {
     OneTimeTarget( false, onTarget, onCancel );
 }
Esempio n. 10
0
 internal static void OneTimeTarget( bool ground, TargetResponseCallback onTarget )
 {
     OneTimeTarget( ground, onTarget, null );
 }
Esempio n. 11
0
 internal static void OneTimeTarget( TargetResponseCallback onTarget )
 {
     OneTimeTarget( false, onTarget, null );
 }
Esempio n. 12
0
 private static void EndIntercept()
 {
     m_Intercept = false;
     m_OnTarget = null;
     m_OnCancel = null;
 }