-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom connection request data now propagates to IServerPeer.Connecti…
…onRequestData. Added documentation
- Loading branch information
1 parent
8d72cca
commit a07262e
Showing
19 changed files
with
219 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
source/UnityPackage/Assets/Runtime/Network/ConnectionHandlerResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
namespace Fenrir.Multiplayer.Network | ||
{ | ||
/// <summary> | ||
/// Internal class to pass the result of user connection | ||
/// </summary> | ||
class ConnectionHandlerResult | ||
{ | ||
/// <summary> | ||
/// Connection response | ||
/// </summary> | ||
public ConnectionResponse Response { get; set; } | ||
|
||
/// <summary> | ||
/// Custom connection request data. | ||
/// If no custom connection request handler is set, always null | ||
/// </summary> | ||
public object ConnectionRequestData { get; set; } | ||
|
||
/// <summary> | ||
/// Creates empty connection handler result | ||
/// </summary> | ||
public ConnectionHandlerResult() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
/// <param name="response">Connection Response</param> | ||
/// <param name="connectionRequestData">Connection Request Data</param> | ||
public ConnectionHandlerResult(ConnectionResponse response, object connectionRequestData) | ||
{ | ||
Response = response; | ||
ConnectionRequestData = connectionRequestData; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
source/UnityPackage/Assets/Runtime/Network/ConnectionHandlerResult.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.