C# Класс Aura.Channel.World.Party

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddMember ( Creature creature ) : void

Adds creature to party and updates the clients.

AddMemberSilent ( Creature creature ) : void

Adds creature to party without updating the clients.

AutoChooseNextLeader ( ) : void

Sets next leader automatically.

Official gives the character that has been created for the longest period of time precedence.

Broadcast ( Packet packet, bool useMemberEntityId = false, Creature exclude = null ) : void

Sends the supplied packet to all members, with the option of replacing the EntityID with each member's personal ID, and excluding a specific creature.

ChangeExp ( PartyExpSharing rule ) : void

Changes exp sharing rule.

ChangeFinish ( PartyFinishRule rule ) : void

Change finishing rule.

ChangeSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void

Changes settings and updates clients.

CheckPassword ( string password ) : bool

Returns true if password is correct or none is set.

Close ( ) : void

Closes members wanted ad.

Create ( Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : Party

Creates new party with creature as leader.

CreateDummy ( Creature creature ) : Party

Creates new dummy party for creature.

DisconnectedMember ( Creature creature ) : void

Deals with removing disconnected players from the party.

GetCreaturesOnAltar ( int regionId ) : List

Returns a list of all members standing on the altar in the given region.

This and other functions assume that there's only ever one altar per region. Should this change at any point, these functions have to be fixed.

GetMember ( long entityId ) : Creature

Returns party member by entity id, or null if it doesn't exist.

GetMembers ( ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members.

GetMembersInRange ( Creature creature, int range = -1 ) : List

Returns party members in range of given creature, but not the creature itself.

3000 is a total guess as to the actual visible range.

GetMembersInRegion ( int regionId ) : List

Returns a list of all members in the region specified.

GetSortedMembers ( ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members, sorted by their position in the party.

GetSortedMembers ( bool>.Func predicate ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members that match the predicate, sorted by their position in the party.

Open ( ) : void

Opens members wanted ad.

RemoveMember ( Creature creature ) : void

Removes creature from party if it's in it and updates the clients.

RemoveMemberSilent ( Creature creature ) : void

Removes creature from party without updating the clients.

SetDungeonLevel ( string dungeonLevel ) : void

Sets dungeon level.

SetInfo ( string info ) : void

Sets party info.

SetLeader ( Creature creature ) : bool

Sets leader to given creature, if possible.

SetLeader ( long entitiyId ) : bool

Sets leader to given entity, if possible.

SetMaxSize ( int size ) : void

Sets party's max size.

SetName ( string name ) : void

Sets party name.

TODO: Kinda redundant, use property?

SetPartyQuest ( Quest quest ) : void

Sets party quest, removing previous ones and updating all members.

SetPassword ( string pass ) : void

Sets party's password, set to empty string or null to disable.

SetType ( PartyType type ) : void

Sets party type.

ToString ( ) : string

Returns the party name in the format the Party Member Wanted functionality requires.

UnsetPartyQuest ( ) : bool

Unsets party quest, removes it from all normal member's managers, and updates the clients. Returns false if no party quest was set.

Приватные методы

Метод Описание
GetAvailableSlot ( ) : int

Returns first available slot, throws if none are available. Check availability before adding members.

OnMinutesTimeTick ( ErinnTime time ) : void

Raised once every minute.

Party ( ) : Aura.Channel.Network.Sending

Initializes party.

SetSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void

Sets given options without updating the clients.

Описание методов

AddMember() публичный Метод

Adds creature to party and updates the clients.
public AddMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

AddMemberSilent() публичный Метод

Adds creature to party without updating the clients.
public AddMemberSilent ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

AutoChooseNextLeader() публичный Метод

Sets next leader automatically.
Official gives the character that has been created for the longest period of time precedence.
public AutoChooseNextLeader ( ) : void
Результат void

Broadcast() публичный Метод

Sends the supplied packet to all members, with the option of replacing the EntityID with each member's personal ID, and excluding a specific creature.
public Broadcast ( Packet packet, bool useMemberEntityId = false, Creature exclude = null ) : void
packet Packet
useMemberEntityId bool
exclude Aura.Channel.World.Entities.Creature
Результат void

ChangeExp() публичный Метод

Changes exp sharing rule.
public ChangeExp ( PartyExpSharing rule ) : void
rule PartyExpSharing
Результат void

ChangeFinish() публичный Метод

Change finishing rule.
public ChangeFinish ( PartyFinishRule rule ) : void
rule PartyFinishRule
Результат void

ChangeSettings() публичный Метод

Changes settings and updates clients.
public ChangeSettings ( 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

CheckPassword() публичный Метод

Returns true if password is correct or none is set.
public CheckPassword ( string password ) : bool
password string
Результат bool

Close() публичный Метод

Closes members wanted ad.
public Close ( ) : void
Результат void

Create() публичный статический Метод

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
Результат Party

CreateDummy() публичный статический Метод

Creates new dummy party for creature.
public static CreateDummy ( Creature creature ) : Party
creature Aura.Channel.World.Entities.Creature
Результат Party

DisconnectedMember() публичный Метод

Deals with removing disconnected players from the party.
public DisconnectedMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

GetCreaturesOnAltar() публичный Метод

Returns a list of all members standing on the altar in the given region.
This and other functions assume that there's only ever one altar per region. Should this change at any point, these functions have to be fixed.
public GetCreaturesOnAltar ( int regionId ) : List
regionId int
Результат List

GetMember() публичный Метод

Returns party member by entity id, or null if it doesn't exist.
public GetMember ( long entityId ) : Creature
entityId long
Результат Aura.Channel.World.Entities.Creature

GetMembers() публичный Метод

Returns list of all members.
public GetMembers ( ) : Aura.Channel.World.Entities.Creature[]
Результат Aura.Channel.World.Entities.Creature[]

GetMembersInRange() публичный Метод

Returns party members in range of given creature, but not the creature itself.
3000 is a total guess as to the actual visible range.
public GetMembersInRange ( Creature creature, int range = -1 ) : List
creature Aura.Channel.World.Entities.Creature Reference creature
range int Pass -1 for visual range.
Результат List

GetMembersInRegion() публичный Метод

Returns a list of all members in the region specified.
public GetMembersInRegion ( int regionId ) : List
regionId int
Результат List

GetSortedMembers() публичный Метод

Returns list of all members, sorted by their position in the party.
public GetSortedMembers ( ) : Aura.Channel.World.Entities.Creature[]
Результат Aura.Channel.World.Entities.Creature[]

GetSortedMembers() публичный Метод

Returns list of all members that match the predicate, sorted by their position in the party.
public GetSortedMembers ( bool>.Func predicate ) : Aura.Channel.World.Entities.Creature[]
predicate bool>.Func
Результат Aura.Channel.World.Entities.Creature[]

Open() публичный Метод

Opens members wanted ad.
public Open ( ) : void
Результат void

RemoveMember() публичный Метод

Removes creature from party if it's in it and updates the clients.
public RemoveMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

RemoveMemberSilent() публичный Метод

Removes creature from party without updating the clients.
public RemoveMemberSilent ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void

SetDungeonLevel() публичный Метод

Sets dungeon level.
public SetDungeonLevel ( string dungeonLevel ) : void
dungeonLevel string
Результат void

SetInfo() публичный Метод

Sets party info.
public SetInfo ( string info ) : void
info string
Результат void

SetLeader() публичный Метод

Sets leader to given creature, if possible.
public SetLeader ( Creature creature ) : bool
creature Aura.Channel.World.Entities.Creature
Результат bool

SetLeader() публичный Метод

Sets leader to given entity, if possible.
public SetLeader ( long entitiyId ) : bool
entitiyId long
Результат bool

SetMaxSize() публичный Метод

Sets party's max size.
public SetMaxSize ( int size ) : void
size int
Результат void

SetName() публичный Метод

Sets party name.
TODO: Kinda redundant, use property?
public SetName ( string name ) : void
name string
Результат void

SetPartyQuest() публичный Метод

Sets party quest, removing previous ones and updating all members.
public SetPartyQuest ( Quest quest ) : void
quest Quest
Результат void

SetPassword() публичный Метод

Sets party's password, set to empty string or null to disable.
public SetPassword ( string pass ) : void
pass string
Результат void

SetType() публичный Метод

Sets party type.
public SetType ( PartyType type ) : void
type PartyType
Результат void

ToString() публичный Метод

Returns the party name in the format the Party Member Wanted functionality requires.
public ToString ( ) : string
Результат string

UnsetPartyQuest() публичный Метод

Unsets party quest, removes it from all normal member's managers, and updates the clients. Returns false if no party quest was set.
public UnsetPartyQuest ( ) : bool
Результат bool