コード例 #1
0
        public ArenaMember AddMember(ArenaGroup group, Character character)
        {
            if (MemberExist(character))
            {
                throw new Exception("Member is already registered is this ArenaMemberCollection");
            }

            ArenaMember member = new ArenaMember(character, this);

            this.m_members.Add(member);

            return(member);
        }
コード例 #2
0
        public ArenaMember Register(Character character)
        {
            ArenaGroup group = FindGroup(character);

            if (group != null)
            {
                ArenaMember member = group.AddCharacter(character);

                if (group.Ready)
                {
                    group.Request();
                }
                return(member);
            }
            else
            {
                ArenaGroup  newGroup = new ArenaGroup();
                ArenaMember member   = newGroup.AddCharacter(character);
                ArenaGroups.Add(newGroup);
                return(member);
            }
        }
コード例 #3
0
 public ArenaMemberCollection(ArenaGroup group)
 {
     this.Group = group;
 }