C# Класс Universe.Modules.Chat.ChatModule

Наследование: INonSharedRegionModule, IChatModule, IMuteListModule
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AllChatPlugins List
ChatPlugins IChatPlugin>.Dictionary

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

Метод Описание
AddRegion ( IScene scene ) : void
Close ( ) : void
DeliverChatToAvatars ( ChatSourceType sourceType, OSChatMessage c ) : void
FindScenePresence ( UUID avID ) : IScenePresence

Find the presence from all the known sims

GetMutes ( UUID agentID, bool &cached ) : Universe.Framework.ClientInterfaces.MuteList[]

Get all the mutes from the database

Initialize ( IConfigSource config ) : void
OnChatFromWorld ( object sender, OSChatMessage c ) : void

Send the message from the prim to the avatars in the regions

OnNewClient ( IClientAPI client ) : void
RegionLoaded ( IScene scene ) : void
RegisterChatPlugin ( string main, IChatPlugin plugin ) : void
RemoveMute ( UUID muteID, string muteName, UUID agentID ) : void

Remove the given mute from the user's mute list in the database

RemoveRegion ( IScene scene ) : void
SimChat ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromID, bool fromAgent, IScene scene ) : void
SimChat ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromID, bool fromAgent, bool broadcast, float range, UUID toAgentID, IScene scene ) : void
SimChatBroadcast ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromAgentID, bool fromAgent, UUID toAgentID, IScene scene ) : void

Say this message directly to a single person

TrySendChatMessage ( IScenePresence presence, System.Vector3 fromPos, UUID fromAgentID, string fromName, ChatTypeEnum type, string message, ChatSourceType src, float range ) : void
UpdateMuteList ( UUID muteID, string muteName, int flags, UUID agentID ) : void

Update the mute in the database

Защищенные методы

Метод Описание
FixPositionOfChatMessage ( OSChatMessage c ) : OSChatMessage

Set the correct position for the chat message

OnChatBroadcast ( object sender, OSChatMessage c ) : void
OnChatFromClient ( IClientAPI sender, OSChatMessage c ) : void

New chat message from the client

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

Метод Описание
FindChatPlugins ( ) : void
OnClosingClient ( IClientAPI client ) : void
OnInstantMessage ( IClientAPI client, GridInstantMessage im ) : void

If its a message we deal with, pull it from the client here

OnMuteListRemove ( IClientAPI client, UUID muteID, string muteName, UUID agentID ) : void

Remove the mute (from the client)

OnMuteListRequest ( IClientAPI client, uint crc ) : void

Get all the mutes the client has set

OnMuteListUpdate ( IClientAPI client, UUID muteID, string muteName, int flags, UUID agentID ) : void

Update the mute (from the client)

UpdateCachedInfo ( UUID agentID, CachedUserInfo info ) : void

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

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

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

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

public Close ( ) : void
Результат void

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

public DeliverChatToAvatars ( ChatSourceType sourceType, OSChatMessage c ) : void
sourceType ChatSourceType
c Universe.Framework.ClientInterfaces.OSChatMessage
Результат void

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

Find the presence from all the known sims
public FindScenePresence ( UUID avID ) : IScenePresence
avID UUID
Результат IScenePresence

FixPositionOfChatMessage() защищенный Метод

Set the correct position for the chat message
protected FixPositionOfChatMessage ( OSChatMessage c ) : OSChatMessage
c Universe.Framework.ClientInterfaces.OSChatMessage
Результат Universe.Framework.ClientInterfaces.OSChatMessage

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

Get all the mutes from the database
public GetMutes ( UUID agentID, bool &cached ) : Universe.Framework.ClientInterfaces.MuteList[]
agentID UUID
cached bool
Результат Universe.Framework.ClientInterfaces.MuteList[]

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

public Initialize ( IConfigSource config ) : void
config IConfigSource
Результат void

OnChatBroadcast() защищенный Метод

protected OnChatBroadcast ( object sender, OSChatMessage c ) : void
sender object
c Universe.Framework.ClientInterfaces.OSChatMessage
Результат void

OnChatFromClient() защищенный Метод

New chat message from the client
protected OnChatFromClient ( IClientAPI sender, OSChatMessage c ) : void
sender IClientAPI
c Universe.Framework.ClientInterfaces.OSChatMessage
Результат void

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

Send the message from the prim to the avatars in the regions
public OnChatFromWorld ( object sender, OSChatMessage c ) : void
sender object
c Universe.Framework.ClientInterfaces.OSChatMessage
Результат void

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

public OnNewClient ( IClientAPI client ) : void
client IClientAPI
Результат void

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

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

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

public RegisterChatPlugin ( string main, IChatPlugin plugin ) : void
main string
plugin IChatPlugin
Результат void

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

Remove the given mute from the user's mute list in the database
public RemoveMute ( UUID muteID, string muteName, UUID agentID ) : void
muteID UUID
muteName string
agentID UUID
Результат void

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

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

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

public SimChat ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromID, bool fromAgent, IScene scene ) : void
message string
type ChatTypeEnum
channel int
fromPos System.Vector3
fromName string
fromID UUID
fromAgent bool
scene IScene
Результат void

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

public SimChat ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromID, bool fromAgent, bool broadcast, float range, UUID toAgentID, IScene scene ) : void
message string
type ChatTypeEnum
channel int
fromPos System.Vector3
fromName string
fromID UUID
fromAgent bool
broadcast bool
range float
toAgentID UUID
scene IScene
Результат void

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

Say this message directly to a single person
public SimChatBroadcast ( string message, ChatTypeEnum type, int channel, System.Vector3 fromPos, string fromName, UUID fromAgentID, bool fromAgent, UUID toAgentID, IScene scene ) : void
message string
type ChatTypeEnum
channel int
fromPos System.Vector3
fromName string
fromAgentID UUID
fromAgent bool
toAgentID UUID
scene IScene
Результат void

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

public TrySendChatMessage ( IScenePresence presence, System.Vector3 fromPos, UUID fromAgentID, string fromName, ChatTypeEnum type, string message, ChatSourceType src, float range ) : void
presence IScenePresence
fromPos System.Vector3
fromAgentID UUID
fromName string
type ChatTypeEnum
message string
src ChatSourceType
range float
Результат void

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

Update the mute in the database
public UpdateMuteList ( UUID muteID, string muteName, int flags, UUID agentID ) : void
muteID UUID
muteName string
flags int
agentID UUID
Результат void

Описание свойств

AllChatPlugins публичное свойство

public List AllChatPlugins
Результат List

ChatPlugins публичное свойство

public Dictionary ChatPlugins
Результат IChatPlugin>.Dictionary