|
| ChatService (HookService hookService) |
|
void | ClearPlayerChatHearingDistance (NwPlayer player) |
| Clears any hearing distance overrides for the specified NwPlayer. More...
|
|
void | ClearPlayerChatHearingDistance (NwPlayer player, ChatChannel chatChannel) |
| Clears the hearing distance override for the specified NwPlayer and ChatChannel. More...
|
|
float | GetChatHearingDistance (ChatChannel chatChannel) |
| Gets the global hearing distance for the specified ChatChannel. More...
|
|
float | GetPlayerChatHearingDistance (NwPlayer player, ChatChannel chatChannel) |
| Gets the hearing distance for the specified NwPlayer and ChatChannel. More...
|
|
bool | SendMessage (ChatChannel chatChannel, string message, NwCreature sender, NwPlayer? target=null) |
| Sends a message as the specified creature. More...
|
|
bool | SendServerMessage (ChatChannel chatChannel, string message, NwPlayer? target=null) |
| Sends a message from the "Server". More...
|
|
void | SetChatHearingDistance (ChatChannel chatChannel, float distance) |
| Sets the global hearing distance for the specified ChatChannel. More...
|
|
void | SetPlayerChatHearingDistance (NwPlayer player, ChatChannel chatChannel, float distance) |
| Sets the hearing distance override for the specified NwPlayer and ChatChannel. More...
|
|
void | Register< TEvent > (TRegisterData data) |
|
void | Unregister< TEvent > () |
|
◆ ClearPlayerChatHearingDistance() [1/2]
void Anvil.Services.ChatService.ClearPlayerChatHearingDistance |
( |
NwPlayer |
player | ) |
|
|
inline |
Clears any hearing distance overrides for the specified NwPlayer.
- Parameters
-
player | The NwPlayer to query. |
◆ ClearPlayerChatHearingDistance() [2/2]
void Anvil.Services.ChatService.ClearPlayerChatHearingDistance |
( |
NwPlayer |
player, |
|
|
ChatChannel |
chatChannel |
|
) |
| |
|
inline |
Clears the hearing distance override for the specified NwPlayer and ChatChannel.
- Parameters
-
player | The NwPlayer to query. |
chatChannel | The ChatChannel to query. |
◆ GetChatHearingDistance()
float Anvil.Services.ChatService.GetChatHearingDistance |
( |
ChatChannel |
chatChannel | ) |
|
|
inline |
Gets the global hearing distance for the specified ChatChannel.
- Parameters
-
chatChannel | The ChatChannel to query. |
- Returns
- The distance configured for the specified chat channel.
◆ GetPlayerChatHearingDistance()
float Anvil.Services.ChatService.GetPlayerChatHearingDistance |
( |
NwPlayer |
player, |
|
|
ChatChannel |
chatChannel |
|
) |
| |
|
inline |
Gets the hearing distance for the specified NwPlayer and ChatChannel.
- Parameters
-
player | The NwPlayer to query. |
chatChannel | The ChatChannel to query. |
- Returns
- The distance configured for the specified player and chat channel.
If no override is configured, returns the global configured distance instead.
◆ SendMessage()
bool Anvil.Services.ChatService.SendMessage |
( |
ChatChannel |
chatChannel, |
|
|
string |
message, |
|
|
NwCreature |
sender, |
|
|
NwPlayer? |
target = null |
|
) |
| |
|
inline |
Sends a message as the specified creature.
- Parameters
-
chatChannel | The ChatChannel to send the message. |
message | The message to send. |
sender | The sender of the message. |
target | The receiver of the message. |
- Returns
- True if the message was sent successfully, otherwise false.
◆ SendServerMessage()
bool Anvil.Services.ChatService.SendServerMessage |
( |
ChatChannel |
chatChannel, |
|
|
string |
message, |
|
|
NwPlayer? |
target = null |
|
) |
| |
|
inline |
Sends a message from the "Server".
- Parameters
-
chatChannel | The ChatChannel to send the message. Only works with ServerMessage and Player/DMShout |
message | The message to send. |
target | The receiver of the message. |
- Returns
- True if the message was sent successfully, otherwise false.
◆ SetChatHearingDistance()
void Anvil.Services.ChatService.SetChatHearingDistance |
( |
ChatChannel |
chatChannel, |
|
|
float |
distance |
|
) |
| |
|
inline |
Sets the global hearing distance for the specified ChatChannel.
- Parameters
-
chatChannel | The ChatChannel to query. |
distance | The new hearing distance. |
◆ SetPlayerChatHearingDistance()
void Anvil.Services.ChatService.SetPlayerChatHearingDistance |
( |
NwPlayer |
player, |
|
|
ChatChannel |
chatChannel, |
|
|
float |
distance |
|
) |
| |
|
inline |
Sets the hearing distance override for the specified NwPlayer and ChatChannel.
- Parameters
-
player | The NwPlayer to query. |
chatChannel | The ChatChannel to query. |
distance | The new hearing distance. |
The documentation for this class was generated from the following files:
- NWN.Anvil/src/main/Services/Chat/ChatService.cs
- NWN.Anvil/src/main/Services/Chat/ChatService.EventFactory.cs