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 | |
return | void |
/// <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); }
/// <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; }