C# Class invertika_account.Chat.GuildManager

Exibir arquivo Open project: Invertika/server Class Usage Examples

Public Methods

Method Description
GuildManager ( ) : System
addGuildMember ( Guild guild, int playerId ) : void
alreadyOwner ( int playerId ) : bool
changeMemberLevel ( invertika_account.Chat.ChatClient player, Guild guild, int playerId, int level ) : int
createGuild ( string name, int playerId ) : Guild
disconnectPlayer ( invertika_account.Chat.ChatClient player ) : void
doesExist ( string name ) : bool
findById ( short id ) : Guild
findByName ( string name ) : Guild
getGuildsForPlayer ( int playerId ) : List
removeGuildMember ( Guild guild, int playerId ) : void

Private Methods

Method Description
removeGuild ( Guild guild ) : void
setUserRights ( Guild guild, int playerId, int rights ) : void

Method Details

GuildManager() public method

public GuildManager ( ) : System
return System

addGuildMember() public method

public addGuildMember ( Guild guild, int playerId ) : void
guild Guild
playerId int
return void

alreadyOwner() public method

public alreadyOwner ( int playerId ) : bool
playerId int
return bool

changeMemberLevel() public method

public changeMemberLevel ( invertika_account.Chat.ChatClient player, Guild guild, int playerId, int level ) : int
player invertika_account.Chat.ChatClient
guild Guild
playerId int
level int
return int

createGuild() public method

public createGuild ( string name, int playerId ) : Guild
name string
playerId int
return Guild

disconnectPlayer() public method

public disconnectPlayer ( invertika_account.Chat.ChatClient player ) : void
player invertika_account.Chat.ChatClient
return void

doesExist() public method

public doesExist ( string name ) : bool
name string
return bool

findById() public method

public findById ( short id ) : Guild
id short
return Guild

findByName() public method

public findByName ( string name ) : Guild
name string
return Guild

getGuildsForPlayer() public method

public getGuildsForPlayer ( int playerId ) : List
playerId int
return List

removeGuildMember() public method

public removeGuildMember ( Guild guild, int playerId ) : void
guild Guild
playerId int
return void