Skip to content

Commit

Permalink
feat: Adding Custom Data and Custom Address fields to list server (#2…
Browse files Browse the repository at this point in the history
…110)

* whitespace

* adding doc comment
  • Loading branch information
James-Frowen committed Jul 27, 2020
1 parent f913c64 commit e136f48
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Assets/Mirror/Cloud/ListServer/ListServerJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public struct ServerJson : ICanBeJson
/// optional
/// </summary>
public string displayName;

/// <summary>
/// Uri string of the ip and port of the server.
/// <para>The ip is calculated by the request to the API</para>
Expand Down Expand Up @@ -53,7 +54,10 @@ public struct ServerJson : ICanBeJson
/// <returns></returns>
public Uri GetCustomUri() => new Uri(customAddress);


/// <summary>
/// Updates the customData array
/// </summary>
/// <param name="data"></param>
public void SetCustomData(Dictionary<string, string> data)
{
if (data == null)
Expand Down Expand Up @@ -117,6 +121,7 @@ public struct PartialServerJson : ICanBeJson
/// </summary>
public KeyValue[] customData;


public void SetCustomData(Dictionary<string, string> data)
{
if (data == null)
Expand Down

0 comments on commit e136f48

Please sign in to comment.