예제 #1
0
        void OnMemberAdded(ArenaPreFightTeam arg1, ArenaWaitingCharacter arg2)
        {
            arg2.ReadyChanged += OnReadyChanged;
            arg2.FightDenied  += OnFightDenied;

            m_clients.Add(arg2.Character.Client);
        }
예제 #2
0
파일: Guild.cs 프로젝트: Mixi59/Stump
        public bool TryAddMember(Character character, out GuildMember member)
        {
            if (!CanAddMember())
            {
                member = null;
                return(false);
            }

            member = new GuildMember(this, character);
            m_members.Add(member);
            character.GuildMember = member;

            m_clients.Add(character.Client);

            if (m_members.Count == 1)
            {
                SetBoss(member);
            }

            OnMemberAdded(member);

            return(true);
        }