예제 #1
0
        public static void RegisterNetworkMessageHandelers()
        {
            Mod owner = Main.Instance;

            MapSendingMessge = new MapSendingMessge();
            NetworkManager.AddNetworkMessage(MapSendingMessge, owner);

            PlayerConnectMessage = new PlayerConnectedMessage();
            NetworkManager.AddNetworkMessage(PlayerConnectMessage, owner);

            SpawnPlayerMessage = new SpawnPlayerMessage();
            NetworkManager.AddNetworkMessage(SpawnPlayerMessage, owner);

            SetLocalPlayerMessage = new SetLocalPlayerMessage();
            NetworkManager.AddNetworkMessage(SetLocalPlayerMessage, owner);

            DebugMessage = new DebugMessage();
            NetworkManager.AddNetworkMessage(DebugMessage, owner);
        }