◆ ChatServer()
essentials.Subsystems.Chat.ChatServer.ChatServer |
( |
| ) |
|
28 this.InjectDependencies();
30 _clientRpc = this.
RpcManager.GetClass<ChatClient>();
IRpcManager RpcManager
Definition: ChatServer.cs:16
Action< IUser > OnJoin
Definition: IUserManager.cs:31
IPluginLogger Logger
Definition: ChatServer.cs:22
void AddCommandHandler(IChatCommandHandler handler)
Definition: ChatServer.cs:41
Action< IUser > OnLeave
Definition: IUserManager.cs:32
void LogInfo(string msg, params object[] args)
IUserManager UserManager
Definition: ChatServer.cs:19
◆ AddCommandHandler()
43 _chatCommandHandlers.Add(handler);
◆ BroadcastSystemMessage()
void essentials.Subsystems.Chat.ChatServer.BroadcastSystemMessage |
( |
string |
msg, |
|
|
params object [] |
args |
|
) |
| |
◆ ClearCommandHandlers()
void essentials.Subsystems.Chat.ChatServer.ClearCommandHandlers |
( |
| ) |
|
48 _chatCommandHandlers.Clear();
◆ OnStart()
void essentials.Subsystems.Chat.ChatServer.OnStart |
( |
| ) |
|
◆ OnStop()
void essentials.Subsystems.Chat.ChatServer.OnStop |
( |
| ) |
|
◆ SendDirectedMessage() [1/3]
void essentials.Subsystems.Chat.ChatServer.SendDirectedMessage |
( |
ushort |
userId, |
|
|
string |
msg, |
|
|
params object [] |
args |
|
) |
| |
Implements essentials.Subsystems.Chat.IChatServer.
UserAuthLevel
User authentication level
Definition: UserAuthLevel.cs:8
static RpcTarget Client(ushort id)
Create a target for a specific client
Definition: RpcTarget.cs:190
Class that specifies the target of an RPC class
Definition: RpcTarget.cs:21
◆ SendDirectedMessage() [2/3]
void essentials.Subsystems.Chat.ChatServer.SendDirectedMessage |
( |
IUser |
user, |
|
|
string |
msg, |
|
|
params object [] |
args |
|
) |
| |
Implements essentials.Subsystems.Chat.IChatServer.
void SendDirectedMessage(ushort userId, string msg, params object[] args)
Definition: ChatServer.cs:80
ushort ClientIdent
The Id of the user
Definition: IUser.cs:20
◆ SendDirectedMessage() [3/3]
void essentials.Subsystems.Chat.ChatServer.SendDirectedMessage |
( |
string |
username, |
|
|
string |
msg, |
|
|
params object [] |
args |
|
) |
| |
Implements essentials.Subsystems.Chat.IChatServer.
IUser GetUser(ushort userId)
void SendDirectedMessage(ushort userId, string msg, params object[] args)
Definition: ChatServer.cs:80
IUserManager UserManager
Definition: ChatServer.cs:19
◆ Simulate()
void essentials.Subsystems.Chat.ChatServer.Simulate |
( |
IFrameTimeState |
frameTime | ) |
|
◆ Logger
◆ RpcManager
IRpcManager essentials.Subsystems.Chat.ChatServer.RpcManager |
|
protected |
◆ UserManager
IUserManager essentials.Subsystems.Chat.ChatServer.UserManager |
|
protected |
The documentation for this class was generated from the following file: