private static void EndIntercept() { m_Intercept = false; m_OnTarget = null; m_OnCancel = null; m_FromGrabHotKey = false; }
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(); }
internal static void OneTimeTarget(TargetResponseCallback onTarget, CancelTargetCallback onCancel) { OneTimeTarget(false, onTarget, onCancel); }
internal static void OneTimeTarget(TargetResponseCallback onTarget, bool fromGrab) { m_FromGrabHotKey = fromGrab; OneTimeTarget(false, onTarget, null); }
internal static void OneTimeTarget(bool ground, TargetResponseCallback onTarget) { OneTimeTarget(ground, onTarget, null); }
private static void EndIntercept() { m_Intercept = false; m_OnTarget = null; m_OnCancel = null; }
internal static void OneTimeTarget(TargetResponseCallback onTarget) { OneTimeTarget(false, onTarget, null); }
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(); }
internal static void OneTimeTarget( TargetResponseCallback onTarget, CancelTargetCallback onCancel ) { OneTimeTarget( false, onTarget, onCancel ); }
internal static void OneTimeTarget( bool ground, TargetResponseCallback onTarget ) { OneTimeTarget( ground, onTarget, null ); }
internal static void OneTimeTarget( TargetResponseCallback onTarget ) { OneTimeTarget( false, onTarget, null ); }
private static void EndIntercept() { m_Intercept = false; m_OnTarget = null; m_OnCancel = null; }