Skip to content

Commit ee43556

Browse files
committed
update unit tests, refactoring
1 parent f35b893 commit ee43556

File tree

136 files changed

+216
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+216
-116
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Server build files
2+
Server/build
3+
14
#User Specific
25
*.userprefs
36
*.usertasks

Assets/Colyseus/Editor Default Resources.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

Assets/Colyseus/Runtime/Scripts/Managers/ColyseusManager.cs renamed to Assets/Colyseus/Runtime/Colyseus/Managers/ColyseusManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Colyseus
77
{
88
/// <summary>
9-
/// Base manager class
9+
/// Base manager class
1010
/// </summary>
1111
/// <typeparam name="T"></typeparam>
1212
public class ColyseusManager<T> : MonoBehaviour
@@ -146,4 +146,4 @@ protected virtual void OnApplicationQuit()
146146
{
147147
}
148148
}
149-
}
149+
}
File renamed without changes.
File renamed without changes.

Assets/Colyseus/Runtime/Scripts/Models/ColyseusClient.cs renamed to Assets/Colyseus/Runtime/Colyseus/Models/ColyseusClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async Task retryConnection()
348348
void OnError(int code, string message)
349349
{
350350
targetRoom.OnError -= OnError;
351-
tcs.SetException(new CSAMatchMakeException(code, message));
351+
tcs.SetException(new MatchMakeException(code, message));
352352
}
353353

354354
void OnJoin()
@@ -379,7 +379,7 @@ void OnJoin()
379379
/// <typeparam name="T">Type of <see cref="ColyseusRoom{T}" /> we want to match with</typeparam>
380380
/// <returns><see cref="ColyseusRoom{T}" /> we have matched with via async task</returns>
381381
/// <exception cref="Exception">Thrown if there is a network related error</exception>
382-
/// <exception cref="CSAMatchMakeException">Thrown if there is an error in the match making process on the server side</exception>
382+
/// <exception cref="MatchMakeException">Thrown if there is an error in the match making process on the server side</exception>
383383
protected async Task<ColyseusRoom<T>> CreateMatchMakeRequest<T>(string method, string roomName,
384384
Dictionary<string, object> options, Dictionary<string, string> headers)
385385
{
@@ -404,7 +404,7 @@ protected async Task<ColyseusRoom<T>> CreateMatchMakeRequest<T>(string method, s
404404

405405
if (!string.IsNullOrEmpty(response.error))
406406
{
407-
throw new CSAMatchMakeException(response.code, response.error);
407+
throw new MatchMakeException(response.code, response.error);
408408
}
409409

410410
// forward reconnection token on reconnect
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)