Channel interaction module refresh base
This commit is contained in:
@@ -6,10 +6,10 @@ namespace mROA.Implementation.Backend
|
||||
{
|
||||
public class ConnectionHub : IConnectionHub
|
||||
{
|
||||
private readonly Dictionary<int, INextGenerationInteractionModule> _connections = new();
|
||||
private readonly Dictionary<int, IChannelInteractionModule> _connections = new();
|
||||
private ISerializationToolkit? _serializationToolkit;
|
||||
|
||||
public void RegisterInteraction(INextGenerationInteractionModule interaction)
|
||||
public void RegisterInteraction(IChannelInteractionModule interaction)
|
||||
{
|
||||
if (_serializationToolkit is null)
|
||||
throw new NullReferenceException("Serialization toolkit is null");
|
||||
@@ -21,7 +21,7 @@ namespace mROA.Implementation.Backend
|
||||
OnConnected?.Invoke(module);
|
||||
}
|
||||
|
||||
public INextGenerationInteractionModule GetInteraction(int id)
|
||||
public IChannelInteractionModule GetInteraction(int id)
|
||||
{
|
||||
return _connections!.GetValueOrDefault(id, null) ?? throw new Exception("No connection found");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user