Cleanup ENetDriver and use interface properly for scripting

This commit is contained in:
Wojtek Figat
2021-10-04 12:23:01 +02:00
parent c3c0a4ef0d
commit ecf926a537
5 changed files with 52 additions and 51 deletions

View File

@@ -50,6 +50,11 @@ void SendPacketToPeer(ENetPeer* peer, const NetworkChannelType channelType, cons
// TODO: To reduce latency, we can use `enet_host_flush` to flush all packets. Maybe some API, like NetworkManager::FlushQueues()?
}
ENetDriver::ENetDriver(const SpawnParams& params)
: PersistentScriptingObject(params)
{
}
void ENetDriver::Initialize(NetworkPeer* host, const NetworkConfig& config)
{
_networkHost = host;