SetSettings() приватный Метод

Sets given options without updating the clients.
private SetSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void
type PartyType
name string
dungeonLevel string
info string
password string
maxSize int
Результат void
Пример #1
0
        /// <summary>
        /// Creates new party with creature as leader.
        /// </summary>
        /// <param name="creature"></param>
        public static Party Create(Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize)
        {
            var party = new Party();

            party.Id = ChannelServer.Instance.PartyManager.GetNextPartyId();

            party._members.Add(creature);
            party._occupiedSlots.Add(1, creature);
            party.Leader = creature;
            party.SetSettings(type, name, dungeonLevel, info, password, maxSize);

            creature.PartyPosition = 1;

            ChannelServer.Instance.Events.MinutesTimeTick += party.OnMinutesTimeTick;

            return(party);
        }
Пример #2
0
		/// <summary>
		/// Creates new party with creature as leader.
		/// </summary>
		/// <param name="creature"></param>
		public static Party Create(Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize)
		{
			var party = new Party();

			party.Id = ChannelServer.Instance.PartyManager.GetNextPartyId();

			party._members.Add(creature);
			party._occupiedSlots.Add(1, creature);
			party.Leader = creature;
			party.SetSettings(type, name, dungeonLevel, info, password, maxSize);

			creature.PartyPosition = 1;

			ChannelServer.Instance.Events.MinutesTimeTick += party.OnMinutesTimeTick;

			return party;
		}