Exemplo n.º 1
0
        void OnDisengagedEvent(DisengagedEvent e)
        {
            //Trace.Script(e.Agent + " has disengaged from me!", this);
            OnDisengaged(e.agent);

            // This agent is no longer in combat
            if (_engagements.Count == 0)
            {
                Scene.Dispatch <ExitCombatEvent>(new ExitCombatEvent());
                this.OnCombatExit();
            }
            _engagements.Remove(e.agent);
        }
Exemplo n.º 2
0
            void OnDisengagedEvent(DisengagedEvent e)
            {
                //Trace.Script(e.Agent + " has disengaged from me!", this);
                OnDisengaged(e.agent);

                // This agent is no longer in combat
                if (currentEngagements.Count == 0)
                {
                    this.OnCombatExit();
                }

                currentEngagements.Remove(e.agent);
            }