mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Removed all [Obsolete] code
This commit is contained in:
parent
df67e85e50
commit
3ac3790ee7
@ -65,13 +65,6 @@ internal void SetHandlers(NetworkConnection conn)
|
||||
public int serverPort { get { return m_ServerPort; } }
|
||||
public NetworkConnection connection { get { return m_Connection; } }
|
||||
|
||||
#if ENABLE_UNET_HOST_MIGRATION
|
||||
[Obsolete("Moved to NetworkMigrationManager.")]
|
||||
#else
|
||||
[Obsolete("Removed")]
|
||||
#endif
|
||||
public PeerInfoMessage[] peers { get { return null; } }
|
||||
|
||||
internal int hostId { get { return m_ClientId; } }
|
||||
public Dictionary<short, NetworkMessageDelegate> handlers { get { return m_MessageHandlers.GetHandlers(); } }
|
||||
public int numChannels { get { return m_HostTopology.DefaultConfig.ChannelCount; } }
|
||||
|
@ -569,12 +569,6 @@ public virtual void TransportReceive(byte[] bytes, int numBytes, int channelId)
|
||||
HandleBytes(bytes, numBytes, channelId);
|
||||
}
|
||||
|
||||
[Obsolete("TransportRecieve has been deprecated. Use TransportReceive instead (UnityUpgradable) -> TransportReceive(*)", false)]
|
||||
public virtual void TransportRecieve(byte[] bytes, int numBytes, int channelId)
|
||||
{
|
||||
TransportReceive(bytes, numBytes, channelId);
|
||||
}
|
||||
|
||||
public virtual bool TransportSend(byte[] bytes, int numBytes, int channelId, out byte error)
|
||||
{
|
||||
return NetworkTransport.Send(hostId, connectionId, channelId, bytes, numBytes, out error);
|
||||
|
@ -73,9 +73,6 @@ public class NetworkManager : MonoBehaviour
|
||||
public bool runInBackground { get { return m_RunInBackground; } set { m_RunInBackground = value; } }
|
||||
public bool scriptCRCCheck { get { return m_ScriptCRCCheck; } set { m_ScriptCRCCheck = value; }}
|
||||
|
||||
[Obsolete("moved to NetworkMigrationManager")]
|
||||
public bool sendPeerInfo { get { return false; } set {} }
|
||||
|
||||
public float maxDelay { get { return m_MaxDelay; } set { m_MaxDelay = value; } }
|
||||
public LogFilter.FilterLevel logLevel { get { return m_LogLevel; } set { m_LogLevel = value; LogFilter.currentLogLevel = value; } }
|
||||
public GameObject playerPrefab { get { return m_PlayerPrefab; } set { m_PlayerPrefab = value; } }
|
||||
|
@ -41,14 +41,6 @@ public sealed class NetworkServer
|
||||
static public HostTopology hostTopology { get { return instance.m_SimpleServerSimple.hostTopology; }}
|
||||
public static Dictionary<NetworkInstanceId, NetworkIdentity> objects { get { return instance.m_NetworkScene.localObjects; } }
|
||||
|
||||
#if ENABLE_UNET_HOST_MIGRATION
|
||||
[Obsolete("Moved to NetworkMigrationManager")]
|
||||
public static bool sendPeerInfo { get { return false; } set {} }
|
||||
#else
|
||||
[Obsolete("Removed")]
|
||||
public static bool sendPeerInfo { get { return false; } set {} }
|
||||
#endif
|
||||
|
||||
public static bool dontListen { get { return m_DontListen; } set { m_DontListen = value; } }
|
||||
public static bool useWebSockets { get { return instance.m_SimpleServerSimple.useWebSockets; } set { instance.m_SimpleServerSimple.useWebSockets = value; } }
|
||||
|
||||
@ -1747,15 +1739,6 @@ static void SendCrc(NetworkConnection targetConnection)
|
||||
targetConnection.Send(MsgType.CRC, crcMsg);
|
||||
}
|
||||
|
||||
#if ENABLE_UNET_HOST_MIGRATION
|
||||
[Obsolete("moved to NetworkMigrationManager")]
|
||||
#else
|
||||
[Obsolete("Removed")]
|
||||
#endif
|
||||
public void SendNetworkInfo(NetworkConnection targetConnection)
|
||||
{
|
||||
}
|
||||
|
||||
class ServerSimpleWrapper : NetworkServerSimple
|
||||
{
|
||||
NetworkServer m_Server;
|
||||
|
Loading…
Reference in New Issue
Block a user