示例#1
0
        public ArenaParty CreateArenaParty()
        {
            var group = new ArenaParty(m_idProvider.Pop());

            AddEntity(group.Id, group);

            return(group);
        }
        public ArenaParty CreateArenaParty(Character leader)
        {
            ArenaParty party;
            lock (this.m_lock)
            {
                party = new ArenaParty(this.m_idProvider.Pop(), leader);
            }

            base.AddEntity(party.Id, party);
            return party;
        }