-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dummy player movement communication
- Loading branch information
Showing
6 changed files
with
174 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
public class MultiplayerDTO | ||
{ | ||
public Vector3 position; | ||
public AreaLocationDTO areaLocation; | ||
public int character; | ||
|
||
public MultiplayerDTO (Vector3 position, AreaLocationDTO areaLocation, int character) | ||
{ | ||
this.position = position; | ||
this.areaLocation = areaLocation; | ||
this.character = character; | ||
} | ||
|
||
/// <summary> | ||
/// This function converts a json string to a <c>MultiplayerDTO</c> object. | ||
/// </summary> | ||
/// <param name="jsonString">The json string to convert</param> | ||
/// <returns>A <c>MultiplayerDTO</c> object containing the data</returns> | ||
public static MultiplayerDTO CreateFromJSON(string jsonString) | ||
{ | ||
return JsonUtility.FromJson<MultiplayerDTO>(jsonString); | ||
} | ||
} |
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