/// <summary> /// Check LoS and wait for a reply before returning /// </summary> /// <param name="player">Client used to make the LoS check</param> /// <param name="source">GameObject from witch LoS check start</param> /// <param name="target">GameObject to check LoS to</param> /// <param name="notifier">GameObject to Notify when Check is made</param> /// <param name="cached">Use a cached result</param> /// <param name="timeout">Cache Timeout, 0 = default</param> public void LosCheck(GamePlayer player, GameObject source, GameObject target, LosMgrResponse notifier, bool cached = true , int timeout = 0) { LosCheck(player, source, target, new LosMgrResponseHandler(notifier), cached, timeout); }
/// <summary> /// LoscheckVincinity can be used when source player isn't available to check Los /// </summary> /// <param name="source">GameObject from witch LoS check start</param> /// <param name="target">GameObject to check LoS to</param> /// <param name="notifier">GameObject to Notify when Check is made</param> /// <param name="cached">Use a cached result</param> /// <param name="timeout">Cache Timeout, 0 = default</param> public void LosCheckVincinity(GameObject source, GameObject target, LosMgrResponse notifier, bool cached = true, int timeout = 0) { LosCheckVincinity(source, target, new LosMgrResponseHandler(notifier), true, 0); }
public LosMgrResponseHandler(LosMgrResponse deleg) { m_delegate = deleg; }