Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public void CreateParty(CharacterEntity master, CharacterEntity member)
        {
            var party = new PartyInstance(m_nextPartyId++, master, member);

            m_partyById.Add(party.Id, party);

            WorldService.Instance.AddUpdatable(party);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="instance"></param>
        public void RemoveParty(PartyInstance instance)
        {
            m_partyById.Remove(instance.Id);

            WorldService.Instance.RemoveUpdatable(instance);
        }