Rename NetworkTransportType to NetworkDriverType

This commit is contained in:
Damian Korczowski
2021-06-21 21:40:48 +02:00
parent c6a8488fe1
commit 25fe03f5a5
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ public:
/// To allow two peers to connect, they must use the same host.
/// </summary>
API_FIELD()
NetworkTransportType NetworkDriverType = NetworkTransportType::ENet;
NetworkDriverType NetworkDriverType = NetworkDriverType::ENet;
// TODO: Expose INetworkDriver as a ref not enum, when C++/C# interfaces are done.
public:

View File

@@ -14,7 +14,7 @@ void NetworkPeer::Initialize(const NetworkConfig& config)
Config = config;
ASSERT(NetworkDriver == nullptr);
ASSERT(Config.NetworkDriverType != NetworkTransportType::Undefined);
ASSERT(Config.NetworkDriverType != NetworkDriverType::Undefined);
ASSERT(Config.ConnectionsLimit > 0);
ASSERT(Config.MessageSize > 32); // TODO: Adjust this, not sure what the lowest limit should be.
ASSERT(Config.MessagePoolSize > 128);