From 50ff20a557e593e6a998cf39d3a7ca7eddbd313c Mon Sep 17 00:00:00 2001 From: Ricardo Lopes Date: Thu, 13 Feb 2020 21:53:38 +0100 Subject: [PATCH] Move message related files to messaging directory --- QSB/{ => Messaging}/MessageHandler.cs | 4 ++-- QSB/{ => Messaging}/MessageType.cs | 0 QSB/{ => Messaging}/SectorMessage.cs | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename QSB/{ => Messaging}/MessageHandler.cs (70%) rename QSB/{ => Messaging}/MessageType.cs (100%) rename QSB/{ => Messaging}/SectorMessage.cs (100%) diff --git a/QSB/MessageHandler.cs b/QSB/Messaging/MessageHandler.cs similarity index 70% rename from QSB/MessageHandler.cs rename to QSB/Messaging/MessageHandler.cs index 4ce89674..d90a09a3 100644 --- a/QSB/MessageHandler.cs +++ b/QSB/Messaging/MessageHandler.cs @@ -6,8 +6,8 @@ namespace QSB { protected abstract short type { get; } public MessageHandler () { - NetworkServer.RegisterHandler(SectorMessage.Type, OnServerReceiveMessage); - NetworkManager.singleton.client.RegisterHandler(SectorMessage.Type, OnClientReceiveMessage); + NetworkServer.RegisterHandler(MessageType.Sector, OnServerReceiveMessage); + NetworkManager.singleton.client.RegisterHandler(MessageType.Sector, OnClientReceiveMessage); } protected abstract void OnClientReceiveMessage (NetworkMessage netMsg); diff --git a/QSB/MessageType.cs b/QSB/Messaging/MessageType.cs similarity index 100% rename from QSB/MessageType.cs rename to QSB/Messaging/MessageType.cs diff --git a/QSB/SectorMessage.cs b/QSB/Messaging/SectorMessage.cs similarity index 100% rename from QSB/SectorMessage.cs rename to QSB/Messaging/SectorMessage.cs