ForgeDocs
Documentation for the forge framework
|
Contains the core APIS for sending and receiving chat messages. More...
Public Member Functions | |
ChatManager (NetworkContext context) | |
Construct a new ChatManager using the given networking context and the given object for mapping network players to a directed player relation graph. More... | |
void | Dispose () |
Cleans up the ChatManager from the NetworkContext it was constructed with. More... | |
void | SendMessage (string message, List< Player > receivers) |
Send a chat message to all players that have the given relationship with the sending player. More... | |
void | SendMessage (string message) |
Sends a chat message to every player. More... | |
Properties | |
List< ReceivedChatMessage > | DisplayableMessages [get] |
All of the chat messages that have been received that should be displayed. More... | |
List< ReceivedChatMessage > | AllMessages [get] |
All received chat messages. More... | |
Contains the core APIS for sending and receiving chat messages.
Forge.Networking.Chat.ChatManager.ChatManager | ( | NetworkContext | context | ) |
Construct a new ChatManager using the given networking context and the given object for mapping network players to a directed player relation graph.
context | The networking context. |
void Forge.Networking.Chat.ChatManager.Dispose | ( | ) |
Cleans up the ChatManager from the NetworkContext it was constructed with.
void Forge.Networking.Chat.ChatManager.SendMessage | ( | string | message, |
List< Player > | receivers | ||
) |
Send a chat message to all players that have the given relationship with the sending player.
message | The message to send. |
receivers | The players that should receive the message. |
void Forge.Networking.Chat.ChatManager.SendMessage | ( | string | message | ) |
Sends a chat message to every player.
message | The message to send. |
|
get |
All received chat messages.
|
get |
All of the chat messages that have been received that should be displayed.