Aura.Channel.World.Party.Create C# (CSharp) Method

Create() public static method

Creates new party with creature as leader.
public static Create ( Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : Party
creature Aura.Channel.World.Entities.Creature
type PartyType
name string
dungeonLevel string
info string
password string
maxSize int
return Party
		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;
		}