mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
Split off ingame commands from server
This commit is contained in:
parent
c74e40f7d0
commit
cdcdd6a584
5 changed files with 744 additions and 695 deletions
|
@ -39,6 +39,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
class PacketProcessor
|
||||
{
|
||||
Server mServer;
|
||||
CommandProcessor cp;
|
||||
Dictionary<uint, ConnectedPlayer> mPlayers;
|
||||
List<ClientConnection> mConnections;
|
||||
|
||||
|
@ -47,6 +48,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
mPlayers = playerList;
|
||||
mConnections = connectionList;
|
||||
mServer = server;
|
||||
cp = new CommandProcessor(playerList);
|
||||
}
|
||||
|
||||
public void processPacket(ClientConnection client, BasePacket packet)
|
||||
|
@ -198,7 +200,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
|
||||
if (chatMessage.message.StartsWith("!"))
|
||||
{
|
||||
if (mServer.doCommand(chatMessage.message, player))
|
||||
if (cp.doCommand(chatMessage.message, player))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue