Пример #1
0
        protected virtual void OnLeaderChanged(Character leader)
        {
            this.ForEach(delegate(Character entry)
            {
                PartyHandler.SendPartyLeaderUpdateMessage(entry.Client, this, leader);
            });
            Action <Party, Character> leaderChanged = this.LeaderChanged;

            if (leaderChanged != null)
            {
                leaderChanged(this, leader);
            }
        }
Пример #2
0
        protected virtual void OnLeaderChanged(Character leader)
        {
            PartyHandler.SendPartyLeaderUpdateMessage(Clients, this, leader);

            LeaderChanged?.Invoke(this, leader);
        }