Skip to content

Commit 4c77e43

Browse files
committed
fix: Made NetworkingManager delegates events
1 parent 360a487 commit 4c77e43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MLAPI/Core/NetworkingManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ internal set
151151
/// <summary>
152152
/// The callback to invoke once a client connects
153153
/// </summary>
154-
public Action<ulong> OnClientConnectedCallback = null;
154+
public event Action<ulong> OnClientConnectedCallback = null;
155155
/// <summary>
156156
/// The callback to invoke when a client disconnects
157157
/// </summary>
158-
public Action<ulong> OnClientDisconnectCallback = null;
158+
public event Action<ulong> OnClientDisconnectCallback = null;
159159
/// <summary>
160160
/// The callback to invoke once the server is ready
161161
/// </summary>
162-
public Action OnServerStarted = null;
162+
public event Action OnServerStarted = null;
163163
/// <summary>
164164
/// Delegate type called when connection has been approved
165165
/// </summary>
@@ -172,7 +172,7 @@ internal set
172172
/// <summary>
173173
/// The callback to invoke during connection approval
174174
/// </summary>
175-
public Action<byte[], ulong, ConnectionApprovedDelegate> ConnectionApprovalCallback = null;
175+
public event Action<byte[], ulong, ConnectionApprovedDelegate> ConnectionApprovalCallback = null;
176176
/// <summary>
177177
/// The current NetworkingConfiguration
178178
/// </summary>

0 commit comments

Comments
 (0)