C# Class invertika_account.Chat.ChatHandler

Inheritance: ISL.Server.Network.ConnectionHandler
Exibir arquivo Open project: Invertika/server Class Usage Examples

Public Methods

Method Description
ChatHandler ( ) : System
deletePendingClient ( ISL.Server.Network.NetComputer client ) : void
deletePendingConnect ( object data ) : void
getClient ( string name ) : invertika_account.Chat.ChatClient
handlePartyInvite ( ISL.Server.Network.MessageIn msg ) : void
registerChatClient ( string token, string name, int level ) : void
sendGuildListUpdate ( string guildName, string characterName, byte eventId ) : void
tokenMatched ( ISL.Server.Network.NetComputer computer, object data ) : void
warnUsersAboutPlayerEventInChat ( invertika_account.Chat.ChatChannel channel, string info, byte eventId ) : void

Protected Methods

Method Description
computerConnected ( TcpClient peer ) : ISL.Server.Network.NetComputer
computerDisconnected ( ISL.Server.Network.NetComputer comp ) : void
processMessage ( ISL.Server.Network.NetComputer comp, ISL.Server.Network.MessageIn message ) : void

Private Methods

Method Description
guildChannelTopicChange ( invertika_account.Chat.ChatChannel channel, int playerId, string topic ) : void
handleAnnounceMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleChatMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleCommand ( invertika_account.Chat.ChatClient computer, string command ) : void
handleDisconnectMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleEnterChannelMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildAcceptInvite ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildCreate ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildGetMembers ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildInvite ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildKickMember ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildMemberLevelChange ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleGuildQuit ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleKickUserMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleListChannelUsersMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleListChannelsMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleModeChangeMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handlePartyInviteAnswer ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handlePartyQuit ( invertika_account.Chat.ChatClient client ) : void
handlePrivMsgMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleQuitChannelMessage ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleTopicChange ( invertika_account.Chat.ChatClient client, ISL.Server.Network.MessageIn msg ) : void
handleWhoMessage ( invertika_account.Chat.ChatClient client ) : void
informPartyMemberQuit ( invertika_account.Chat.ChatClient client ) : void
joinGuildChannel ( string guildName, invertika_account.Chat.ChatClient client ) : invertika_account.Chat.ChatChannel
removeExpiredPartyInvites ( ) : void
removeUserFromParty ( invertika_account.Chat.ChatClient client ) : void
sayToPlayer ( invertika_account.Chat.ChatClient computer, string playerName, string text ) : void
sendGuildRejoin ( invertika_account.Chat.ChatClient client ) : void
sendInChannel ( invertika_account.Chat.ChatChannel channel, ISL.Server.Network.MessageOut msg ) : void
startListen ( UInt16 port, string host ) : bool
updateInfo ( invertika_account.Chat.ChatClient client, int partyId ) : void
warnPlayerAboutBadWords ( invertika_account.Chat.ChatClient computer ) : void

Method Details

ChatHandler() public method

public ChatHandler ( ) : System
return System

computerConnected() protected method

protected computerConnected ( TcpClient peer ) : ISL.Server.Network.NetComputer
peer System.Net.Sockets.TcpClient
return ISL.Server.Network.NetComputer

computerDisconnected() protected method

protected computerDisconnected ( ISL.Server.Network.NetComputer comp ) : void
comp ISL.Server.Network.NetComputer
return void

deletePendingClient() public method

public deletePendingClient ( ISL.Server.Network.NetComputer client ) : void
client ISL.Server.Network.NetComputer
return void

deletePendingConnect() public method

public deletePendingConnect ( object data ) : void
data object
return void

getClient() public method

public getClient ( string name ) : invertika_account.Chat.ChatClient
name string
return invertika_account.Chat.ChatClient

handlePartyInvite() public method

public handlePartyInvite ( ISL.Server.Network.MessageIn msg ) : void
msg ISL.Server.Network.MessageIn
return void

processMessage() protected method

protected processMessage ( ISL.Server.Network.NetComputer comp, ISL.Server.Network.MessageIn message ) : void
comp ISL.Server.Network.NetComputer
message ISL.Server.Network.MessageIn
return void

registerChatClient() public static method

public static registerChatClient ( string token, string name, int level ) : void
token string
name string
level int
return void

sendGuildListUpdate() public method

public sendGuildListUpdate ( string guildName, string characterName, byte eventId ) : void
guildName string
characterName string
eventId byte
return void

tokenMatched() public method

public tokenMatched ( ISL.Server.Network.NetComputer computer, object data ) : void
computer ISL.Server.Network.NetComputer
data object
return void

warnUsersAboutPlayerEventInChat() public method

public warnUsersAboutPlayerEventInChat ( invertika_account.Chat.ChatChannel channel, string info, byte eventId ) : void
channel invertika_account.Chat.ChatChannel
info string
eventId byte
return void